MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / read_txt

Function read_txt

CommonKG/create_kg.py:29–31  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

27 f.write(line+"\n")
28
29def read_txt(path: str):
30 with open(path, "r", encoding="utf-8") as f:
31 return f.readlines()
32
33
34def process_llm_batch(item_batch, llm_processer, ref_kg_path):

Callers 1

process_single_fileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected