feat(vector-store): Add Valkey vector store support (#3272)

This commit is contained in:
Swarnaprakash Udayakumar
2025-09-10 04:01:53 +05:30
committed by GitHub
parent e64488b598
commit e3f0277cb9
11 changed files with 1758 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
from pydantic import BaseModel
class ValkeyConfig(BaseModel):
"""Configuration for Valkey vector store."""
valkey_url: str
collection_name: str
embedding_model_dims: int
timezone: str = "UTC"
index_type: str = "hnsw" # Default to HNSW, can be 'hnsw' or 'flat'
# HNSW specific parameters with recommended defaults
hnsw_m: int = 16 # Number of connections per layer (default from Valkey docs)
hnsw_ef_construction: int = 200 # Search width during construction
hnsw_ef_runtime: int = 10 # Search width during queries