-
Notifications
You must be signed in to change notification settings - Fork 24.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
Text_similarity_reranker retriever rework to be evaluated during rewrite phase #114085
base: main
Are you sure you want to change the base?
Conversation
@elasticmachine update branch |
…/elasticsearch into text_similarity_reranker_rework
@@ -32,7 +38,7 @@ | |||
/** | |||
* A {@code RetrieverBuilder} for parsing and constructing a text similarity reranker retriever. | |||
*/ | |||
public class TextSimilarityRankRetrieverBuilder extends RetrieverBuilder { | |||
public class TextSimilarityRankRetrieverBuilder extends CompoundRetrieverBuilder<TextSimilarityRankRetrieverBuilder> { | |||
|
|||
public static final NodeFeature TEXT_SIMILARITY_RERANKER_RETRIEVER_SUPPORTED = new NodeFeature( | |||
"text_similarity_reranker_retriever_supported" |
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.
Should we introduce a new cluster feature as we did with rrf
?
@@ -87,11 +87,9 @@ setup: | |||
- length: { hits.hits: 2 } | |||
|
|||
- match: { hits.hits.0._id: "doc_2" } | |||
- match: { hits.hits.0._rank: 1 } |
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.
_rank
has now been removed as with rrf
.
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Now that #112648 has been merged, in this PR we handle the
text_similarity_reranker
retriever next, so that it can be evaluated during the rewrite phase and be transformed to a flattenedRankDocsRetrieverBuilder
. This will enable us to support composition and many search features, including highlighting, aggregations, and collapsing.