# romeo-eng/meetingmind- architecture

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

- Interactive diagram: https://gitdiagram.com/romeo-eng/meetingmind-
- Repository: https://github.com/romeo-eng/meetingmind-

## Overview

MeetingMind turns transcript inputs into structured, source-grounded meeting notes and follow-up Q&A through a FastAPI backend and Next.js workspace. Its main path validates and normalizes a source, chunks it, runs local-model extraction and structured parsing, aggregates a meeting record, and returns results to the UI. A separate Q&A path retrieves transcript excerpts before answering; sample analysis, runtime health, and CSV/Markdown exports are additional product capabilities. Edges are limited to relationships shown in the excerpts, SOURCE INDEX references, or README; unsampled frontend interactions are represented only where documented.

Main entry points: [`backend/app/pipeline/service.py`](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/pipeline/service.py) (Meeting service), [`backend/app/api/routes.py`](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/api/routes.py) (HTTP routes), [`backend/app/rag/grounded_qa.py`](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/rag/grounded_qa.py) (Grounded Q&A), [`frontend/components/workspace.tsx`](https://github.com/romeo-eng/meetingmind-/blob/main/frontend/components/workspace.tsx) (Workspace UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Meeting workspace"]
  node_workspace["Workspace UI<br/>[workspace.tsx]"]
  node_frontend_api["API client<br/>[api.ts]"]
  node_status_ui["Runtime status<br/>[runtime-status.tsx]"]
end

subgraph group_api["API and sessions"]
  node_fastapi["FastAPI app<br/>[main.py]"]
  node_routes["HTTP routes<br/>[routes.py]"]
  node_contracts["Typed records<br/>[models.py]"]
  node_meeting_service["Meeting service<br/>[service.py]"]
  node_sample["Sample meeting<br/>[sample.py]"]
  node_exports["Meeting exports<br/>[routes.py]"]
end

subgraph group_analysis["Transcript analysis"]
  node_transcript_input["Transcript loading<br/>[transcripts.py]"]
  node_chunking["Transcript chunking<br/>[chunking.py]"]
  node_extraction["Chunk extraction<br/>[prompts.py]"]
  node_structured["Structured parsing<br/>[structured.py]"]
  node_aggregation["Merge and summary<br/>[service.py]"]
end

subgraph group_ai["Local AI and retrieval"]
  node_local_model["Mistral runtime<br/>[local_llm.py]"]
  node_vector_store[("FAISS retrieval<br/>[vector_store.py]")]
  node_qa["Grounded Q&amp;A<br/>[grounded_qa.py]"]
end

node_user(("Meeting user"))
node_youtube["YouTube captions"]
node_uploads["Transcript file"]

node_user -->|"submits transcript"| node_workspace
node_workspace -.->|"requests API"| node_frontend_api
node_frontend_api -.->|"calls API"| node_fastapi
node_status_ui -.->|"checks health"| node_fastapi
node_fastapi -->|"registers routes"| node_routes
node_routes -->|"loads source"| node_transcript_input
node_routes -->|"invokes analysis"| node_meeting_service
node_routes -->|"registers sample"| node_sample
node_routes -->|"streams export"| node_exports
node_routes -->|"validates responses"| node_contracts
node_youtube -->|"fetches captions"| node_transcript_input
node_uploads -->|"reads file"| node_transcript_input
node_meeting_service -->|"splits transcript"| node_chunking
node_meeting_service -->|"builds extraction chains"| node_extraction
node_meeting_service -->|"parses model output"| node_structured
node_meeting_service -->|"merges results"| node_aggregation
node_meeting_service -->|"loads runtime"| node_local_model
node_meeting_service -->|"builds meeting index"| node_vector_store
node_meeting_service -->|"requests answer"| node_qa
node_vector_store -->|"indexes chunks"| node_chunking
node_qa -->|"retrieves chunks"| node_vector_store
node_qa -->|"uses QA prompts"| node_extraction
node_qa -->|"returns sourced answer"| node_contracts
node_user -.->|"asks meeting question"| node_workspace

click node_workspace "https://github.com/romeo-eng/meetingmind-/blob/main/frontend/components/workspace.tsx"
click node_frontend_api "https://github.com/romeo-eng/meetingmind-/blob/main/frontend/lib/api.ts"
click node_status_ui "https://github.com/romeo-eng/meetingmind-/blob/main/frontend/components/runtime-status.tsx"
click node_fastapi "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/api/main.py"
click node_routes "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/api/routes.py"
click node_contracts "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/models.py"
click node_meeting_service "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/pipeline/service.py"
click node_sample "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/pipeline/sample.py"
click node_exports "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/api/routes.py"
click node_transcript_input "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/loaders/transcripts.py"
click node_chunking "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/preprocessing/chunking.py"
click node_extraction "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/chains/prompts.py"
click node_structured "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/parsers/structured.py"
click node_aggregation "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/pipeline/service.py"
click node_local_model "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/chains/local_llm.py"
click node_vector_store "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/embeddings/vector_store.py"
click node_qa "https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/rag/grounded_qa.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_workspace,node_frontend_api,node_status_ui,node_user toneBlue
class node_fastapi,node_routes,node_contracts,node_meeting_service,node_sample,node_exports toneAmber
class node_transcript_input,node_chunking,node_extraction,node_structured,node_aggregation toneMint
class node_local_model,node_vector_store,node_qa toneRose
class node_youtube,node_uploads toneIndigo
```

## Components

### Meeting workspace

- [Workspace UI](https://github.com/romeo-eng/meetingmind-/blob/main/frontend/components/workspace.tsx): `frontend/components/workspace.tsx`
- [API client](https://github.com/romeo-eng/meetingmind-/blob/main/frontend/lib/api.ts): `frontend/lib/api.ts`
- [Runtime status](https://github.com/romeo-eng/meetingmind-/blob/main/frontend/components/runtime-status.tsx): `frontend/components/runtime-status.tsx`

### API and sessions

- [FastAPI app](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/api/main.py): `backend/app/api/main.py`
- [HTTP routes](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/api/routes.py): `backend/app/api/routes.py`
- [Typed records](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/models.py): `backend/app/models.py`
- [Meeting service](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/pipeline/service.py): `backend/app/pipeline/service.py`
- [Sample meeting](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/pipeline/sample.py): `backend/app/pipeline/sample.py`
- [Meeting exports](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/api/routes.py): `backend/app/api/routes.py`

### Transcript analysis

- [Transcript loading](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/loaders/transcripts.py): `backend/app/loaders/transcripts.py`
- [Transcript chunking](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/preprocessing/chunking.py): `backend/app/preprocessing/chunking.py`
- [Chunk extraction](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/chains/prompts.py): `backend/app/chains/prompts.py`
- [Structured parsing](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/parsers/structured.py): `backend/app/parsers/structured.py`
- [Merge and summary](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/pipeline/service.py): `backend/app/pipeline/service.py`

### Local AI and retrieval

- [Mistral runtime](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/chains/local_llm.py): `backend/app/chains/local_llm.py`
- [FAISS retrieval](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/embeddings/vector_store.py): `backend/app/embeddings/vector_store.py`
- [Grounded Q&A](https://github.com/romeo-eng/meetingmind-/blob/main/backend/app/rag/grounded_qa.py): `backend/app/rag/grounded_qa.py`

### Other components

- **Meeting user**
- **YouTube captions**
- **Transcript file**

## Connections

- Meeting user → Workspace UI: submits transcript (evidence: `README.md`)
- Workspace UI → API client: requests API
- API client → FastAPI app: calls API
- Runtime status → FastAPI app: checks health (evidence: `README.md`)
- FastAPI app → HTTP routes: registers routes (evidence: `backend/app/api/main.py`)
- HTTP routes → Transcript loading: loads source (evidence: `backend/app/api/routes.py`)
- HTTP routes → Meeting service: invokes analysis (evidence: `backend/app/api/routes.py`)
- HTTP routes → Sample meeting: registers sample (evidence: `backend/app/api/routes.py`)
- HTTP routes → Meeting exports: streams export (evidence: `backend/app/api/routes.py`)
- HTTP routes → Typed records: validates responses (evidence: `backend/app/api/routes.py`)
- YouTube captions → Transcript loading: fetches captions (evidence: `backend/app/loaders/transcripts.py`)
- Transcript file → Transcript loading: reads file (evidence: `backend/app/loaders/transcripts.py`)
- Meeting service → Transcript chunking: splits transcript (evidence: `backend/app/pipeline/service.py`)
- Meeting service → Chunk extraction: builds extraction chains (evidence: `backend/app/pipeline/service.py`)
- Meeting service → Structured parsing: parses model output (evidence: `backend/app/pipeline/service.py`)
- Meeting service → Merge and summary: merges results (evidence: `backend/app/pipeline/service.py`)
- Meeting service → Mistral runtime: loads runtime (evidence: `backend/app/pipeline/service.py`)
- Meeting service → FAISS retrieval: builds meeting index (evidence: `backend/app/pipeline/service.py`)
- Meeting service → Grounded Q&A: requests answer (evidence: `backend/app/pipeline/service.py`)
- FAISS retrieval → Transcript chunking: indexes chunks (evidence: `backend/app/embeddings/vector_store.py`)
- Grounded Q&A → FAISS retrieval: retrieves chunks (evidence: `backend/app/rag/grounded_qa.py`)
- Grounded Q&A → Chunk extraction: uses QA prompts (evidence: `backend/app/chains/prompts.py`)
- Grounded Q&A → Typed records: returns sourced answer (evidence: `backend/app/rag/grounded_qa.py`)
- Meeting user → Workspace UI: asks meeting question
