소스 검색

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)
tags/v0.13.0
knew 1 년 전
부모
커밋
c5a3146a8c
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      api/apps/sdk/dify_retrieval.py

+ 1
- 1
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})

Loading…
취소
저장