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.2.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.2.0
File Size Uploaded
graphrag_input-3.2.0.tar.gz 17.1 kB Details

Built distribution (wheel)

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

Total release size: 32.2 kB

Release files / graphrag_input-3.2.0.tar.gz

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

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

Download URL graphrag_input-3.2.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aa1815f8597e9383214e6990017595b794f85456d776c0e8d261de672c007cf
BLAKE2b-256 checksum
How to use checksums
7a81bc9d44e07591b66636d19d2691d452a2ae20a9f8de01ae4899fa9b0313ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.17

Release history Release notifications | RSS feed

3.3.0

2 release files

This release

3.2.0 This release

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