Vitomir Jovanović
Search Engine
01f5415
raw
history blame
311 Bytes
from pydantic import BaseModel
from typing import List
class Query(BaseModel):
id: str
prompt: str
class Query_Multiple(BaseModel):
prompt: List[Query]
class SimilarPrompt(BaseModel):
prompt: str
distance: float
class SearchResponse(BaseModel):
results: List[SimilarPrompt]