github-actions[bot]
GitHub deploy: 4831c9e57e35a0619d9212b7b573e2c6a9443c8c
0fe4404
raw
history blame contribute delete
404 Bytes
from pydantic import BaseModel
from typing import Optional, List, Any
class VectorItem(BaseModel):
id: str
text: str
vector: List[float | int]
metadata: Any
class GetResult(BaseModel):
ids: Optional[List[List[str]]]
documents: Optional[List[List[str]]]
metadatas: Optional[List[List[Any]]]
class SearchResult(GetResult):
distances: Optional[List[List[float | int]]]