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

feat: Add meta_fields_to_embed to TransformersSimilarityRanker #6564

Merged
merged 6 commits into from
Dec 18, 2023

Conversation

sjrl
Copy link
Contributor

@sjrl sjrl commented Dec 15, 2023

Related Issues

Proposed Changes:

Add metadata_fields_to_embed following the implementation in SentenceTransformersDocumentEmbedder to be able to embed metadata fields along with the content of the document.

How did you test it?

Added a new unit test to check the behavior. Updated existing tests for serializing the object.

Notes for the reviewer

Checklist

@sjrl sjrl requested a review from a team as a code owner December 15, 2023 14:14
@sjrl sjrl requested review from silvanocerza and removed request for a team December 15, 2023 14:14
@github-actions github-actions bot added topic:tests 2.x Related to Haystack v2.0 type:documentation Improvements on the docs labels Dec 15, 2023
@sjrl sjrl requested a review from a team as a code owner December 15, 2023 14:15
@sjrl sjrl requested review from dfokina and removed request for a team December 15, 2023 14:15
@sjrl sjrl changed the title feat: Add metadata_fields_to_embed to TransformersSimilarityRanker feat: Add meta_fields_to_embed to TransformersSimilarityRanker Dec 18, 2023
Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

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

Looks great 👍

@sjrl sjrl merged commit 3e0e81b into main Dec 18, 2023
18 checks passed
@sjrl sjrl deleted the embed-metafields-ranker branch December 18, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add embed_meta_fields support to rankers like in Haystack v1
3 participants