MCPcopy Create free account
hub / github.com/Alibaba-NLP/ViDoRAG / documentfile2document

Function documentfile2document

utils/format_converter.py:65–70  ·  view source on GitHub ↗
(input_file)

Source from the content-addressed store, hash-verified

63 return markdown_text
64
65def documentfile2document(input_file):
66 documents = []
67 for doc in json.load(open(input_file, 'r')):
68 document = Document.from_dict(doc)
69 documents.append(document)
70 return documents
71
72def idpfile2document(input_file):
73 content_json = json.load(open(input_file, 'r'))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected