Skip to content

Commit 5581a3c

Browse files
Adding bbq index types to specification (#4181) (#4187)
(cherry picked from commit 3e97c19) Co-authored-by: Benjamin Trent <[email protected]>
1 parent 0cf6e2b commit 5581a3c

File tree

8 files changed

+59
-27
lines changed

8 files changed

+59
-27
lines changed

Diff for: output/openapi/elasticsearch-openapi.json

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/openapi/elasticsearch-serverless-openapi.json

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/schema/schema-serverless.json

+11-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/schema/schema.json

+11-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/typescript/types.ts

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package-lock.json

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"@redocly/cli": "^1.34.0",
3+
"@redocly/cli": "^1.34.1",
44
"@stoplight/spectral-cli": "^6.14.2"
55
}
66
}

Diff for: specification/_types/mapping/DenseVectorProperty.ts

+14-2
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ export class DenseVectorIndexOptions {
144144
/**
145145
* The number of candidates to track while assembling the list of nearest neighbors for each new node.
146146
*
147-
* Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types.
147+
* Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
148148
* @server_default 100
149149
*/
150150
ef_construction?: integer
151151
/**
152152
* The number of neighbors each node will be connected to in the HNSW graph.
153153
*
154-
* Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types.
154+
* Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
155155
* @server_default 16
156156
*/
157157
m?: integer
@@ -162,6 +162,18 @@ export class DenseVectorIndexOptions {
162162
}
163163

164164
export enum DenseVectorIndexOptionsType {
165+
/**
166+
* This utilizes a brute-force search algorithm in addition to automatically quantizing to binary vectors.
167+
* Only supports `element_type` of `float`.
168+
*/
169+
bbq_flat,
170+
/**
171+
* This utilizes the HNSW algorithm in addition to automatic binary quantization for scalable approximate kNN
172+
* search with `element_type` of `float`.
173+
*
174+
* This can reduce the memory footprint by nearly 32x at the cost of some accuracy.
175+
*/
176+
bbq_hnsw,
165177
/**
166178
* This utilizes a brute-force search algorithm for exact kNN search. This supports all `element_type` values.
167179
*/

0 commit comments

Comments
 (0)