Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
271 B
5
Indexable
Never
from pydantic import BaseModel
from typing import List, Optional

class UserPrompt(BaseModel):
    query: str

class SearchResultItem(BaseModel):
    id: str
    title: str
    content: str

class SearchResults(BaseModel):
    hits: List[SearchResultItem]
    found: int
Leave a Comment