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

Function compute_mdhash_id

tools/_utils.py:148–149  ·  view source on GitHub ↗
(content, prefix: str = "")

Source from the content-addressed store, hash-verified

146
147
148def compute_mdhash_id(content, prefix: str = ""):
149 return prefix + md5(str(content).encode()).hexdigest()
150
151
152def write_json(json_obj, file_name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected