{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/deepinquiry/main/json-schema/deepinquiry-fact-with-clusters-schema.json", "title": "FactWithClusters", "x-generated": "2026-10-18", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/deepinquiry-openapi.json#/components/schemas/FactWithClusters", "allOf": [ { "$ref": "#/$defs/Fact" }, { "type": "object", "properties": { "source_clusters": { "type": "array", "items": { "$ref": "#/$defs/SourceCluster" } } } } ], "$defs": { "Fact": { "type": "object", "required": [ "id", "fact_text", "category" ], "properties": { "id": { "type": "integer" }, "fact_text": { "type": "string" }, "category": { "type": "string" }, "era": { "type": [ "string", "null" ] }, "region": { "type": [ "string", "null" ] }, "surprise_score": { "type": [ "number", "null" ], "format": "float", "minimum": 0, "maximum": 1 }, "confidence_level": { "type": [ "string", "null" ] }, "verification_tier": { "type": [ "string", "null" ], "enum": [ "gold", "silver", "bronze", "unverified" ] }, "independence_score": { "type": [ "number", "null" ], "format": "float", "minimum": 0, "maximum": 1 }, "cluster_count": { "type": [ "integer", "null" ], "minimum": 0 }, "citogenesis_flags": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "Non-empty when the verification pipeline detected signs that the supporting sources copied one another." }, "claim_tier": { "type": [ "string", "null" ], "description": "Type/strength of claim (e.g. \"definitional\", \"empirical\")." }, "tags": { "type": [ "array", "null" ], "items": { "type": "string" } }, "similarity": { "type": [ "number", "null" ], "format": "float", "minimum": 0, "maximum": 1, "description": "Present only on /v1/search responses." }, "source_notes": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "Information only: weaker copies (for example a Wikipedia page or an aggregator) that were set aside because sources of another kind exist." } } }, "SourceCluster": { "type": "object", "required": [ "cluster_id", "origin_type", "member_urls" ], "properties": { "cluster_id": { "type": "string" }, "origin_type": { "type": "string", "description": "e.g. \"primary\", \"secondary\", \"tertiary\"" }, "member_urls": { "type": "array", "items": { "type": "string", "format": "uri" } } } } } }