diff --git a/webapp/models.py b/webapp/models.py index 0d9484d..69f5010 100644 --- a/webapp/models.py +++ b/webapp/models.py @@ -408,26 +408,21 @@ class ScoreRequest(BaseModel): model_config = ConfigDict( json_schema_extra={ - "examples": [ - { - "summary": "基础评分请求", - "value": { - "question": "双源CT的时间分辨率是多少?", - "answer": "双源CT的单扇区时间分辨率为75ms。", - "contexts": "双源CT采用两套管-探测器系统 |||| 单扇区采集旋转135度", - "ground_truth": "双源CT单扇区时间分辨率为75ms,需旋转135度。", - "context_separator": " |||| ", - "metrics": [ - "faithfulness", - "answer_relevancy", - "context_recall", - "context_precision", - ], - "judge_model": "deepseek-v4-flash", - "embedding_model": "text-embedding-v3", - }, - } - ] + "example": { + "question": "双源CT的时间分辨率是多少?", + "answer": "双源CT的单扇区时间分辨率为75ms。", + "contexts": "双源CT采用两套管-探测器系统 |||| 单扇区采集旋转135度", + "ground_truth": "双源CT单扇区时间分辨率为75ms,需旋转135度。", + "context_separator": " |||| ", + "metrics": [ + "faithfulness", + "answer_relevancy", + "context_recall", + "context_precision", + ], + "judge_model": "deepseek-v4-flash", + "embedding_model": "text-embedding-v3", + } } )