Spaces:
Runtime error
Runtime error
File size: 495 Bytes
105b369 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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",
}
|