Skip to main content

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:

  1. Import a pdf with MarkItDown:
pip install 'markitdown[pdf]' # required dependency for pdf processing
  1. YAML config example for above:
input:
  type: markitdown
  file_pattern: ".*\\.pdf$$"
input_storage:
  type: file
  base_dir: "input"

Open the notebook to explore the input example code

Metadata

Release files for graphrag-input 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphrag-input 3.3.0
File Size Uploaded
graphrag_input-3.3.0.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for graphrag-input 3.3.0
File Interpreter ABI Platform
graphrag_input-3.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.2 kB

Release files / graphrag_input-3.3.0.tar.gz

Download URL graphrag_input-3.3.0.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
78ced48f2e0698a2508ac9d6a1e9a49173d25dfc01ca2a098dc11f42ac83d01c
BLAKE2b-256 checksum
How to use checksums
dde233ad0eda592f46589f2199c0fa9d45fea3ce52076ddfef34c893b2a69d17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release files / graphrag_input-3.3.0-py3-none-any.whl

Download URL graphrag_input-3.3.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92ceb0029ba2aeb12e4ac1897d58edda6371296f3fcb625541e8e6b92242c956
BLAKE2b-256 checksum
How to use checksums
6d03fe08f3a5fcb17f99af6580bfca1285e51d7c13d6c8dc26d85968435b7c2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 release files

3.2.0

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.9

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page