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.

fix: opensearch metadata filtering returns empty (#20701)

jefferyvvv4271602cfca9
diff --git a/api/core/rag/datasource/vdb/opensearch/opensearch_vector.py b/api/core/rag/datasource/vdb/opensearch/opensearch_vector.py
index b156be1a228..6a6c2b73ef9 100644
--- a/api/core/rag/datasource/vdb/opensearch/opensearch_vector.py
+++ b/api/core/rag/datasource/vdb/opensearch/opensearch_vector.py
@@ -255,7 +255,8 @@ class OpenSearchVector(BaseVector):
Field.METADATA_KEY.value: {
"type": "object",
"properties": {
- "doc_id": {"type": "keyword"} # Map doc_id to keyword type
+ "doc_id": {"type": "keyword"}, # Map doc_id to keyword type
+ "document_id": {"type": "keyword"},
},
},
}