Valkey Config Configuration
Valkey vector store config.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
user | string | ❌ | The user of vector store, if not set, will use the default user. |
password | string | ❌ | The password for Valkey store. |
max_chunks_once_load | integer | ❌ | The max chunks once load in vector store, if not set, will use the default value 10. |
max_threads | integer | ❌ | The max threads in vector store, if not set, will use the default value 1. |
host | string | ❌ | The host of Valkey store. Defaults: localhost |
port | integer | ❌ | The port of Valkey store. Defaults: 6379 |
use_ssl | boolean | ❌ | Whether to use SSL for the Valkey connection. Defaults: False |
index_type | string | ❌ | The vector index type: 'HNSW' (approximate, fast) or 'FLAT' (exact, slower). Defaults: HNSW |
distance_metric | string | ❌ | The distance metric: 'COSINE', 'L2' (Euclidean), or 'IP' (Inner Product). Defaults: COSINE |
key_prefix | string | ❌ | The key prefix for all vector store keys. Defaults: dbgpt_vec: |
hnsw_m | integer | ❌ | HNSW: number of connections per node. Defaults: 16 |
hnsw_ef_construction | integer | ❌ | HNSW: construction time quality factor. Defaults: 200 |
hnsw_ef_runtime | integer | ❌ | HNSW: runtime search quality factor. Defaults: 10 |
request_timeout | integer | ❌ | Request timeout in milliseconds for Valkey operations. Prevents indefinite hangs on network issues. Defaults: 5000 |
metadata_schema | object | ❌ | Metadata fields to index for filtering. Dict mapping field name to type: 'tag' (string) or 'numeric'. E.g. {'source': 'tag', 'page': 'numeric'}. Must be defined at store creation time. |