MCPcopy Create free account
hub / github.com/NanGePlus/LightRAGTest / save_data_to_file

Function save_data_to_file

LightRAG/lightrag/utils.py:210–212  ·  view source on GitHub ↗
(data, file_name)

Source from the content-addressed store, hash-verified

208
209
210def save_data_to_file(data, file_name):
211 with open(file_name, "w", encoding="utf-8") as f:
212 json.dump(data, f, ensure_ascii=False, indent=4)
213
214
215def xml_to_json(xml_file):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected