# mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark architecture

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

## Overview

This repository is a prompt-evaluation benchmark: users supply prompts or datasets, select a model, and run single, batch, or comparison evaluations. The runner obtains model responses, scores them, and saves results; a separate report generator summarizes saved results. Configuration, dataset loading, model adapters, and scoring are the main internal layers. The tree does not contain the README-described prompts, datasets, or results directories, so those artifacts are shown without invented paths. The sampled code establishes the runner’s calls and model integrations; some advertised capabilities, such as visualizations, are documented but not fully evidenced in the excerpts.

Main entry points: [`evaluation_scripts/run_evaluation.py`](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/run_evaluation.py) (Evaluation runner), [`evaluation_scripts/models.py`](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/models.py) (LLM model adapters), [`evaluation_scripts/generate_report.py`](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/generate_report.py) (Report generator), [`evaluation_scripts/dataset_loader.py`](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/dataset_loader.py) (Dataset loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Evaluation workflow"]
  node_inputs["Prompt and dataset inputs"]
  node_runner["Evaluation runner<br/>[run_evaluation.py]"]
  node_results["Evaluation results"]
end

subgraph group_runtime["Evaluation runtime"]
  node_config["Framework configuration<br/>[config.py]"]
  node_loader["Dataset loader<br/>[dataset_loader.py]"]
  node_factory["Model factory<br/>[models.py]"]
  node_adapters["LLM model adapters<br/>[models.py]"]
  node_evaluator["Response scoring<br/>[evaluator.py]"]
end

subgraph group_reporting["Results reporting"]
  node_reporter["Report generator<br/>[generate_report.py]"]
  node_reports["Summary reports"]
end

node_user(("Benchmark user"))
node_openai{{"OpenAI API"}}
node_huggingface{{"Hugging Face API"}}

node_user -->|"provides prompts"| node_inputs
node_inputs -->|"loads dataset"| node_loader
node_user -->|"starts evaluation"| node_runner
node_runner -->|"loads prompts"| node_loader
node_runner -->|"uses settings"| node_config
node_runner -->|"creates model"| node_factory
node_factory -->|"instantiates provider"| node_adapters
node_runner -->|"generates response"| node_adapters
node_adapters -->|"calls API"| node_openai
node_adapters -->|"calls API"| node_huggingface
node_runner -->|"scores response"| node_evaluator
node_runner -->|"saves results"| node_results
node_user -->|"requests report"| node_reporter
node_results -->|"loads results"| node_reporter
node_reporter -->|"generates report"| node_reports

click node_runner "https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/run_evaluation.py"
click node_config "https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/config.py"
click node_loader "https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/dataset_loader.py"
click node_factory "https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/models.py"
click node_adapters "https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/models.py"
click node_evaluator "https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/evaluator.py"
click node_reporter "https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/generate_report.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_inputs,node_runner,node_results,node_user toneBlue
class node_config,node_loader,node_factory,node_adapters,node_evaluator toneAmber
class node_reporter,node_reports,node_openai,node_huggingface toneMint
```

## Components

### Evaluation workflow

- **Prompt and dataset inputs**
- [Evaluation runner](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/run_evaluation.py): `evaluation_scripts/run_evaluation.py`
- **Evaluation results**

### Evaluation runtime

- [Framework configuration](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/config.py): `evaluation_scripts/config.py`
- [Dataset loader](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/dataset_loader.py): `evaluation_scripts/dataset_loader.py`
- [Model factory](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/models.py): `evaluation_scripts/models.py`
- [LLM model adapters](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/models.py): `evaluation_scripts/models.py`
- [Response scoring](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/evaluator.py): `evaluation_scripts/evaluator.py`

### Results reporting

- [Report generator](https://github.com/mingivenkataramasatyasrikrishna/prompt-evaluation-benchmark/blob/main/evaluation_scripts/generate_report.py): `evaluation_scripts/generate_report.py`
- **Summary reports**

### Other components

- **Benchmark user**
- **OpenAI API**
- **Hugging Face API**

## Connections

- Benchmark user → Prompt and dataset inputs: provides prompts (evidence: `README.md`)
- Prompt and dataset inputs → Dataset loader: loads dataset (evidence: `README.md`)
- Benchmark user → Evaluation runner: starts evaluation (evidence: `README.md`)
- Evaluation runner → Dataset loader: loads prompts (evidence: `evaluation_scripts/run_evaluation.py`)
- Evaluation runner → Framework configuration: uses settings (evidence: `evaluation_scripts/run_evaluation.py`)
- Evaluation runner → Model factory: creates model (evidence: `evaluation_scripts/run_evaluation.py`)
- Model factory → LLM model adapters: instantiates provider (evidence: `evaluation_scripts/models.py`)
- Evaluation runner → LLM model adapters: generates response (evidence: `evaluation_scripts/run_evaluation.py`)
- LLM model adapters → OpenAI API: calls API (evidence: `evaluation_scripts/models.py`)
- LLM model adapters → Hugging Face API: calls API (evidence: `evaluation_scripts/models.py`)
- Evaluation runner → Response scoring: scores response (evidence: `evaluation_scripts/run_evaluation.py`)
- Evaluation runner → Evaluation results: saves results (evidence: `evaluation_scripts/run_evaluation.py`)
- Benchmark user → Report generator: requests report (evidence: `README.md`)
- Evaluation results → Report generator: loads results (evidence: `evaluation_scripts/generate_report.py`)
- Report generator → Summary reports: generates report (evidence: `evaluation_scripts/generate_report.py`)
