Skip to content

Commit

Permalink
fix: modify the response of metadata in Dify retrieval api (#3076)
Browse files Browse the repository at this point in the history
### 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)
  • Loading branch information
k0286 authored Oct 29, 2024
1 parent 1c364e0 commit c5a3146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/apps/sdk/dify_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit c5a3146

Please sign in to comment.