Distance metric change and PGVectorScale support (#1703)

This commit is contained in:
Tibor Sloboda
2024-08-27 13:26:01 +02:00
committed by GitHub
parent e8004537c1
commit a94bd11a76
4 changed files with 24 additions and 5 deletions

View File

@@ -39,7 +39,8 @@ class VectorStoreConfig(BaseModel):
raise ValueError(f"Invalid config type for provider {provider}")
return self
if "path" not in config:
# also check if path in allowed kays for pydantic model, and whether config extra fields are allowed
if "path" not in config and "path" in config_class.__annotations__:
config["path"] = f"/tmp/{provider}"
self.config = config_class(**config)