Skip to content

Conversation

pmpailis
Copy link
Contributor

@pmpailis pmpailis commented Oct 23, 2024

Updating exception thrown when cluster_feature is not present for rrf and text_similarity_reranker and adding breaking change entry for the work taken place in 8.16 (#112648)

@pmpailis pmpailis added >breaking :Search Relevance/Ranking Scoring, rescoring, rank evaluation. auto-backport Automatically create backport pull requests when merged v8.16.1 v8.17.0 labels Oct 23, 2024
@elasticsearchmachine
Copy link
Collaborator

Hi @pmpailis, I've created a changelog YAML for you. Note that since this PR is labelled >breaking, you need to update the changelog YAML to fill out the extended information sections.

@pmpailis pmpailis marked this pull request as ready for review October 23, 2024 11:03
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Oct 23, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Comment on lines 13 to 16
To ensure consistency and avoid unexpected failures, we have introduced a new cluster_feature that
all nodes must satisfy, in order for the `rrf` and `text_similarity_reranker` retriever queries to be evaluated.
This guarantees that all nodes are able to take advantage of the new framework and provide compatible responses.
As part of the rework, we have also removed the `_rank` property from the responses of an `rrf` retriever.
Copy link
Member

Choose a reason for hiding this comment

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

Don't indicate cluster_feature or anything. Simply indicate the behavior. Don't reference internal details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Ben, that's fair! Reworded it slightly, lmtk what you think :)

Comment on lines 13 to 14
To ensure consistency and avoid unexpected failures, `rrf` and `text_similarity_reranker` retriever queries are no longer compatible
with previous releases ( <= 8.15).
Copy link
Member

Choose a reason for hiding this comment

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

YIKES, this implies that rrf and text_similarity_reranker no longer works! Please make sure you are very clear that they only break in a mixed cluster scenario, not that they stop working in 8.16 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hahah that's definitely not what I was going for 😅 had the mixed cluster description in the impact section below,
so I thought to not include it here as well.

WDYT about the following?

In this release (8.16), we have introduced major changes to the retrievers framework 
and how they can be evaluated, focusing mainly on compound retrievers 
like `rrf` and `text_similarity_reranker`, which allowed us to support full 
composability (i.e. any retriever can be nested under any compound retriever), 
as well as supporting additional search features like collapsing, explaining, 
aggregations, and highlighting.

To ensure consistency, and given that this rework is not available until 8.16, 
`rrf` and `text_similarity_reranker`  retriever queries would now  
throw an exception in a mixed cluster scenario, where there are nodes 
both in current or later (i.e. >= 8.16) and previous ( <= 8.15) versions.

As part of the rework, we have also removed the `_rank` property from 
the responses of an `rrf` retriever.

@pmpailis
Copy link
Contributor Author

@elasticmachine update branch

@pmpailis pmpailis merged commit e99607b into elastic:main Oct 24, 2024
16 checks passed
pmpailis added a commit to pmpailis/elasticsearch that referenced this pull request Oct 24, 2024
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.16
8.x

elasticsearchmachine pushed a commit that referenced this pull request Oct 24, 2024
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
@samxbr
Copy link
Contributor

samxbr commented Mar 17, 2025

Friendly reminder that this PR seems to be a breaking change for 9.0, but is missing from the 9.0 release note. We may want to add an entry to the breaking change section of 9.0 release note.

@pmpailis pmpailis deleted the add_breaking_change_entry_for_retriever branch May 27, 2025 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >breaking :Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.16.1 v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants