Unverified Commit c09184fd authored by Qiwen Tong's avatar Qiwen Tong Committed by GitHub

update bm25 search properties (#1758)

Co-authored-by: 's avatarBlade <zhangxiaobin@unixyz.cn>
parent b0d8d196
......@@ -243,7 +243,7 @@ class Weaviate(VectorStore):
query_obj = query_obj.with_where(kwargs.get("where_filter"))
if kwargs.get("additional"):
query_obj = query_obj.with_additional(kwargs.get("additional"))
properties = ['text', 'dataset_id', 'doc_hash', 'doc_id', 'document_id']
properties = ['text']
result = query_obj.with_bm25(query=query, properties=properties).with_limit(k).do()
if "errors" in result:
raise ValueError(f"Error during query: {result['errors']}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment