-
Notifications
You must be signed in to change notification settings - Fork 801
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
remove abstract decorator from initialize in BaseEmbeddingEncoder #3730
remove abstract decorator from initialize in BaseEmbeddingEncoder #3730
Conversation
@@ -15,7 +15,6 @@ class EmbeddingConfig(BaseModel): | |||
class BaseEmbeddingEncoder(ABC): | |||
config: EmbeddingConfig | |||
|
|||
@abstractmethod |
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.
Matches the implementation of BaseEmbeddingEncoder
in unstructured_ingest
: https://github.com/Unstructured-IO/unstructured-ingest/blob/main/unstructured_ingest/embed/interfaces.py#L16
58c50b4
to
d8cad90
Compare
d8cad90
to
deb4c4e
Compare
@MKhalusova, can you help me get this reviewed?... please 🙏🏻🙏🏻🙏🏻. The DataChain unstructured examples (here and here) are currently stuck on an older version of Unstructured because of #3731 and this change should close that issue. |
@cragwolfe would this 👇🏻 be the correct format for the changelog entry? 0.16.5-dev0EnhancementsFeaturesFixes
|
@scanny Cam you please take a look? |
@rbiseck3 Hi Roman, can you take a look at this one-liner? I think you were closer to the choices on this one. I'm not sure whether this is the right fix or whether |
deb4c4e
to
2acaa3b
Compare
2acaa3b
to
5763efa
Compare
Can someone please take a look at this? |
@mattseddon all the embedder code was actually migrated to the new ingest repo, and this is no longer an issue there: unstructured_ingest/embed/interfaces.py. This code should be emitting a deprecation warning at the moment. |
I didn't get the deprecation warning because the code won't run without this change and I had to revert to a previous version. |
5763efa
to
b47c8ca
Compare
One other thing - the encoders have different function signatures ( |
Closes #3731. Please see the issue for details.
Comments inline.