Spaces:
Runtime error
Runtime error
from typing import Dict, Any, Optional | |
from pydantic import BaseModel | |
class Ivfflat(BaseModel): | |
name: Optional[str] = None | |
lists: int = 100 | |
probes: int = 10 | |
dynamic_lists: bool = True | |
configuration: Dict[str, Any] = { | |
"maintenance_work_mem": "2GB", | |
} | |
class HNSW(BaseModel): | |
name: Optional[str] = None | |
m: int = 16 | |
ef_search: int = 5 | |
ef_construction: int = 200 | |
configuration: Dict[str, Any] = { | |
"maintenance_work_mem": "2GB", | |
} | |