mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 18:29:01 +08:00
Recalling the file uploaded while chatting. (#4472)
### What problem does this PR solve? #4445 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
d3c07794b5
commit
f318342c8e
@ -570,7 +570,7 @@ def doc_upload_and_parse(conversation_id, file_objs, user_id):
|
|||||||
"kb_id": [kb.id],
|
"kb_id": [kb.id],
|
||||||
"docnm_kwd": doc_nm[doc_id],
|
"docnm_kwd": doc_nm[doc_id],
|
||||||
"title_tks": rag_tokenizer.tokenize(re.sub(r"\.[a-zA-Z]+$", "", 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,
|
"content_with_weight": mind_map,
|
||||||
"knowledge_graph_kwd": "mind_map"
|
"knowledge_graph_kwd": "mind_map"
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user