Spaces:
Running
Running
File size: 311 Bytes
01f5415 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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] |