Skip to content

Commit 9fc82b0

Browse files
authored
Adding visit_percentage for the new DiskBBQ (#5495)
1 parent 7f7d7fc commit 9fc82b0

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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)