knew commited on
Commit
7fcd041
·
1 Parent(s): 777daee

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

Browse files

### 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)

Files changed (1) hide show
  1. api/apps/sdk/dify_retrieval.py +1 -1
api/apps/sdk/dify_retrieval.py CHANGED
@@ -64,7 +64,7 @@ def retrieval(tenant_id):
64
  "content": c["content_ltks"],
65
  "score": c["similarity"],
66
  "title": c["docnm_kwd"],
67
- "metadata": ""
68
  })
69
 
70
  return jsonify({"records": records})
 
64
  "content": c["content_ltks"],
65
  "score": c["similarity"],
66
  "title": c["docnm_kwd"],
67
+ "metadata": {}
68
  })
69
 
70
  return jsonify({"records": records})