Input document loading utilities for GraphRAG
Project description
GraphRAG Inputs
This package provides input document loading utilities for GraphRAG, supporting multiple file formats including CSV, JSON, JSON Lines, and plain text.
Supported File Types
The following four standard file formats are supported out of the box:
- CSV - Tabular data with configurable column mappings
- JSON - JSON files with configurable property paths
- JSON Lines - Line-delimited JSON records
- Text - Plain text files
Markitdown Support
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.
Examples
Basic usage with the factory:
- Import a pdf with MarkItDown:
pip install 'markitdown[pdf]' # required dependency for pdf processing
- YAML config example for above:
input:
type: markitdown
file_pattern: ".*\\.pdf$$"
input_storage:
type: file
base_dir: "input"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphrag_input-3.0.2.tar.gz.
File metadata
- Download URL: graphrag_input-3.0.2.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8e8dd1eb119523e681759c91fea79e07da067de09f622a63799fc8f59f653f4
|
|
| MD5 |
c0996eed920a0182b9d64bb1f34da116
|
|
| BLAKE2b-256 |
ad420ab74fbdf2db9149e703de848a4b4885c75554f145394b98f49c0658b380
|
File details
Details for the file graphrag_input-3.0.2-py3-none-any.whl.
File metadata
- Download URL: graphrag_input-3.0.2-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dcbebdb18d780ec27cdd1a602ba8fbb7f651de39268ace3439b60fec074e194
|
|
| MD5 |
b24c53b8b20c312613afca6172c45c07
|
|
| BLAKE2b-256 |
e4819d99754332637a9be70d3c476e8485de58d97085e4038734bcfdf3bc39f9
|