Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/KnowledgeXLab/LeanRAG
/ write
Method
write
tools/logger_factory.py:135–139 ·
view source on GitHub ↗
(self, buf)
Source
from the content-addressed store, hash-verified
133
self.buf =
''
134
135
def
write(self, buf):
136
# 去除多余的空白字符,记录非空的进度信息
137
self.buf = buf.strip()
138
if
self.buf:
139
self.logger.log(self.level, self.buf)
140
141
def
flush(self):
142
pass
Callers
15
evaluate_example
Function · 0.80
write_jsonl
Function · 0.80
write_jsonl_force
Function · 0.80
write_txt
Function · 0.80
write_chunk
Function · 0.80
write_jsonl
Function · 0.80
write_jsonl_chunk
Function · 0.80
write_markdown
Function · 0.80
remove_text_in_brackets
Function · 0.80
sort_large_file
Function · 0.80
remove_duplicates
Function · 0.80
str_full_to_half_width
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected