# docugami/kg-rag-datasets architecture

> Architecture diagram of the GitHub repository docugami/kg-rag-datasets, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/docugami/kg-rag-datasets
- Repository: https://github.com/docugami/kg-rag-datasets

## Overview

This repository is a static collection of multi-document RAG evaluation datasets, not a running retrieval application. Its intended use is to evaluate question answering across realistic long-form documents, with single-chunk, multi-chunk, and cross-document question difficulty described in the root README. The SEC 10-Q dataset includes a question-and-answer set; the other three are marked draft, with documents listed and Q&A in progress. The graph reflects documented dataset contents only; no runtime ingestion or evaluation pipeline is evidenced by the sampled files.

Main entry points: [`README.md`](https://github.com/docugami/kg-rag-datasets/blob/main/README.md) (Dataset collection), [`sec-10-q`](https://github.com/docugami/kg-rag-datasets/tree/main/sec-10-q) (SEC 10-Q), [`ntsb-aviation-incident-accident-reports`](https://github.com/docugami/kg-rag-datasets/tree/main/ntsb-aviation-incident-accident-reports) (NTSB reports), [`nih-clinical-trial-protocols`](https://github.com/docugami/kg-rag-datasets/tree/main/nih-clinical-trial-protocols) (NIH protocols)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_datasets["Evaluation datasets"]
  node_dataset_catalog["Dataset collection<br/>[README.md]"]
end

subgraph group_sec["SEC 10-Q"]
  node_sec_dataset["SEC 10-Q"]
  node_sec_docs["Quarterly filings"]
  node_sec_qna["Q&amp;A pairs<br/>[qna_data.csv]"]
end

subgraph group_ntsb["NTSB reports"]
  node_ntsb_dataset["NTSB reports"]
  node_ntsb_docs["Aviation reports"]
end

subgraph group_nih["NIH protocols"]
  node_nih_dataset["NIH protocols"]
  node_nih_docs["Trial protocols"]
end

subgraph group_federal["Federal reports"]
  node_federal_dataset["Agency reports"]
  node_federal_docs["Annual reports"]
end

node_rag_user(("RAG evaluator"))

node_rag_user -->|"evaluates with"| node_dataset_catalog
node_dataset_catalog -->|"lists"| node_sec_dataset
node_dataset_catalog -->|"lists"| node_ntsb_dataset
node_dataset_catalog -->|"lists"| node_nih_dataset
node_dataset_catalog -->|"lists"| node_federal_dataset
node_sec_dataset -->|"provides filings"| node_sec_docs
node_sec_dataset -->|"provides Q&amp;A"| node_sec_qna
node_ntsb_dataset -->|"provides reports"| node_ntsb_docs
node_nih_dataset -->|"provides protocols"| node_nih_docs
node_federal_dataset -->|"provides reports"| node_federal_docs

click node_dataset_catalog "https://github.com/docugami/kg-rag-datasets/blob/main/README.md"
click node_sec_dataset "https://github.com/docugami/kg-rag-datasets/tree/main/sec-10-q"
click node_sec_docs "https://github.com/docugami/kg-rag-datasets/tree/main/sec-10-q/data/v1/docs"
click node_sec_qna "https://github.com/docugami/kg-rag-datasets/blob/main/sec-10-q/data/v1/qna_data.csv"
click node_ntsb_dataset "https://github.com/docugami/kg-rag-datasets/tree/main/ntsb-aviation-incident-accident-reports"
click node_ntsb_docs "https://github.com/docugami/kg-rag-datasets/tree/main/ntsb-aviation-incident-accident-reports/data/v1/docs"
click node_nih_dataset "https://github.com/docugami/kg-rag-datasets/tree/main/nih-clinical-trial-protocols"
click node_nih_docs "https://github.com/docugami/kg-rag-datasets/tree/main/nih-clinical-trial-protocols/data/v1/docs"
click node_federal_dataset "https://github.com/docugami/kg-rag-datasets/tree/main/us-fed-agency-reports"
click node_federal_docs "https://github.com/docugami/kg-rag-datasets/tree/main/us-fed-agency-reports/data/v1/docs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dataset_catalog toneBlue
class node_sec_dataset,node_sec_docs,node_sec_qna toneAmber
class node_ntsb_dataset,node_ntsb_docs toneMint
class node_nih_dataset,node_nih_docs toneRose
class node_federal_dataset,node_federal_docs,node_rag_user toneIndigo
```

## Components

### Evaluation datasets

- [Dataset collection](https://github.com/docugami/kg-rag-datasets/blob/main/README.md): `README.md`

### SEC 10-Q

- [SEC 10-Q](https://github.com/docugami/kg-rag-datasets/tree/main/sec-10-q): `sec-10-q`
- [Quarterly filings](https://github.com/docugami/kg-rag-datasets/tree/main/sec-10-q/data/v1/docs): `sec-10-q/data/v1/docs`
- [Q&A pairs](https://github.com/docugami/kg-rag-datasets/blob/main/sec-10-q/data/v1/qna_data.csv): `sec-10-q/data/v1/qna_data.csv`

### NTSB reports

- [NTSB reports](https://github.com/docugami/kg-rag-datasets/tree/main/ntsb-aviation-incident-accident-reports): `ntsb-aviation-incident-accident-reports`
- [Aviation reports](https://github.com/docugami/kg-rag-datasets/tree/main/ntsb-aviation-incident-accident-reports/data/v1/docs): `ntsb-aviation-incident-accident-reports/data/v1/docs`

### NIH protocols

- [NIH protocols](https://github.com/docugami/kg-rag-datasets/tree/main/nih-clinical-trial-protocols): `nih-clinical-trial-protocols`
- [Trial protocols](https://github.com/docugami/kg-rag-datasets/tree/main/nih-clinical-trial-protocols/data/v1/docs): `nih-clinical-trial-protocols/data/v1/docs`

### Federal reports

- [Agency reports](https://github.com/docugami/kg-rag-datasets/tree/main/us-fed-agency-reports): `us-fed-agency-reports`
- [Annual reports](https://github.com/docugami/kg-rag-datasets/tree/main/us-fed-agency-reports/data/v1/docs): `us-fed-agency-reports/data/v1/docs`

### Other components

- **RAG evaluator**

## Connections

- RAG evaluator → Dataset collection: evaluates with (evidence: `README.md`)
- Dataset collection → SEC 10-Q: lists (evidence: `README.md`)
- Dataset collection → NTSB reports: lists (evidence: `README.md`)
- Dataset collection → NIH protocols: lists (evidence: `README.md`)
- Dataset collection → Agency reports: lists (evidence: `README.md`)
- SEC 10-Q → Quarterly filings: provides filings (evidence: `README.md`)
- SEC 10-Q → Q&A pairs: provides Q&A (evidence: `README.md`)
- NTSB reports → Aviation reports: provides reports (evidence: `README.md`)
- NIH protocols → Trial protocols: provides protocols (evidence: `README.md`)
- Agency reports → Annual reports: provides reports (evidence: `README.md`)
