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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphrag_input-3.1.2.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphrag_input-3.1.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file graphrag_input-3.1.2.tar.gz.

File metadata

  • Download URL: graphrag_input-3.1.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for graphrag_input-3.1.2.tar.gz
Algorithm Hash digest
SHA256 519fbe9563d890ec25c336d9372a06e63ab8a966cf19375cc733871724ffebf1
MD5 75de1658b9f78350ba0a074662e094c4
BLAKE2b-256 c1bca381ec01262b9cf3cbe950e657e3451d94ffa221f8f178b27caf7b50eaf8

See more details on using hashes here.

File details

Details for the file graphrag_input-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: graphrag_input-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for graphrag_input-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a961a18d486282be8d875066dec90f36ecc79f2e6c6219895a36f4fbc83ab798
MD5 f92a765f749365575476d8f569cc9b71
BLAKE2b-256 6d3b4c86e103dfa246216ea722b9b1a3ff7270a4ac5a4f053814af722377f16f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.2 This release

2 files

3.1.1

2 files

3.1.0

2 files

3.0.9

2 files

3.0.8

2 files

3.0.7

2 files

3.0.6

2 files

3.0.5

2 files

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 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