Skip to content

Adds new BWC version for 8.19 backport of (#124581)#127647

Merged
benwtrent merged 1 commit intoelastic:mainfrom
benwtrent:add-bwc-version-for-124581
May 2, 2025
Merged

Adds new BWC version for 8.19 backport of (#124581)#127647
benwtrent merged 1 commit intoelastic:mainfrom
benwtrent:add-bwc-version-for-124581

Conversation

@benwtrent
Copy link
Copy Markdown
Member

In preparation for backport, this adds bwc Index version that is the next index version from before the v9 upgrade.

related: #124581

blocks: #127644

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label May 2, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

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

LGTM

@benwtrent benwtrent merged commit 176e933 into elastic:main May 2, 2025
17 checks passed
@benwtrent benwtrent deleted the add-bwc-version-for-124581 branch May 2, 2025 17:51
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request May 2, 2025
benwtrent added a commit that referenced this pull request May 2, 2025
#124581) (#127644)

* New `vector_rescore` parameter as a quantized index type option (#124581)

This adds a new parameter to the quantized index mapping that allows
default oversampling and rescoring to occur.

This doesn't adjust any of the defaults. It allows it to be configured.
When the user provides `rescore_vector: {oversample: <number>}` in the
query it will overwrite it.

For example, here is how to use it with bbq:

```
PUT rescored_bbq
{
  "mappings": {
    "properties": {
      "vector": {
        "type": "dense_vector",
        "index_options": {
          "type": "bbq_hnsw",
          "rescore_vector": {"oversample": 3.0}
        }
      }
    }
  }
}
```

Then, when querying, it will auto oversample the `k` by `3x` and rerank
with the raw vectors.

```
POST _search
{
  "knn": {
    "query_vector": [...],
    "field": "vector"
  }
}
```

(cherry picked from commit b2c1c4e)

* Adds new BWC version for 8.19 backport of (#124581) (#127647)

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants