Cognitive-rag / 03_embedding / output / multihop_artifacts / trace_example.json
trace_example.json
Raw
{
  "state": {
    "query": "Example: What written claims made by Theranos executives were later contradicted by courtroom testimony?",
    "started_at": "2026-03-01T00:00:00Z",
    "completed_at": "2026-03-01T00:00:12Z",
    "status": "terminated",
    "termination_reason": "evidence_sufficient",
    "evidence_pool": [
      {
        "chunk_id": "doc123_chunk_4",
        "doc_id": "theranos_doc_2014",
        "text": "Sample evidence text here...",
        "source": "dense",
        "modality": "text",
        "section": "press_release",
        "page": 2,
        "score": 0.81,
        "location": "page:2"
      }
    ],
    "hops": [
      {
        "hop_index": 1,
        "sub_question": "Which written statements by Theranos executives were cited at trial?",
        "retrieval_strategy": "hybrid",
        "retrieved_count": 8,
        "new_evidence_count": 6,
        "total_evidence_count": 6,
        "validation": {
          "heuristic": {
            "keyword_coverage": 0.5,
            "doc_diversity": 0.67,
            "heuristic_score": 0.57
          },
          "sufficiency_score": 0.78,
          "relevance_score": 0.82,
          "combined_score": 0.76,
          "missing_info": "",
          "should_stop": true
        },
        "retrieval_metadata": [
          {
            "chunk_id": "doc123_chunk_4",
            "doc_id": "theranos_doc_2014",
            "section": "press_release",
            "page": 2,
            "source": "hybrid",
            "score": 0.81
          }
        ],
        "started_at": "2026-03-01T00:00:01Z",
        "completed_at": "2026-03-01T00:00:06Z"
      }
    ]
  },
  "final": {
    "answer": "Sample grounded answer here.",
    "citations": [
      {
        "chunk_id": "doc123_chunk_4",
        "doc_id": "theranos_doc_2014",
        "location": "page:2"
      }
    ],
    "confidence": 0.78,
    "reasoning_trace": "Evidence from the press release was corroborated by testimony."
  }
}