# celestial-micha/paper2ppt architecture

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

- Interactive diagram: https://gitdiagram.com/celestial-micha/paper2ppt
- Repository: https://github.com/celestial-micha/paper2ppt

## Overview

This tree exposes paper2slides’ paper-to-editable-slides runtime: a CLI runs parse/RAG, summary, planning, and generation stages, producing PPTX and related artifacts. The README describes a broader evaluation-first benchmark, including DeckIR intake, audits, scorecards, repair records, and seed-template gates, but none of those implementation paths appear in the supplied tree, so they are not represented as repository components. Edges below follow shown stage dispatches, source-index references, or README statements; unsampled stage internals are not inferred.

Main entry points: [`paper2slides/core/pipeline.py`](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/pipeline.py) (Stage Pipeline), [`paper2slides/generator/text_pptx_workflow.py`](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/text_pptx_workflow.py) (Text PPTX Workflow), [`paper2slides/core/stages/rag_stage.py`](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/rag_stage.py) (RAG Stage), [`paper2slides/main.py`](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/main.py) (CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Paper Workflow"]
  node_cli["CLI<br/>[main.py]"]
  node_pipeline["Stage Pipeline<br/>[pipeline.py]"]
  node_state[("Run Checkpoints<br/>[state.py]")]
  node_paths["Output Paths<br/>[paths.py]"]
end

subgraph group_rag["Parsing And Retrieval"]
  node_rag_stage["RAG Stage<br/>[rag_stage.py]"]
  node_document_parser["Document Parsing<br/>[parser.py]"]
  node_batch_parser["Batch Parsing<br/>[batch_parser.py]"]
  node_multimodal["Modal Processors<br/>[modalprocessors.py]"]
  node_rag_engine["RAG Engine<br/>[raganything.py]"]
  node_rag_client["RAG Client<br/>[client.py]"]
end

subgraph group_content["Paper Understanding"]
  node_summary_stage["Summary Stage<br/>[summary_stage.py]"]
  node_paper_summary["Paper Summary<br/>[paper.py]"]
  node_summary_models["Extracted Evidence<br/>[models.py]"]
  node_plan_stage["Planning Stage<br/>[plan_stage.py]"]
  node_content_planner["Content Planner<br/>[content_planner.py]"]
end

subgraph group_slides["Slide Generation"]
  node_generate_stage["Generation Stage<br/>[generate_stage.py]"]
  node_slide_workflow["Text PPTX Workflow"]
  node_slide_schema["Slide Specifications<br/>[slide_schema.py]"]
  node_renderer["PPTX Renderer<br/>[pptx_renderer.py]"]
  node_layout_qa["Layout QA<br/>[pptx_qa.py]"]
  node_style_presets["Style Presets<br/>[style_presets.py]"]
end

node_user(("Paper Author"))
node_deck["Editable Deck"]

node_user -->|"submits paper"| node_cli
node_cli -->|"starts stages"| node_pipeline
node_pipeline -->|"dispatches RAG"| node_rag_stage
node_pipeline -->|"dispatches summary"| node_summary_stage
node_pipeline -->|"dispatches planning"| node_plan_stage
node_pipeline -->|"dispatches generation"| node_generate_stage
node_pipeline -->|"tracks stages"| node_state
node_pipeline -->|"resolves checkpoints"| node_paths
node_rag_stage -->|"parses batches"| node_batch_parser
node_batch_parser -->|"uses parser"| node_document_parser
node_rag_stage -->|"runs queries"| node_rag_client
node_rag_client -->|"delegates indexing"| node_rag_engine
node_rag_engine -->|"initializes processors"| node_multimodal
node_summary_stage -.->|"builds summary"| node_paper_summary
node_paper_summary -->|"extracts evidence"| node_summary_models
node_plan_stage -.->|"creates plan"| node_content_planner
node_generate_stage -->|"runs workflow"| node_slide_workflow
node_slide_workflow -->|"plans slides"| node_content_planner
node_slide_workflow -->|"builds specs"| node_slide_schema
node_slide_workflow -->|"renders slides"| node_renderer
node_slide_workflow -->|"checks layout"| node_layout_qa
node_slide_workflow -->|"selects style"| node_style_presets
node_renderer -->|"writes PPTX"| node_deck

click node_cli "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/main.py"
click node_pipeline "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/pipeline.py"
click node_state "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/state.py"
click node_paths "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/paths.py"
click node_rag_stage "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/rag_stage.py"
click node_document_parser "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/parser.py"
click node_batch_parser "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/batch_parser.py"
click node_multimodal "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/modalprocessors.py"
click node_rag_engine "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/raganything.py"
click node_rag_client "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/rag/client.py"
click node_summary_stage "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/summary_stage.py"
click node_paper_summary "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/summary/paper.py"
click node_summary_models "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/summary/models.py"
click node_plan_stage "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/plan_stage.py"
click node_content_planner "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/content_planner.py"
click node_generate_stage "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/generate_stage.py"
click node_slide_workflow "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/text_pptx_workflow.py"
click node_slide_schema "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/slide_schema.py"
click node_renderer "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/pptx_renderer.py"
click node_layout_qa "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/pptx_qa.py"
click node_style_presets "https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/style_presets.py"

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_cli,node_pipeline,node_state,node_paths toneBlue
class node_rag_stage,node_document_parser,node_batch_parser,node_multimodal,node_rag_engine,node_rag_client toneAmber
class node_summary_stage,node_paper_summary,node_summary_models,node_plan_stage,node_content_planner toneMint
class node_generate_stage,node_slide_workflow,node_slide_schema,node_renderer,node_layout_qa,node_style_presets toneRose
class node_user,node_deck toneIndigo
```

## Components

### Paper Workflow

- [CLI](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/main.py): `paper2slides/main.py`
- [Stage Pipeline](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/pipeline.py): `paper2slides/core/pipeline.py`
- [Run Checkpoints](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/state.py): `paper2slides/core/state.py`
- [Output Paths](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/paths.py): `paper2slides/core/paths.py`

### Parsing And Retrieval

- [RAG Stage](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/rag_stage.py): `paper2slides/core/stages/rag_stage.py`
- [Document Parsing](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/parser.py): `paper2slides/raganything/parser.py`
- [Batch Parsing](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/batch_parser.py): `paper2slides/raganything/batch_parser.py`
- [Modal Processors](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/modalprocessors.py): `paper2slides/raganything/modalprocessors.py`
- [RAG Engine](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/raganything/raganything.py): `paper2slides/raganything/raganything.py`
- [RAG Client](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/rag/client.py): `paper2slides/rag/client.py`

### Paper Understanding

- [Summary Stage](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/summary_stage.py): `paper2slides/core/stages/summary_stage.py`
- [Paper Summary](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/summary/paper.py): `paper2slides/summary/paper.py`
- [Extracted Evidence](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/summary/models.py): `paper2slides/summary/models.py`
- [Planning Stage](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/plan_stage.py): `paper2slides/core/stages/plan_stage.py`
- [Content Planner](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/content_planner.py): `paper2slides/generator/content_planner.py`

### Slide Generation

- [Generation Stage](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/core/stages/generate_stage.py): `paper2slides/core/stages/generate_stage.py`
- [Text PPTX Workflow](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/text_pptx_workflow.py): `paper2slides/generator/text_pptx_workflow.py`
- [Slide Specifications](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/slide_schema.py): `paper2slides/generator/slide_schema.py`
- [PPTX Renderer](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/pptx_renderer.py): `paper2slides/generator/pptx_renderer.py`
- [Layout QA](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/pptx_qa.py): `paper2slides/generator/pptx_qa.py`
- [Style Presets](https://github.com/celestial-micha/paper2ppt/blob/main/paper2slides/generator/style_presets.py): `paper2slides/generator/style_presets.py`

### Other components

- **Paper Author**
- **Editable Deck**

## Connections

- Paper Author → CLI: submits paper (evidence: `README.md`)
- CLI → Stage Pipeline: starts stages (evidence: `paper2slides/main.py`)
- Stage Pipeline → RAG Stage: dispatches RAG (evidence: `paper2slides/core/pipeline.py`)
- Stage Pipeline → Summary Stage: dispatches summary (evidence: `paper2slides/core/pipeline.py`)
- Stage Pipeline → Planning Stage: dispatches planning (evidence: `paper2slides/core/pipeline.py`)
- Stage Pipeline → Generation Stage: dispatches generation (evidence: `paper2slides/core/pipeline.py`)
- Stage Pipeline → Run Checkpoints: tracks stages (evidence: `paper2slides/core/pipeline.py`)
- Stage Pipeline → Output Paths: resolves checkpoints (evidence: `paper2slides/core/pipeline.py`)
- RAG Stage → Batch Parsing: parses batches (evidence: `paper2slides/core/stages/rag_stage.py`)
- Batch Parsing → Document Parsing: uses parser (evidence: `paper2slides/raganything/batch_parser.py`)
- RAG Stage → RAG Client: runs queries (evidence: `paper2slides/core/stages/rag_stage.py`)
- RAG Client → RAG Engine: delegates indexing (evidence: `paper2slides/rag/client.py`)
- RAG Engine → Modal Processors: initializes processors (evidence: `paper2slides/raganything/raganything.py`)
- Summary Stage → Paper Summary: builds summary
- Paper Summary → Extracted Evidence: extracts evidence (evidence: `paper2slides/summary/paper.py`)
- Planning Stage → Content Planner: creates plan
- Generation Stage → Text PPTX Workflow: runs workflow (evidence: `paper2slides/core/stages/generate_stage.py`)
- Text PPTX Workflow → Content Planner: plans slides (evidence: `paper2slides/generator/text_pptx_workflow.py`)
- Text PPTX Workflow → Slide Specifications: builds specs (evidence: `paper2slides/generator/text_pptx_workflow.py`)
- Text PPTX Workflow → PPTX Renderer: renders slides (evidence: `paper2slides/generator/text_pptx_workflow.py`)
- Text PPTX Workflow → Layout QA: checks layout (evidence: `paper2slides/generator/text_pptx_workflow.py`)
- Text PPTX Workflow → Style Presets: selects style (evidence: `paper2slides/generator/text_pptx_workflow.py`)
- PPTX Renderer → Editable Deck: writes PPTX (evidence: `README.md`)
