Optionally allow text similarity reranking to fail#121784
Optionally allow text similarity reranking to fail#121784thecoop merged 29 commits intoelastic:mainfrom
Conversation
|
Hi @thecoop, I've created a changelog YAML for you. |
| RankFeaturePhaseRankCoordinatorContext rankFeaturePhaseRankCoordinatorContext, | ||
| SearchPhaseController.ReducedQueryPhase reducedQueryPhase | ||
| ) { | ||
| RankFeatureDoc[] docs = rankPhaseResults.getSuccessfulResults() |
There was a problem hiding this comment.
This changes the thread this happens in - not sure if this matters or not?
20c5735 to
1ac18fe
Compare
...rg/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankRetrieverBuilder.java
Outdated
Show resolved
Hide resolved
65aac03 to
505ae8b
Compare
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
f43701f to
bc81bd0
Compare
...test/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankTests.java
Outdated
Show resolved
Hide resolved
| License.OperationMode.ENTERPRISE | ||
| ); | ||
|
|
||
| static final ConstructingObjectParser<TextSimilarityRankBuilder, Void> PARSER = new ConstructingObjectParser<>(NAME, args -> { |
...test/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankTests.java
Outdated
Show resolved
Hide resolved
.../org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankMultiNodeTests.java
Outdated
Show resolved
Hide resolved
...pack/inference/rank/textsimilarity/TextSimilarityRankFeaturePhaseRankCoordinatorContext.java
Outdated
Show resolved
Hide resolved
.../main/java/org/elasticsearch/search/rank/context/RankFeaturePhaseRankCoordinatorContext.java
Show resolved
Hide resolved
| context.onPhaseFailure(NAME, "Computing updated ranks for results failed", e); | ||
| if (rankFeaturePhaseRankCoordinatorContext.failuresAllowed()) { | ||
| // TODO: handle the exception somewhere | ||
| // don't want to log the entire stack trace, it's not helpful here |
...pack/inference/rank/textsimilarity/TextSimilarityRankFeaturePhaseRankCoordinatorContext.java
Show resolved
Hide resolved
339acc2 to
7b81006
Compare
...estTest/resources/rest-api-spec/test/rrf/800_rrf_with_text_similarity_reranker_retriever.yml
Outdated
Show resolved
Hide resolved
|
Thanks for all the work and the iterations so far @thecoop ! Will documentation and propagating the non-reranked flag to the user be part of a second PR or will you append them on this one? |
|
Yes, they'll be in a second PR to add the user-visible sections |
...pack/inference/rank/textsimilarity/TextSimilarityRankFeaturePhaseRankCoordinatorContext.java
Outdated
Show resolved
Hide resolved
...estTest/resources/rest-api-spec/test/rrf/800_rrf_with_text_similarity_reranker_retriever.yml
Show resolved
Hide resolved
| size: 10 | ||
|
|
||
| --- | ||
| "Text similarity reranking with allowed failure maintains custom sorting": |
There was a problem hiding this comment.
Don't we need cluster features here, for BWC?
There was a problem hiding this comment.
I don't think so, the new option can only be used on new nodes, and new functionality is only usable when all nodes have been upgraded to support it. This is only adding functionality, there's no change to existing behaviour here.
Add an option to allow reranking to fail, and the docs to pass through as-is. Exposing the error to users and adding documentation is a later piece of work.
|
Hello, when this will be released please ? |
First part of #116796
Add a
allow_reranker_failuresoption to reranker configuration, allowing errors to be ignored and the search to carry on. The option will be documented as part of the second stage PR