跳到主要内容
版本:dev

Valkey Config Configuration

Valkey vector store config.

Parameters

NameTypeRequiredDescription
userstring
The user of vector store, if not set, will use the default user.
passwordstring
The password for Valkey store.
max_chunks_once_loadinteger
The max chunks once load in vector store, if not set, will use the default value 10.
max_threadsinteger
The max threads in vector store, if not set, will use the default value 1.
hoststring
The host of Valkey store.
Defaults:localhost
portinteger
The port of Valkey store.
Defaults:6379
use_sslboolean
Whether to use SSL for the Valkey connection.
Defaults:False
index_typestring
The vector index type: 'HNSW' (approximate, fast) or 'FLAT' (exact, slower).
Defaults:HNSW
distance_metricstring
The distance metric: 'COSINE', 'L2' (Euclidean), or 'IP' (Inner Product).
Defaults:COSINE
key_prefixstring
The key prefix for all vector store keys.
Defaults:dbgpt_vec:
hnsw_minteger
HNSW: number of connections per node.
Defaults:16
hnsw_ef_constructioninteger
HNSW: construction time quality factor.
Defaults:200
hnsw_ef_runtimeinteger
HNSW: runtime search quality factor.
Defaults:10
request_timeoutinteger
Request timeout in milliseconds for Valkey operations. Prevents indefinite hangs on network issues.
Defaults:5000
metadata_schemaobject
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.