Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

update bm25 search properties (#1758)

Qiwen Tongc09184fd9486
diff --git a/api/core/vector_store/vector/weaviate.py b/api/core/vector_store/vector/weaviate.py
index 7da85ed9a0f..e00ca6978b4 100644
--- a/api/core/vector_store/vector/weaviate.py
+++ b/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']}")