Skip to content

[Backport 8.18] Adding bbq index types to specification #4187

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

Merged
merged 1 commit into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@redocly/cli": "^1.34.0",
"@redocly/cli": "^1.34.1",
"@stoplight/spectral-cli": "^6.14.2"
}
}
16 changes: 14 additions & 2 deletions specification/_types/mapping/DenseVectorProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ export class DenseVectorIndexOptions {
/**
* The number of candidates to track while assembling the list of nearest neighbors for each new node.
*
* Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types.
* Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
* @server_default 100
*/
ef_construction?: integer
/**
* The number of neighbors each node will be connected to in the HNSW graph.
*
* Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types.
* Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
* @server_default 16
*/
m?: integer
Expand All @@ -162,6 +162,18 @@ export class DenseVectorIndexOptions {
}

export enum DenseVectorIndexOptionsType {
/**
* This utilizes a brute-force search algorithm in addition to automatically quantizing to binary vectors.
* Only supports `element_type` of `float`.
*/
bbq_flat,
/**
* This utilizes the HNSW algorithm in addition to automatic binary quantization for scalable approximate kNN
* search with `element_type` of `float`.
*
* This can reduce the memory footprint by nearly 32x at the cost of some accuracy.
*/
bbq_hnsw,
/**
* This utilizes a brute-force search algorithm for exact kNN search. This supports all `element_type` values.
*/
Expand Down