Skip to content

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

Recalling the file uploaded while chatting. (#4472)

Kevin Huf318342c8e6c
diff --git a/api/db/services/document_service.py b/api/db/services/document_service.py
index a4de7b9778..69e13ba140 100644
--- a/api/db/services/document_service.py
+++ b/api/db/services/document_service.py
@@ -570,7 +570,7 @@ def doc_upload_and_parse(conversation_id, file_objs, user_id):
"kb_id": [kb.id],
"docnm_kwd": doc_nm[doc_id],
"title_tks": rag_tokenizer.tokenize(re.sub(r"\.[a-zA-Z]+$", "", doc_nm[doc_id])),
- "content_ltks": "",
+ "content_ltks": rag_tokenizer.tokenize("summary summarize 总结 概况 file 文件 概括"),
"content_with_weight": mind_map,
"knowledge_graph_kwd": "mind_map"
})