File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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 */ 
Original file line number Diff line number Diff 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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments