Skip to main content

GraphRAG vector store package.

Project description

GraphRAG Vectors

This package provides vector store implementations for GraphRAG with support for multiple backends including LanceDB, Azure AI Search, and Azure Cosmos DB. It offers both a convenient configuration-driven API and direct factory access for creating and managing vector stores with flexible index schema definitions.

Basic usage with the utility function (recommended)

This demonstrates the recommended approach to create a vector store using the create_vector_store convenience function with configuration objects that specify the store type and index schema. The example shows setting up a LanceDB vector store with a defined index configuration, then connecting to it and creating the index for vector operations.

Open the notebook to explore the basic usage with utility function example code

Basic usage implementing the factory directly

This example shows a different approach to create vector stores by directly using the vector_store_factory with enum types and dictionary-based initialization arguments. This method provides more direct control over the factory creation process while bypassing the convenience function layer.

Open the notebook to explore the basic usage using factory directly example code

Supported Vector Stores

  • LanceDB: Local vector database
  • Azure AI Search: Azure's managed search service with vector capabilities
  • Azure Cosmos DB: Azure's NoSQL database with vector search support

Custom Vector Store

You can register custom vector store implementations:

Open the notebook to explore the custom vector example code

Configuration

Vector stores are configured using:

  • VectorStoreConfig: baseline parameters for the store
  • IndexSchema: Schema configuration for the specific index to create/connect to (index name, field names, vector size)

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_vectors-3.0.4.tar.gz (929.9 kB view details)

Uploaded Source

Built Distribution

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

graphrag_vectors-3.0.4-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file graphrag_vectors-3.0.4.tar.gz.

File metadata

  • Download URL: graphrag_vectors-3.0.4.tar.gz
  • Upload date:
  • Size: 929.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for graphrag_vectors-3.0.4.tar.gz
Algorithm Hash digest
SHA256 ea2f3fc510de71a7760a6875eb06f860d59fcb74fb524a871f4e45b404c57ac0
MD5 7370afe875be8a1ac27188fbbac3d512
BLAKE2b-256 e4f2e382d3bd22950fdb2935af34a3c57d72542850d6ae942f35884eedfbf1f1

See more details on using hashes here.

File details

Details for the file graphrag_vectors-3.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for graphrag_vectors-3.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 68a65572b664f83f5dc99dc4f5a83e19a0665c7cded01f182b6c3762048b4937
MD5 db159561f1d97a5bd26e033d771414f2
BLAKE2b-256 8e8b2ebb5434ad5e73aa8f3928d772abf3caabb4ef0af9ed99ec67a3afed58b1

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