Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/KnowledgeXLab/LeanRAG
/ chunk.py
File
chunk.py
GraphExtraction/chunk.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
os
2
import
json
3
from
_utils
import
split_string_by_multi_markers,_handle_single_entity_extraction,\
4
_handle_single_relationship_extraction,clean_str,pack_user_ass_to_openai_messages
Callers
nothing calls this directly
Calls
3
InstanceManager
Class · 0.90
get_chunk
Function · 0.85
triple_extraction
Function · 0.85
Tested by
no test coverage detected