File size: 217 Bytes
57d02cb |
1 2 3 4 5 6 7 8 9 10 11 |
from pydantic import BaseModel
from typing import List, Dict
class SearchResult(BaseModel):
id: str
score: float
metadata: Dict[str, str]
class SearchResponse(BaseModel):
matches: List[SearchResult]
|