Untitled
unknown
plain_text
2 years ago
271 B
13
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