Repository navigation
Conversation
Contributor
|
@RitwijParmar is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contributor
|
Hey @RitwijParmar thanks for the contribution! Could you take a look at our contribution guidelines on how to add a release note? https://github.com/deepset-ai/haystack/blob/main/CONTRIBUTING.md#release-notes |
Contributor
Author
|
Thanks for the pointer. I added the release note in bfc18f4. Validated with: |
sjrl
approved these changes
Jun 3, 2026
sjrl
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the contribution!
This file contains hidden or 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
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.
Summary
Fixes #11405.
Several components used a truthiness check while preparing
meta_fields_to_embedvalues:That silently dropped valid metadata values such as
0andFalse, changing the text passed into embedding/ranking without warning. The affected paths now match the existing OpenAI/Azure embedder behavior and only skip metadata that is absent or explicitlyNone.Updated components:
SentenceTransformersDocumentEmbedderSentenceTransformersSparseDocumentEmbedderSentenceTransformersSimilarityRankerSentenceTransformersDiversityRankerTransformersSimilarityRankerTests
.venv/bin/python -m pytest test/components/embedders/test_sentence_transformers_document_embedder.py::TestSentenceTransformersDocumentEmbedder::test_embed_metadata_preserves_falsy_values test/components/embedders/test_sentence_transformers_sparse_document_embedder.py::TestSentenceTransformersDocumentEmbedder::test_embed_metadata_preserves_falsy_values test/components/rankers/test_sentence_transformers_similarity.py::TestSentenceTransformersSimilarityRanker::test_embed_meta_preserves_falsy_values test/components/rankers/test_sentence_transformers_diversity.py::TestSentenceTransformersDiversityRanker::test_prepare_texts_to_embed_preserves_falsy_meta_values test/components/rankers/test_transformers_similarity.py::TestSimilarityRanker::test_embed_meta_preserves_falsy_valuespython -m ruff check <changed files>python -m ruff format --check <changed files>git diff --check