Untitled

Anonymous
plain_text
06/12/2024 7:37 PM
364 B
29
Indexable
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
Editor is loading...
Leave a Comment