@@ -85,7 +85,6 @@ async def vector_search(
85
85
limit : int = 5 ,
86
86
output_fields : Optional [list [str ]] = None ,
87
87
metric_type : str = "COSINE" ,
88
- filter_expr : Optional [str ] = None ,
89
88
) -> list [dict ]:
90
89
"""
91
90
Perform vector similarity search on a collection.
@@ -106,10 +105,10 @@ async def vector_search(
106
105
collection_name = collection_name ,
107
106
data = [vector ],
108
107
anns_field = vector_field ,
109
- param = search_params ,
108
+ search_params = search_params ,
110
109
limit = limit ,
111
110
output_fields = output_fields ,
112
- expr = filter_expr ,
111
+
113
112
)
114
113
return results
115
114
except Exception as e :
@@ -120,7 +119,6 @@ async def hybrid_search(
120
119
collection_name : str ,
121
120
vector : list [float ],
122
121
vector_field : str ,
123
- filter_expr : str ,
124
122
limit : int = 5 ,
125
123
output_fields : Optional [list [str ]] = None ,
126
124
metric_type : str = "COSINE" ,
@@ -144,10 +142,9 @@ async def hybrid_search(
144
142
collection_name = collection_name ,
145
143
data = [vector ],
146
144
anns_field = vector_field ,
147
- param = search_params ,
145
+ search_params = search_params ,
148
146
limit = limit ,
149
147
output_fields = output_fields ,
150
- expr = filter_expr ,
151
148
)
152
149
return results
153
150
except Exception as e :
@@ -251,7 +248,6 @@ async def multi_vector_search(
251
248
limit : int = 5 ,
252
249
output_fields : Optional [list [str ]] = None ,
253
250
metric_type : str = "COSINE" ,
254
- filter_expr : Optional [str ] = None ,
255
251
search_params : Optional [dict [str , Any ]] = None ,
256
252
) -> list [list [dict ]]:
257
253
"""
@@ -275,10 +271,9 @@ async def multi_vector_search(
275
271
collection_name = collection_name ,
276
272
data = vectors ,
277
273
anns_field = vector_field ,
278
- param = search_params ,
274
+ search_params = search_params ,
279
275
limit = limit ,
280
276
output_fields = output_fields ,
281
- expr = filter_expr ,
282
277
)
283
278
return results
284
279
except Exception as e :
0 commit comments