-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add encoders in openai model #1447
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1447 +/- ##
==========================================
+ Coverage 80.33% 80.43% +0.09%
==========================================
Files 95 103 +8
Lines 6602 7248 +646
==========================================
+ Hits 5304 5830 +526
- Misses 1298 1418 +120 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge this pr after adding the table creating logic
return np.frombuffer(bytes, dtype=self.dtype).tolist() | ||
|
||
|
||
def array(dtype: str, shape: t.Sequence): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blythed
Im removing this one
superduperdb/ext/cohere/model.py
Outdated
@@ -32,20 +34,14 @@ class Cohere(Component, Predictor): | |||
identifier: str = '' | |||
version: t.Optional[int] = None | |||
takes_context: bool = False | |||
encoder: t.Union[Encoder, str, None] = None | |||
encoder: t.Union[FieldType, Encoder, str, None] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be inherited from super
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
superduperdb/ext/openai/model.py
Outdated
@@ -47,15 +48,9 @@ class OpenAI(Component, Predictor): | |||
identifier: str = '' | |||
version: t.Optional[int] = None | |||
takes_context: bool = False | |||
encoder: t.Union[Encoder, str, None] = None | |||
encoder: t.Union[FieldType, Encoder, str, None] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already defined in the super
.
Description
Related Issues
Checklist
make test
successfully?Additional Notes or Comments