소스 검색

update bm25 search properties (#1758)

Co-authored-by: Blade <zhangxiaobin@unixyz.cn>
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']}")