Distance metric change and PGVectorScale support (#1703)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user