Skip to content

Commit

Permalink
doc manager-add files-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jisyST committed Nov 22, 2024
1 parent 7dcba03 commit 8614be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lazyllm/tools/rag/doc_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def add_files(self, files: List[str] = Body(...),
exist_id = exists_files_info.get(file, None)
if exist_id:
update_kws = dict(fileid=exist_id, status=DocListManager.Status.success)
if metadatas: update_kws["metadata"] = metadatas[idx]
if metadatas: update_kws["metadata"] = json.dumps(metadatas[idx])
self._manager.update_file_message(**update_kws)
exist_ids.append(exist_id)
id_mapping[file] = exist_id
Expand Down

0 comments on commit 8614be4

Please sign in to comment.