Kevin Hu commited on
Commit
f861b5e
·
1 Parent(s): 1e39314

Recalling the file uploaded while chatting. (#4472)

Browse files

### What problem does this PR solve?

#4445

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

api/db/services/document_service.py CHANGED
@@ -570,7 +570,7 @@ def doc_upload_and_parse(conversation_id, file_objs, user_id):
570
  "kb_id": [kb.id],
571
  "docnm_kwd": doc_nm[doc_id],
572
  "title_tks": rag_tokenizer.tokenize(re.sub(r"\.[a-zA-Z]+$", "", doc_nm[doc_id])),
573
- "content_ltks": "",
574
  "content_with_weight": mind_map,
575
  "knowledge_graph_kwd": "mind_map"
576
  })
 
570
  "kb_id": [kb.id],
571
  "docnm_kwd": doc_nm[doc_id],
572
  "title_tks": rag_tokenizer.tokenize(re.sub(r"\.[a-zA-Z]+$", "", doc_nm[doc_id])),
573
+ "content_ltks": rag_tokenizer.tokenize("summary summarize 总结 概况 file 文件 概括"),
574
  "content_with_weight": mind_map,
575
  "knowledge_graph_kwd": "mind_map"
576
  })