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 missing embeddings not skipped if filters are used #2230

Merged
merged 5 commits into from Feb 22, 2022

Conversation

MichelBartels
Copy link
Contributor

@MichelBartels MichelBartels commented Feb 22, 2022

Proposed changes:
This PR fixes the bug that the skip_missing_embeddings parameter is ignored when filters are specified. Closes #2113.

Status (please check what you already did):

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

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

Thank you for taking the initiative! Code changes look good to me. As we already had community members reporting an issue with the skip_missing_embeddings functionality and it's very helpful for allowing updating the document index at runtime, we should create a test here too. What I imagine is a doc store with some documents with meta data. Not all documents have an embedding. Let's run a vector search query with a filter and check that only documents that both have an embedding and fulfill the filter requirement are retrieved.

@MichelBartels MichelBartels merged commit 6918d5b into master Feb 22, 2022
@MichelBartels MichelBartels deleted the fix_filter_skip_embeddings_elasticsearch branch February 22, 2022 17:40
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.

Missing embeddings not skipped if filters are used
2 participants