ExtractBenchPro-results / schema /record.v1.schema.json
boyang-runllama's picture
Super-squash branch 'main' using huggingface_hub
199178d
Raw History Blame Contribute Delete
1.68 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Published benchmark result record (v1)",
"description": "One JSONL line per document: a minimal InferenceResult as loaded by the public parse-bench / extract-bench evaluators.",
"type": "object",
"required": ["request", "pipeline_name", "product_type", "started_at", "completed_at", "latency_in_ms", "raw_output", "output"],
"additionalProperties": false,
"properties": {
"request": {
"type": "object",
"required": ["example_id", "source_file_path", "product_type"],
"additionalProperties": false,
"properties": {
"example_id": {"type": "string", "pattern": "^[a-z_]+/[^/]+$", "description": "<category>/<document stem>"},
"source_file_path": {"type": "string", "description": "empty, or <stem>.pdf; never a local path"},
"product_type": {"type": "string", "enum": ["parse", "extract"]}
}
},
"pipeline_name": {"type": "string", "description": "pipeline registered in the public package; equals the results folder name"},
"product_type": {"type": "string", "enum": ["parse", "extract"]},
"started_at": {"type": "string"},
"completed_at": {"type": "string"},
"latency_in_ms": {"type": "integer", "minimum": 0},
"processing_duration_ms": {"type": "number"},
"retrieval_duration_ms": {"type": "number"},
"raw_output": {"type": "object", "description": "cost, usage and page counters; for parse layout records also the provider's own layout payload"},
"output": {"type": "object", "required": ["task_type", "example_id", "pipeline_name"], "description": "normalized ParseOutput or ExtractOutput"}
}
}