{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/deepinquiry/main/json-schema/deepinquiry-fact-schema.json",
  "title": "Fact",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deepinquiry-openapi.json#/components/schemas/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."
    }
  }
}