Skip to content

Commit

Permalink
Fix query response model
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed Jan 16, 2024
1 parent 67adf00 commit 9ce12ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion models/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ class RequestPayload(BaseModel):
index_name: str


class ResponseData(BaseModel):
content: str
file_url: str
page_label: str


class ResponsePayload(BaseModel):
success: bool
data: List
data: List[ResponseData]

0 comments on commit 9ce12ed

Please sign in to comment.