[Bug]: The expr condition filtering in hybrid_search is not working correctly. #2572
Open
1 task done
Labels
kind/bug
Something isn't working
Is there an existing issue for this?
Describe the bug
when I use
milvus_records = AnnSearchRequest(data=embs, anns_field="embedding",
param=self.search_params, limit=top_k, expr=expr)
sparse_milvus_records = AnnSearchRequest(data=sparse, anns_field="sparse_vector",
param=self.search_params, limit=top_k, expr=expr)
res = self.sess.hybrid_search([milvus_records, sparse_milvus_records], partition_names=self.kb_ids,
rerank=WeightedRanker(0.8, 0.5),
limit=top_k, output_fields=self.output_material_id,
timeout=client_timeout)
expr: own_province in ['800'] and first_industry_label in ['教育']
but I get 住建:
when I use :
sess.search(data=embs, partition_names=self.kb_ids, anns_field="embedding",
param=self.search_params, limit=top_k,
output_fields=self.output_material_id, expr=expr, timeout=client_timeout)
results is True
Expected Behavior
住建 is not in results
Steps/Code To Reproduce behavior
Environment details
Anything else?
No response
The text was updated successfully, but these errors were encountered: