-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Introduce incremental updates for embeddings in document stores #812
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tanaysoni
force-pushed
the
refactor-update-embedding
branch
from
February 8, 2021 15:24
3f1793b
to
69d8986
Compare
tanaysoni
force-pushed
the
refactor-update-embedding
branch
from
February 8, 2021 15:34
95d7cd2
to
ec9687f
Compare
tanaysoni
force-pushed
the
refactor-update-embedding
branch
from
February 8, 2021 16:12
e9f5ef4
to
64d4d9b
Compare
tanaysoni
force-pushed
the
refactor-update-embedding
branch
from
February 8, 2021 17:23
ff80592
to
3c6879a
Compare
tanaysoni
changed the title
WIP: Introduce incremental updates for embeddings in document stores
Introduce incremental updates for embeddings in document stores
Feb 8, 2021
tanaysoni
changed the title
Introduce incremental updates for embeddings in document stores
WIP: Introduce incremental updates for embeddings in document stores
Feb 8, 2021
lalitpagaria
reviewed
Feb 8, 2021
lalitpagaria
reviewed
Feb 8, 2021
tholor
reviewed
Feb 9, 2021
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.
Looking good to me. Left a few comments. Ready to merge once those are resolved + CI is passing.
tanaysoni
force-pushed
the
refactor-update-embedding
branch
from
February 9, 2021 18:23
3d73f4d
to
5ab1da2
Compare
tanaysoni
force-pushed
the
refactor-update-embedding
branch
from
February 9, 2021 18:33
a4128ea
to
3beffb2
Compare
tanaysoni
force-pushed
the
refactor-update-embedding
branch
from
February 9, 2021 18:44
18addba
to
6060fcd
Compare
tanaysoni
changed the title
WIP: Introduce incremental updates for embeddings in document stores
Introduce incremental updates for embeddings in document stores
Feb 9, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The document stores provide a
update_embedding()
method that takes a retriever instance as an argument to create/update embeddings of all indexed documents. This works well for the creation of new document stores. However, this approach is inefficient when a large document collection is already present and you want to update only the newly added documents that don't have embeddings yet.This PR introduces a new parameter
update_existing_embeddings
forupdate_embeddings()
, which when set toFalse
, will only generate embeddings for documents without embeddings. Additionally,filters
are now also added to update embeddings for a subset of documents.Resolves #806