Skip to main content

Common utilities and types for GraphRAG

Project description

GraphRAG Common

This package provides utility modules for GraphRAG, including a flexible factory system for dependency injection and service registration, and a comprehensive configuration loading system with Pydantic model support, environment variable substitution, and automatic file discovery.

Factory module

The Factory class provides a flexible dependency injection pattern that can register and create instances of classes implementing a common interface using string-based strategies. It supports both transient scope (creates new instances on each request) and singleton scope (returns the same instance after first creation).

Open the notebook to explore the factory module example code

Config module

The load_config function provides a comprehensive configuration loading system that automatically discovers and parses YAML/JSON config files into Pydantic models with support for environment variable substitution and .env file loading. It offers flexible features like config overrides, custom parsers for different file formats, and automatically sets the working directory to the config file location for relative path resolution.

Open the notebook to explore the config module 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_common-3.0.6.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

graphrag_common-3.0.6-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file graphrag_common-3.0.6.tar.gz.

File metadata

  • Download URL: graphrag_common-3.0.6.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for graphrag_common-3.0.6.tar.gz
Algorithm Hash digest
SHA256 e9e842145892c8e3ca8d79fe25d1ca1cb27a20eff30c78e4ca4f883df424de09
MD5 2049a2feeb0f062d91c6954b476a3576
BLAKE2b-256 610b8316b9919aa5afe339df17fd34dca3ee8cfec6f0af42b12eaada51746f67

See more details on using hashes here.

File details

Details for the file graphrag_common-3.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for graphrag_common-3.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e89e67327d5c805e365cc427ec46af5ff03783340d3a5fdb58e56c8c35b1d8c0
MD5 040d4085803bc8bfc68110fb3c5a14d7
BLAKE2b-256 8a891daa0f3a62d3510e1265c3ebb3160bae00f13fc13b14e283618eccf00932

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