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

# Qdrant

> Qdrant vector database integration for semantic caching in Bifrost.

## Qdrant

[Qdrant](https://qdrant.tech/) is a high-performance vector search engine built in Rust.

### Setup & Installation

**Local Qdrant:**

```bash theme={null}
# Using Docker
docker run -d \
  --name qdrant \
  -p 6333:6333 \
  -p 6334:6334 \
  -v $(pwd)/qdrant_storage:/qdrant/storage \
  qdrant/qdrant:latest
```

**Qdrant Cloud:**
Sign up at [cloud.qdrant.io](https://cloud.qdrant.io)

### Configuration Options

> [tab] Go SDK
>
> ```go theme={null}
> vectorConfig := &vectorstore.Config{
>     Enabled: true,
>     Type:    vectorstore.VectorStoreTypeQdrant,
>     Config: vectorstore.QdrantConfig{
>         Host:   "localhost",
>         Port:   6334,
>         APIKey: "",
>         UseTLS: false,
>     },
> }
>
> store, err := vectorstore.NewVectorStore(context.Background(), vectorConfig, logger)
> ```

> [tab] config.json
>
> **Local Setup:**
>
> ```json theme={null}
> {
>   "vector_store": {
>     "enabled": true,
>     "type": "qdrant",
>     "config": {
>       "host": "localhost",
>       "port": 6334
>     }
>   }
> }
> ```
>
> **Cloud Setup:**
>
> ```json theme={null}
> {
>   "vector_store": {
>     "enabled": true,
>     "type": "qdrant",
>     "config": {
>       "host": "your-qdrant-cluster.cloud.qdrant.io",
>       "port": 6334,
>       "api_key": "your-qdrant-api-key",
>       "use_tls": true
>     }
>   }
> }
> ```

### Configuration Reference

| Field | Type | Default | Description |
| - | - | - | - |
| `host` | string | — | Qdrant server host. Supports `env.VAR_NAME` syntax. **Required.** |
| `port` | integer | `6334` | gRPC port. Bifrost always uses the gRPC interface. |
| `api_key` | string | — | API key for Qdrant Cloud authentication. Supports `env.VAR_NAME` syntax. |
| `use_tls` | boolean | `false` | Enable TLS. Required for Qdrant Cloud. |
| `max_recv_msg_size_mb` | integer | `64` | gRPC max receive message size in MB. Increase when caching large payloads (e.g. base64-encoded image generation responses exceed the default). |

> [!NOTE]
>
> Qdrant uses port 6334 for gRPC and port 6333 for REST. Bifrost uses the gRPC port.

> [!WARNING]
>
> Qdrant requires all IDs to be valid UUIDs. Use `uuid.New().String()` to generate IDs.

For the VectorStore interface API and usage examples, see [Vector Store Architecture](https://docs.getbifrost.ai/architecture/framework/vector-store.md). For semantic caching setup, see [Semantic Caching](https://docs.getbifrost.ai/features/semantic-caching.md).


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