mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix: modify the response of metadata in Dify retrieval api (#3076)
### What problem does this PR solve? Modify the response of metadata in Dify retrieval api resolve #2914 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -64,7 +64,7 @@ def retrieval(tenant_id):
|
|||||||
"content": c["content_ltks"],
|
"content": c["content_ltks"],
|
||||||
"score": c["similarity"],
|
"score": c["similarity"],
|
||||||
"title": c["docnm_kwd"],
|
"title": c["docnm_kwd"],
|
||||||
"metadata": ""
|
"metadata": {}
|
||||||
})
|
})
|
||||||
|
|
||||||
return jsonify({"records": records})
|
return jsonify({"records": records})
|
||||||
|
|||||||
Reference in New Issue
Block a user