Skip to main content

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:

  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

Project details


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.0.tar.gz (16.6 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.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphrag_input-3.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":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.0.tar.gz
Algorithm Hash digest
SHA256 a56d92bebe56ead8e907ac13a63a55d1ac14558281c62cd756ac5a2c520e3b58
MD5 c1e5cd9837e88b9381b750ea25fb678a
BLAKE2b-256 6775401635a605df7b3c407aeacabae09e47790b8629fbf4f4fa0aed95937b81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphrag_input-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 489f9c3025b4f2da13f18d63e030da0d9a3aede908bb3503cc85ce3e3e5d5c92
MD5 978ec5bb9eeaec28a4782e033ad841d1
BLAKE2b-256 99174697c2c6d11cf281ae096f6a03cff18553da3ea1d152e07b97ad5b836969

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page