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:
knew 2024-10-29 11:06:02 +08:00 committed by GitHub
parent 1c364e0e5c
commit c5a3146a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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})