瀏覽代碼

update bm25 search properties (#1758)

Co-authored-by: Blade <zhangxiaobin@unixyz.cn>
tags/0.3.34
Qiwen Tong 1 年之前
父節點
當前提交
c09184fd94
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/core/vector_store/vector/weaviate.py

+ 1
- 1
api/core/vector_store/vector/weaviate.py 查看文件

@@ -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']}")

Loading…
取消
儲存