Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: modify the response of metadata in Dify retrieval api (#3076)

knewc5a3146a8cb5
diff --git a/api/apps/sdk/dify_retrieval.py b/api/apps/sdk/dify_retrieval.py
index ac839d30f9..ddb7fdf76c 100644
--- a/api/apps/sdk/dify_retrieval.py
+++ b/api/apps/sdk/dify_retrieval.py
@@ -64,7 +64,7 @@ def retrieval(tenant_id):
"content": c["content_ltks"],
"score": c["similarity"],
"title": c["docnm_kwd"],
- "metadata": ""
+ "metadata": {}
})
return jsonify({"records": records})