Skip to content
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

InstructorDocumentEmbedder: Enrich documents with embeddings instead of recreating documents #42

Merged

Conversation

awinml
Copy link
Contributor

@awinml awinml commented Oct 19, 2023

Part of deepset-ai/haystack#6107

Proposed Changes:

Enrich documents with embeddings instead of recreating documents for InstructorDocumentEmbedder.
The Document class is not frozen anymore, so we can add the embedding to the document without recreating it.

Requesting Review:

@anakin87

@awinml awinml requested a review from a team as a code owner October 19, 2023 09:41
@awinml awinml requested review from anakin87 and removed request for a team October 19, 2023 09:41
Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, @awinml...

Thanks for another contribution! 🚀

The code is totally fine...

@anakin87 anakin87 merged commit 8d15314 into deepset-ai:main Oct 19, 2023
1 check passed
@bilgeyucel
Copy link
Contributor

Hi @awinml, thank you for your contribution to Haystack! You have a chance to receive an exclusive swag package from Haystack. 🎁

Fill in this form and let us know if you have any questions! https://forms.gle/226vqWoN6NRAaqJ69

@awinml awinml deleted the update_instructor_embedder_unfrozen_document branch November 29, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants