prefilter_app / src /models.py
mtyrrell's picture
Changed criteria range; added delay for Azure API call; refactored
6506ce9
raw
history blame contribute delete
621 Bytes
from pydantic import BaseModel, Field, conint
from typing import Literal, List
#===================== Duplicate concepts =====================
class InnovationClassify(BaseModel):
classification: Literal["INSUFFICIENT INFO","NOT INNOVATIVE", "MODERATELY INNOVATIVE", "VERY INNOVATIVE"] = Field(
description="Overall innovation level using the rubric."
)
rationale: str = Field(
description="1–2 sentences that justify the classification."
)
confidence: int = Field(
description="0–100 confidence in the classification given the detail level in the concept."
)