> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FalkorDB

> Use FalkorDB as a hybrid graph and vector store in Cognee.

FalkorDB is an open-source graph database optimized for GraphRAG.
It supports both cloud-hosted and self-hosted deployments.

> [!NOTE]
>
> Cognee can use FalkorDB as both a [vector store](https://docs.cognee.ai/setup-configuration/vector-stores.md) and a
> [graph store](https://docs.cognee.ai/setup-configuration/graph-stores.md) backend through this
> [community-maintained](https://docs.cognee.ai/setup-configuration/community-maintained/overview.md) [adapter](https://github.com/topoteretes/cognee-community/tree/main/packages/hybrid/falkordb).

## Installation

This adapter is a separate package from core Cognee.
Before installing, complete the [Cognee installation](https://docs.cognee.ai/getting-started/installation.md) and ensure
your environment is configured with [LLM and embedding providers](https://docs.cognee.ai/setup-configuration/overview.md).
After that, install the adapter package:

```bash theme={null}
uv pip install cognee-community-hybrid-adapter-falkor
```

## Configuration

Run a local FalkorDB instance:

```bash theme={null}
docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:edge
```

Configure in Python:

```python theme={null}
from cognee_community_hybrid_adapter_falkor import register
from cognee import config

config.set_vector_db_config(
        {
            "vector_db_provider": "falkor",
            "vector_db_url": "localhost",
            "vector_db_port": 6379,
        }
    )
config.set_graph_db_config(
    {
        "graph_database_provider": "falkor",
        "graph_database_url": "localhost",
        "graph_database_port": 6379,
    }
)
```

Or via environment variables:

```dotenv theme={null}
VECTOR_DB_PROVIDER="falkor"
VECTOR_DB_URL="http://localhost:6379"
VECTOR_DB_KEY=""

GRAPH_DATABASE_PROVIDER="falkor"
GRAPH_DATABASE_URL="localhost"
GRAPH_DATABASE_PORT="6379"
```

## Important Notes

> [accordion] Adapter Registration
>
> Import `register` from the adapter package before using FalkorDB with Cognee. This registers the adapter with Cognee's provider system.

> [accordion] Embedding Dimensions
>
> Ensure `EMBEDDING_DIMENSIONS` matches your embedding model. See [Embedding Providers](https://docs.cognee.ai/setup-configuration/embedding-providers.md) for configuration.
>
> Changing dimensions requires recreating collections or running `prune.prune_system()`.

## Resources

> [card] [FalkorDB Docs](https://docs.falkordb.com/)
>
> Official documentation

> [card] [Adapter Source](https://github.com/topoteretes/cognee-community/tree/main/packages/hybrid/falkordb)
>
> GitHub repository

> [card] [Extended Example](https://github.com/topoteretes/cognee-community/tree/main/packages/hybrid/falkordb/examples/example.py)
>
> FAQ docs assistant example.

> [card] [Graph Stores](https://docs.cognee.ai/setup-configuration/graph-stores.md)
>
> Official vector providers

> [card] [Community Overview](https://docs.cognee.ai/setup-configuration/community-maintained/overview.md)
>
> All community integrations

> [card] [Setup Overview](https://docs.cognee.ai/setup-configuration/overview.md)
>
> Configuration guide


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.