packages/graphrag-input/README.md
This package provides input document loading utilities for GraphRAG, supporting multiple file formats including CSV, JSON, JSON Lines, and plain text.
The following four standard file formats are supported out of the box:
Additionally, we support the InputType.MarkItDown format, which uses the MarkItDown library to import any supported file type. The MarkItDown converter can handle a wide variety of file formats including Office documents, PDFs, HTML, and more.
Note: Additional optional dependencies may need to be installed depending on the file type you're processing. The choice of converter is determined by MarkItDowns's processing logic, which primarily uses the file extension to select the appropriate converter. Please refer to the MarkItDown repository for installation instructions and detailed information about supported formats.
Basic usage with the factory:
pip install 'markitdown[pdf]' # required dependency for pdf processing
input:
type: markitdown
file_pattern: ".*\\.pdf$$"
input_storage:
type: file
base_dir: "input"