Skip to content

Commit 490a41b

Browse files
committed
fix: remove filter_params in search arguments as milvus template filtering is not used anymore.
1 parent 890fa4a commit 490a41b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

openrag/components/indexer/vectordb/vectordb.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ async def async_search(
551551

552552
# Join all parts with " and " only if there are multiple conditions
553553
expr = " and ".join(expr_parts) if expr_parts else ""
554-
filter_params = filter_params or {}
555554

556555
try:
557556
query_vector = await self.embedder.aembed_query(query)
@@ -568,7 +567,6 @@ async def async_search(
568567
},
569568
"limit": top_k,
570569
"expr": expr,
571-
"expr_params": filter_params,
572570
}
573571
if self.hybrid_search:
574572
sparse_param = {
@@ -580,7 +578,6 @@ async def async_search(
580578
},
581579
"limit": top_k,
582580
"expr": expr,
583-
"expr_params": filter_params,
584581
}
585582
reqs = [
586583
AnnSearchRequest(**vector_param),
@@ -611,7 +608,6 @@ async def async_search(
611608
collection_name=self.collection_name,
612609
output_fields=["*"],
613610
filter=expr,
614-
filter_params=filter_params,
615611
**vector_param,
616612
)
617613

0 commit comments

Comments
 (0)