# vinodbavage31/benchmark-framework architecture

> Architecture diagram of the GitHub repository vinodbavage31/benchmark-framework, 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/vinodbavage31/benchmark-framework
- Repository: https://github.com/vinodbavage31/benchmark-framework

## Overview

This is a configuration-driven Kannada ASR benchmarking framework. A user launches the benchmark with a YAML configuration; the runner loads dataset metadata, sends each audio file to configured providers, evaluates transcripts against references, and writes per-file and aggregated results. The graph preserves the three documented provider implementations and the benchmark’s analysis outputs. Runner internals were not excerpted, so its documented workflow edges cite the README; provider and metric details are supported by the sampled source.

Main entry points: [`src/benchmark/runner.py`](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/benchmark/runner.py) (Benchmark runner), [`scripts/run_benchmark.py`](https://github.com/vinodbavage31/benchmark-framework/blob/main/scripts/run_benchmark.py) (CLI entry point), [`src/providers/sarvam.py`](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/sarvam.py) (Sarvam provider), [`src/providers/whisper.py`](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/whisper.py) (Whisper provider)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Benchmark entry"]
  node_cli["CLI entry point<br/>[run_benchmark.py]"]
  node_runner["Benchmark runner<br/>[runner.py]"]
  node_config["YAML configuration<br/>[benchmark.yaml]"]
end

subgraph group_data["Dataset and evaluation"]
  node_metadata["Dataset metadata<br/>[metadata.csv]"]
  node_audio["Audio files"]
  node_metrics["Text metrics<br/>[metrics.py]"]
end

subgraph group_asr["ASR providers"]
  node_provider_contract["Provider interface and result<br/>[base.py]"]
  node_sarvam["Sarvam provider<br/>[sarvam.py]"]
  node_whisper["Whisper provider<br/>[whisper.py]"]
  node_indicconformer["IndicConformer provider<br/>[indicconformer.py]"]
end

subgraph group_results["Benchmark results"]
  node_raw_results["Raw per-file results<br/>[raw_results.jsonl]"]
  node_detail_results["Per-file metrics"]
  node_summary_results["Aggregated summary"]
end

node_user(("Benchmark user"))
node_sarvam_service{{"Sarvam ASR API"}}
node_whisper_model{{"Whisper model library"}}
node_hf_model{{"Hugging Face model"}}

node_user -->|"launches"| node_cli
node_cli -->|"starts"| node_runner
node_runner -.->|"reads settings"| node_config
node_runner -.->|"loads metadata"| node_metadata
node_runner -.->|"transcribes files"| node_audio
node_runner -.->|"instantiates and calls"| node_sarvam
node_runner -.->|"instantiates and calls"| node_whisper
node_runner -.->|"instantiates and calls"| node_indicconformer
node_runner -.->|"computes scores"| node_metrics
node_runner -.->|"writes records"| node_raw_results
node_runner -.->|"writes metrics"| node_detail_results
node_runner -.->|"aggregates results"| node_summary_results
node_sarvam -->|"sends audio"| node_sarvam_service
node_whisper -.->|"loads and transcribes"| node_whisper_model
node_indicconformer -->|"loads model"| node_hf_model

click node_cli "https://github.com/vinodbavage31/benchmark-framework/blob/main/scripts/run_benchmark.py"
click node_runner "https://github.com/vinodbavage31/benchmark-framework/blob/main/src/benchmark/runner.py"
click node_config "https://github.com/vinodbavage31/benchmark-framework/blob/main/config/benchmark.yaml"
click node_metadata "https://github.com/vinodbavage31/benchmark-framework/blob/main/dataset/metadata.csv"
click node_audio "https://github.com/vinodbavage31/benchmark-framework/tree/main/dataset/audio"
click node_metrics "https://github.com/vinodbavage31/benchmark-framework/blob/main/src/metrics.py"
click node_provider_contract "https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/base.py"
click node_sarvam "https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/sarvam.py"
click node_whisper "https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/whisper.py"
click node_indicconformer "https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/indicconformer.py"
click node_raw_results "https://github.com/vinodbavage31/benchmark-framework/blob/main/results/raw_results.jsonl"
click node_detail_results "https://github.com/vinodbavage31/benchmark-framework/blob/main/results/benchmark_results.csv"
click node_summary_results "https://github.com/vinodbavage31/benchmark-framework/tree/main/results"

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_runner,node_config,node_user toneBlue
class node_metadata,node_audio,node_metrics toneAmber
class node_provider_contract,node_sarvam,node_whisper,node_indicconformer,node_sarvam_service toneMint
class node_raw_results,node_detail_results,node_summary_results toneRose
class node_whisper_model,node_hf_model toneIndigo
```

## Components

### Benchmark entry

- [CLI entry point](https://github.com/vinodbavage31/benchmark-framework/blob/main/scripts/run_benchmark.py): `scripts/run_benchmark.py`
- [Benchmark runner](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/benchmark/runner.py): `src/benchmark/runner.py`
- [YAML configuration](https://github.com/vinodbavage31/benchmark-framework/blob/main/config/benchmark.yaml): `config/benchmark.yaml`

### Dataset and evaluation

- [Dataset metadata](https://github.com/vinodbavage31/benchmark-framework/blob/main/dataset/metadata.csv): `dataset/metadata.csv`
- [Audio files](https://github.com/vinodbavage31/benchmark-framework/tree/main/dataset/audio): `dataset/audio`
- [Text metrics](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/metrics.py): `src/metrics.py`

### ASR providers

- [Provider interface and result](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/base.py): `src/providers/base.py`
- [Sarvam provider](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/sarvam.py): `src/providers/sarvam.py`
- [Whisper provider](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/whisper.py): `src/providers/whisper.py`
- [IndicConformer provider](https://github.com/vinodbavage31/benchmark-framework/blob/main/src/providers/indicconformer.py): `src/providers/indicconformer.py`

### Benchmark results

- [Raw per-file results](https://github.com/vinodbavage31/benchmark-framework/blob/main/results/raw_results.jsonl): `results/raw_results.jsonl`
- [Per-file metrics](https://github.com/vinodbavage31/benchmark-framework/blob/main/results/benchmark_results.csv): `results/benchmark_results.csv`
- [Aggregated summary](https://github.com/vinodbavage31/benchmark-framework/tree/main/results): `results`

### Other components

- **Benchmark user**
- **Sarvam ASR API**
- **Whisper model library**
- **Hugging Face model**

## Connections

- Benchmark user → CLI entry point: launches (evidence: `README.md`)
- CLI entry point → Benchmark runner: starts (evidence: `scripts/run_benchmark.py`)
- Benchmark runner → YAML configuration: reads settings (evidence: `README.md`)
- Benchmark runner → Dataset metadata: loads metadata (evidence: `README.md`)
- Benchmark runner → Audio files: transcribes files (evidence: `README.md`)
- Benchmark runner → Sarvam provider: instantiates and calls (evidence: `README.md`)
- Benchmark runner → Whisper provider: instantiates and calls (evidence: `README.md`)
- Benchmark runner → IndicConformer provider: instantiates and calls (evidence: `README.md`)
- Benchmark runner → Text metrics: computes scores (evidence: `README.md`)
- Benchmark runner → Raw per-file results: writes records (evidence: `README.md`)
- Benchmark runner → Per-file metrics: writes metrics (evidence: `README.md`)
- Benchmark runner → Aggregated summary: aggregates results (evidence: `README.md`)
- Sarvam provider → Sarvam ASR API: sends audio (evidence: `src/providers/sarvam.py`)
- Whisper provider → Whisper model library: loads and transcribes (evidence: `README.md`)
- IndicConformer provider → Hugging Face model: loads model (evidence: `src/providers/indicconformer.py`)
