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.7.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.7-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphrag_common-3.0.7.tar.gz
  • Upload date:
  • Size: 9.0 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_common-3.0.7.tar.gz
Algorithm Hash digest
SHA256 f9466ae9d8ad01ae67ce68f8595a4014bc7435fe2d4080aaec859b1e6f9950f6
MD5 36342303ef2a07272bb0531b9c320e72
BLAKE2b-256 9e97bbe186b7913f38bd43ffa4973e5439c228f2b46d9723e7b50dc9f1399826

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphrag_common-3.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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_common-3.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b0b39290a708ca100d5b3e337765fdd9377ede8abe6e930cc67b89a4c25301e0
MD5 eb96409a105a30fa81f9c254178a1a85
BLAKE2b-256 689e4dbb78d2c01103052f393a780f285a9c7e7c0af422cd3a73623a7aa2df14

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