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

Fix behavior of delete_documents() with filters for Milvus #1354

Merged
merged 3 commits into from Aug 30, 2021

Conversation

cambiumproject
Copy link
Contributor

@cambiumproject cambiumproject commented Aug 19, 2021

Delete filtered set of vectors rather than the whole collection

Proposed changes:

  • changed delete_documents() in MilvusDocumentStore to match expected behavior when deleting documents based on a filter
  • Now deletes filtered set of vectors rather than the whole collection when deleting based on a filter

Status (please check what you already did):

  • First draft (up for discussions & feedback)
  • Final code
  • Added tests
  • Updated documentation

Delete filtered set of vectors rather than the whole collection
Copy link
Member

@tholor tholor left a comment

Choose a reason for hiding this comment

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

Hey @cambiumproject , Thanks for working on this! Definitely a thing we should fix. Left one minor comment ...

haystack/document_store/milvus.py Outdated Show resolved Hide resolved
@cambiumproject
Copy link
Contributor Author

Note: Documentation and test don't have to change for this PR

Copy link

@ontolox ontolox left a comment

Choose a reason for hiding this comment

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

LGTM!

@tholor tholor changed the title Fix behavior of delete_documents() Fix behavior of delete_documents() with filters for Milvus Aug 30, 2021
@tholor tholor merged commit 4ca97dd into deepset-ai:master Aug 30, 2021
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.

None yet

3 participants