BDR-AI commited on
Commit
4ae186f
·
verified ·
1 Parent(s): fd73fbc

Update model-schema.json

Browse files
Files changed (1) hide show
  1. model-schema.json +55 -1
model-schema.json CHANGED
@@ -1 +1,55 @@
1
- {"$schema":"http://json-schema.org/draft-07/schema#","title":"GCC Model Registry","type":"object","required":["model_id","name","version","status"],"properties":{"model_id":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"status":{"type":"string","enum":["dev","staging","prod","deprecated"]},"metrics":{"type":"object"}}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "ClaimsGPT Model Schema",
4
+ "type": "object",
5
+ "required": ["model_name", "version", "intended_use", "risk_level", "approval_status"],
6
+ "properties": {
7
+ "model_name": {
8
+ "type": "string",
9
+ "description": "HuggingFace model identifier"
10
+ },
11
+ "version": {
12
+ "type": "string",
13
+ "description": "Model version (semver: 1.0.0)"
14
+ },
15
+ "provider": {
16
+ "type": "string",
17
+ "enum": ["hf_router", "dedicated", "openai"],
18
+ "default": "hf_router"
19
+ },
20
+ "intended_use": {
21
+ "type": "string",
22
+ "description": "What this model is used for"
23
+ },
24
+ "prohibited_use": {
25
+ "type": "array",
26
+ "items": { "type": "string" }
27
+ },
28
+ "risk_level": {
29
+ "type": "string",
30
+ "enum": ["low", "medium", "high"]
31
+ },
32
+ "region_policy": {
33
+ "type": ["string", "null"],
34
+ "description": "Regional restrictions"
35
+ },
36
+ "evaluation_metrics": {
37
+ "type": "object",
38
+ "properties": {
39
+ "hallucination_rate": { "type": "number" },
40
+ "bias_score": { "type": "number" },
41
+ "latency_p95_ms": { "type": "integer" },
42
+ "cost_per_1k_tokens": { "type": "number" }
43
+ }
44
+ },
45
+ "bias_report_link": {
46
+ "type": ["string", "null"]
47
+ },
48
+ "approval_status": {
49
+ "type": "string",
50
+ "enum": ["draft", "submitted", "approved", "rejected"]
51
+ },
52
+ "approved_by": { "type": ["string", "null"] },
53
+ "approved_at": { "type": ["string", "null"] }
54
+ }
55
+ }