prefilter_app / modules /models.py
mtyrrell's picture
innovation classification
4fbb7a3
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."
)