@@ -1071,8 +1071,6 @@ def match(
1071
1071
self ,
1072
1072
deployed_index_id : str ,
1073
1073
queries : List [List [float ]],
1074
- per_crowding_attribute_num_neighbors : int ,
1075
- approx_num_neighbors : int ,
1076
1074
num_neighbors : int = 1 ,
1077
1075
filter : Optional [List [Namespace ]] = [],
1078
1076
) -> List [List [MatchNeighbor ]]:
@@ -1083,15 +1081,6 @@ def match(
1083
1081
Required. The ID of the DeployedIndex to match the queries against.
1084
1082
queries (List[List[float]]):
1085
1083
Required. A list of queries. Each query is a list of floats, representing a single embedding.
1086
- per_crowding_attribute_num_neighbors (int):
1087
- Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor
1088
- search requiring that no more than some value k' of the k neighbors
1089
- returned have the same value of crowding_attribute.
1090
- It's used for improving result diversity.
1091
- This field is the maximum number of matches with the same crowding tag.
1092
- approx_num_neighbors (int):
1093
- The number of neighbors to find via approximate search before exact reordering is performed.
1094
- If not set, the default value from scam config is used; if set, this value must be > 0.
1095
1084
num_neighbors (int):
1096
1085
Required. The number of nearest neighbors to be retrieved from database for
1097
1086
each query.
@@ -1134,8 +1123,6 @@ def match(
1134
1123
num_neighbors = num_neighbors ,
1135
1124
deployed_index_id = deployed_index_id ,
1136
1125
float_val = query ,
1137
- per_crowding_attribute_num_neighbors = per_crowding_attribute_num_neighbors ,
1138
- approx_num_neighbors = approx_num_neighbors ,
1139
1126
)
1140
1127
for namespace in filter :
1141
1128
restrict = match_service_pb2 .Namespace ()
0 commit comments