claims-gpt-model-registry / model-schema.json
BDR-AI's picture
Update model-schema.json
4ae186f verified
Raw History Blame
1.53 kB
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ClaimsGPT Model Schema",
"type": "object",
"required": ["model_name", "version", "intended_use", "risk_level", "approval_status"],
"properties": {
"model_name": {
"type": "string",
"description": "HuggingFace model identifier"
},
"version": {
"type": "string",
"description": "Model version (semver: 1.0.0)"
},
"provider": {
"type": "string",
"enum": ["hf_router", "dedicated", "openai"],
"default": "hf_router"
},
"intended_use": {
"type": "string",
"description": "What this model is used for"
},
"prohibited_use": {
"type": "array",
"items": { "type": "string" }
},
"risk_level": {
"type": "string",
"enum": ["low", "medium", "high"]
},
"region_policy": {
"type": ["string", "null"],
"description": "Regional restrictions"
},
"evaluation_metrics": {
"type": "object",
"properties": {
"hallucination_rate": { "type": "number" },
"bias_score": { "type": "number" },
"latency_p95_ms": { "type": "integer" },
"cost_per_1k_tokens": { "type": "number" }
}
},
"bias_report_link": {
"type": ["string", "null"]
},
"approval_status": {
"type": "string",
"enum": ["draft", "submitted", "approved", "rejected"]
},
"approved_by": { "type": ["string", "null"] },
"approved_at": { "type": ["string", "null"] }
}
}