mirror of
https://github.com/Sosokker/plain-rag.git
synced 2025-12-18 14:34:05 +01:00
16 lines
282 B
Python
16 lines
282 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class QueryRequest(BaseModel):
|
|
question: str
|
|
|
|
|
|
class QueryResponse(BaseModel):
|
|
answer: str
|
|
sources: list[str] # We'll add source tracking later, but good to have now
|
|
|
|
|
|
class IngestResponse(BaseModel):
|
|
message: str
|
|
filename: str
|