geekyrakshit's picture
add: files
39b7b6a verified
raw
history blame
483 Bytes
from typing import Union
from pydantic import BaseModel
class FigureAnnotation(BaseModel):
figure_id: str
figure_description: str
class FigureAnnotations(BaseModel):
annotations: list[FigureAnnotation]
class MedQAMCQResponse(BaseModel):
answer: str
explanation: str
class MedQACitation(BaseModel):
page_number: int
document_name: str
class MedQAResponse(BaseModel):
response: Union[str, MedQAMCQResponse]
citations: list[MedQACitation]