Add embeding_dims param to FAISS (#2513)

This commit is contained in:
Dev Khant
2025-04-07 23:29:55 +05:30
committed by GitHub
parent 2a79add7a5
commit cdb8dcdb9e
3 changed files with 7 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ class FAISSConfig(BaseModel):
normalize_L2: bool = Field(
False, description="Whether to normalize L2 vectors (only applicable for euclidean distance)"
)
embedding_model_dims: int = Field(1536, description="Dimension of the embedding vector")
@model_validator(mode="before")
@classmethod