mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
refine mindmap prompt (#1808)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -13,7 +13,8 @@ def chunk(filename, binary, tenant_id, from_page=0, to_page=100000,
|
||||
eng = lang.lower() == "english"
|
||||
|
||||
parser_config["layout_recognize"] = False
|
||||
sections = naive.chunk(filename, binary, from_page=from_page, to_page=to_page, section_only=True, callback=callback ,parser_config=parser_config)
|
||||
sections = naive.chunk(filename, binary, from_page=from_page, to_page=to_page, section_only=True,
|
||||
parser_config=parser_config, callback=callback)
|
||||
chunks = build_knowlege_graph_chunks(tenant_id, sections, callback,
|
||||
parser_config.get("entity_types", ["organization", "person", "location", "event", "time"])
|
||||
)
|
||||
@ -27,4 +28,4 @@ def chunk(filename, binary, tenant_id, from_page=0, to_page=100000,
|
||||
doc["title_sm_tks"] = rag_tokenizer.fine_grained_tokenize(doc["title_tks"])
|
||||
chunks.extend(tokenize_chunks(sections, doc, eng))
|
||||
|
||||
return chunks
|
||||
return chunks
|
||||
Reference in New Issue
Block a user