# vedantkarande19/jam_quality_bot architecture

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

- Interactive diagram: https://gitdiagram.com/vedantkarande19/jam_quality_bot
- Repository: https://github.com/vedantkarande19/jam_quality_bot

## Overview

This is a Streamlit desk for reviewing TVS three-wheeler sales calls: an operator uploads a recording, runs diarization and English translation, reviews the aligned transcript, then scores the call against a default or uploaded rubric. The graph follows the evidenced pipeline and preserves the rubric-based scoring capability documented in the README. The scoring implementation is only partially sampled, so no unverified call to an external scoring service is shown.

Main entry points: [`call_audio_pipeline.py`](https://github.com/vedantkarande19/jam_quality_bot/blob/main/call_audio_pipeline.py) (Recording pipeline), [`call_review_app.py`](https://github.com/vedantkarande19/jam_quality_bot/blob/main/call_review_app.py) (Review and scoring UI), [`streamlit_app.py`](https://github.com/vedantkarande19/jam_quality_bot/blob/main/streamlit_app.py) (Streamlit entrypoint), [`TVS_3wheeler_call_qa_rubric.md`](https://github.com/vedantkarande19/jam_quality_bot/blob/main/TVS_3wheeler_call_qa_rubric.md) (QA rubric)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_entrypoint["Streamlit entrypoint<br/>[streamlit_app.py]"]
end

subgraph group_review["Call review"]
  node_review_app["Review and scoring UI<br/>[call_review_app.py]"]
  node_rubric["QA rubric"]
end

subgraph group_processing["Audio processing"]
  node_pipeline["Recording pipeline"]
  node_alignment["Speaker-word alignment"]
end

subgraph group_integrations["External services"]
  node_pyannote{{"Pyannote diarization"}}
  node_groq{{"Groq translation"}}
end

node_operator(("Call reviewer"))
node_audio["Uploaded recording"]

node_operator -->|"opens app"| node_entrypoint
node_entrypoint -->|"runs UI"| node_review_app
node_operator -->|"uploads recording"| node_review_app
node_review_app -->|"loads rubric"| node_rubric
node_review_app -->|"runs pipeline"| node_pipeline
node_pipeline -->|"requests diarization"| node_pyannote
node_pipeline -->|"requests translation"| node_groq
node_pipeline -->|"aligns results"| node_alignment
node_pipeline -->|"returns transcript"| node_review_app

click node_entrypoint "https://github.com/vedantkarande19/jam_quality_bot/blob/main/streamlit_app.py"
click node_review_app "https://github.com/vedantkarande19/jam_quality_bot/blob/main/call_review_app.py"
click node_rubric "https://github.com/vedantkarande19/jam_quality_bot/blob/main/TVS_3wheeler_call_qa_rubric.md"
click node_pipeline "https://github.com/vedantkarande19/jam_quality_bot/blob/main/call_audio_pipeline.py"
click node_alignment "https://github.com/vedantkarande19/jam_quality_bot/blob/main/aligned_transcript.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_entrypoint,node_operator toneBlue
class node_review_app,node_rubric toneAmber
class node_pipeline,node_alignment toneMint
class node_pyannote,node_groq toneRose
class node_audio toneIndigo
```

## Components

### App entry

- [Streamlit entrypoint](https://github.com/vedantkarande19/jam_quality_bot/blob/main/streamlit_app.py): `streamlit_app.py`

### Call review

- [Review and scoring UI](https://github.com/vedantkarande19/jam_quality_bot/blob/main/call_review_app.py): `call_review_app.py`
- [QA rubric](https://github.com/vedantkarande19/jam_quality_bot/blob/main/TVS_3wheeler_call_qa_rubric.md): `TVS_3wheeler_call_qa_rubric.md`

### Audio processing

- [Recording pipeline](https://github.com/vedantkarande19/jam_quality_bot/blob/main/call_audio_pipeline.py): `call_audio_pipeline.py`
- [Speaker-word alignment](https://github.com/vedantkarande19/jam_quality_bot/blob/main/aligned_transcript.py): `aligned_transcript.py`

### External services

- **Pyannote diarization**
- **Groq translation**

### Other components

- **Call reviewer**
- **Uploaded recording**

## Connections

- Call reviewer → Streamlit entrypoint: opens app (evidence: `README.md`)
- Streamlit entrypoint → Review and scoring UI: runs UI (evidence: `streamlit_app.py`)
- Call reviewer → Review and scoring UI: uploads recording (evidence: `README.md`)
- Review and scoring UI → QA rubric: loads rubric (evidence: `README.md`)
- Review and scoring UI → Recording pipeline: runs pipeline (evidence: `call_review_app.py`)
- Recording pipeline → Pyannote diarization: requests diarization (evidence: `call_audio_pipeline.py`)
- Recording pipeline → Groq translation: requests translation (evidence: `call_audio_pipeline.py`)
- Recording pipeline → Speaker-word alignment: aligns results (evidence: `call_audio_pipeline.py`)
- Recording pipeline → Review and scoring UI: returns transcript (evidence: `call_review_app.py`)
