Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: link to KB from filemanager. (#6530)

Kevin Huc8c91fd8279e
diff --git a/api/apps/file2document_app.py b/api/apps/file2document_app.py
index d67e5ef0ab..0f19a54b46 100644
--- a/api/apps/file2document_app.py
+++ b/api/apps/file2document_app.py
@@ -39,7 +39,7 @@ def convert():
try:
files = FileService.get_by_ids(file_ids)
- files_set = set([file.id for file in files])
+ files_set = dict({file.id: file for file in files})
for file_id in file_ids:
file = files_set[file_id]
if not file: