Untitled

 avatar
unknown
plain_text
a year ago
271 B
7
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