Spaces:
Running
Running
from pydantic import BaseModel | |
from typing import Dict, List, Optional | |
class ModelResponse(BaseModel, extra="forbid"): | |
text: str | |
isSender: bool | |
message: Optional[str] = None | |
class EmbeddingCreation(BaseModel, extra="forbid"): | |
success: bool | |
message: Optional[str] = None | |
class HybridSearchResponse(BaseModel): | |
success: bool | |
data: Optional[List[Dict]] = None | |
message: Optional[str] = None | |
class Chunk(BaseModel): | |
index: int | |
text: str | |
class ChunksResponse(BaseModel): | |
data: Dict[str, List[Chunk]] | |