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

Function write_yaml_conf

CommonKG/config/set_config.py:14–17  ·  view source on GitHub ↗
(config_path, data)

Source from the content-addressed store, hash-verified

12
13
14def write_yaml_conf(config_path, data):
15 # 保存更新后的配置到新的YAML文件
16 with open(config_path, "w") as file:
17 yaml.safe_dump(data, file, default_flow_style=False)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected