@@ -1079,6 +1079,8 @@ class Knn(Query):
10791079 a query_vector_builder or query_vector, but not both.
10801080 :arg num_candidates: The number of nearest neighbor candidates to
10811081 consider per shard
1082+ :arg visit_percentage: The percentage of vectors to explore per shard
1083+ while doing knn search with bbq_disk
10821084 :arg k: The final number of nearest neighbors to return as top hits
10831085 :arg filter: Filters for the kNN search query
10841086 :arg similarity: The minimum similarity for a vector to be considered
@@ -1107,6 +1109,7 @@ def __init__(
11071109 "types.QueryVectorBuilder" , Dict [str , Any ], "DefaultType"
11081110 ] = DEFAULT ,
11091111 num_candidates : Union [int , "DefaultType" ] = DEFAULT ,
1112+ visit_percentage : Union [float , "DefaultType" ] = DEFAULT ,
11101113 k : Union [int , "DefaultType" ] = DEFAULT ,
11111114 filter : Union [Query , Sequence [Query ], "DefaultType" ] = DEFAULT ,
11121115 similarity : Union [float , "DefaultType" ] = DEFAULT ,
@@ -1122,6 +1125,7 @@ def __init__(
11221125 query_vector = query_vector ,
11231126 query_vector_builder = query_vector_builder ,
11241127 num_candidates = num_candidates ,
1128+ visit_percentage = visit_percentage ,
11251129 k = k ,
11261130 filter = filter ,
11271131 similarity = similarity ,
0 commit comments