Skip to content

Commit 548c275

Browse files
Merge remote-tracking branch 'origin/main' into google-model-garden-update
2 parents 90de26a + 0aa93ad commit 548c275

File tree

6 files changed

+111
-9
lines changed

6 files changed

+111
-9
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 63 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/Knn.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ export interface KnnSearch {
4343
k?: integer
4444
/** The number of nearest neighbor candidates to consider per shard */
4545
num_candidates?: integer
46+
/** The percentage of vectors to explore per shard while doing knn search with bbq_disk
47+
* @availability stack since=9.2.0
48+
* @availability serverless
49+
*/
50+
visit_percentage?: float
4651
/** Boost value to apply to kNN scores */
4752
boost?: float
4853
/** Filters for the kNN search query */
@@ -73,6 +78,11 @@ export interface KnnQuery extends QueryBase {
7378
query_vector_builder?: QueryVectorBuilder
7479
/** The number of nearest neighbor candidates to consider per shard */
7580
num_candidates?: integer
81+
/** The percentage of vectors to explore per shard while doing knn search with bbq_disk
82+
* @availability stack since=9.2.0
83+
* @availability serverless
84+
*/
85+
visit_percentage?: float
7686
/** The final number of nearest neighbors to return as top hits */
7787
k?: integer
7888
/** Filters for the kNN search query */

specification/_types/Retriever.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ export class KnnRetriever extends RetrieverBase {
124124
k: integer
125125
/** Number of nearest neighbor candidates to consider per shard. */
126126
num_candidates: integer
127+
/** The percentage of vectors to explore per shard while doing knn search with bbq_disk
128+
* @availability stack since=9.2.0
129+
* @availability serverless
130+
*/
131+
visit_percentage?: float
127132
/** The minimum similarity required for a document to be considered a match. */
128133
similarity?: float
129134
/** Apply oversampling and rescoring to quantized vectors

0 commit comments

Comments
 (0)