Kuzu DB Configuration

Configure Kuzu as the graph provider for Graphiti

Kuzu is an embedded graph engine that does not require any additional setup. You can enable the Kuzu driver by installing graphiti with the Kuzu extra:

$pip install graphiti-core[kuzu]

Configuration

Set the following environment variables for Kuzu (optional):

$export KUZU_DB=/path/to/graphiti.kuzu # Default: :memory:

Connection in Python

1from graphiti_core import Graphiti
2from graphiti_core.driver.kuzu_driver import KuzuDriver
3
4# Kuzu connection using KuzuDriver
5kuzu_driver = KuzuDriver(
6 db='/path/to/graphiti.kuzu' # or os.environ.get('KUZU_DB', ':memory:')
7)
8
9graphiti = Graphiti(graph_driver=kuzu_driver)