> ## 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.

# Qdrant

> Use Qdrant as a vector store through a community-maintained adapter

Qdrant is a vector search engine that stores embeddings and performs similarity searches. It supports both cloud-hosted and self-hosted deployments.

> [!NOTE]
>
> Cognee can use Qdrant as a [vector store](https://docs.cognee.ai/setup-configuration/vector-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/vector/qdrant).

## 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-vector-adapter-qdrant
```

## Configuration

> [tab] Docker (Local)
>
> Run a local Qdrant instance:
>
> ```bash theme={null}
> docker run -p 6333:6333 -p 6334:6334 \
>     -v "$(pwd)/qdrant_storage:/qdrant/storage:z" \
>     qdrant/qdrant
> ```
>
> Configure in Python:
>
> ```python theme={null}
> from cognee_community_vector_adapter_qdrant import register
> from cognee import config
>
> register()  # registers "qdrant" as a vector provider — must run before any cognee call
>
> config.set_vector_db_config({
>     "vector_db_provider": "qdrant",
>     "vector_db_url": "http://localhost:6333",
>     "vector_db_key": "",
> })
> ```
>
> Or via environment variables:
>
> ```dotenv theme={null}
> VECTOR_DB_PROVIDER="qdrant"
> VECTOR_DB_URL="http://localhost:6333"
> VECTOR_DB_KEY=""
> ```

> [tab] Qdrant Cloud
>
> Get your API key and URL from the [Qdrant Cloud](https://qdrant.tech/documentation/cloud/) dashboard.
>
> ```python theme={null}
> from cognee_community_vector_adapter_qdrant import register
> from cognee import config
>
> register()  # registers "qdrant" as a vector provider — must run before any cognee call
>
> config.set_vector_db_config({
>     "vector_db_provider": "qdrant",
>     "vector_db_url": "https://your-cluster.qdrant.io",
>     "vector_db_key": "your_api_key",
> })
> ```
>
> Or via environment variables:
>
> ```dotenv theme={null}
> VECTOR_DB_PROVIDER="qdrant"
> VECTOR_DB_URL="https://your-cluster.qdrant.io"
> VECTOR_DB_KEY="your_api_key"
> ```

## Important Notes

> [accordion] Calling register() (fixes 'Unsupported vector database provider: qdrant')
>
> Qdrant is not built into core Cognee — it is a community adapter. Simply setting `VECTOR_DB_PROVIDER="qdrant"` is not enough; core Cognee only knows about `qdrant` once the adapter registers itself. If you skip this step you will hit:
>
> ```
> OSError: Unsupported vector database provider: qdrant. Supported providers are: LanceDB, PGVector, neptune_analytics
> ```
>
> Registration happens by **calling** `register()` (importing it is not enough) from the installed adapter package. Add the call in your application's entrypoint — the same Python process that later calls `add`, `cognify`, or `search` — and run it once, before any Cognee operation:
>
> ```python theme={null}
> from cognee_community_vector_adapter_qdrant import register
> import cognee
>
> register()  # must run before add/cognify/search
>
> async def main():
>     await cognee.add("Cognee turns your data into an AI memory.")
>     await cognee.cognify()
>     results = await cognee.search("What does cognee do?")
>     print(results)
> ```
>
> In Docker or any long-running server deployment the same rule applies: `register()` must run inside the container at startup (for example at the top of the module that boots your app), because registration lives in process memory and is not persisted. Setting the environment variable alone will not register the adapter.

> [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] [Qdrant Docs](https://qdrant.tech/documentation/)
>
> Official documentation

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

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

> [card] [Vector Stores](https://docs.cognee.ai/setup-configuration/vector-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.