# vanyaahuja/socratic-debugger architecture

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

- Interactive diagram: https://gitdiagram.com/vanyaahuja/socratic-debugger
- Repository: https://github.com/vanyaahuja/socratic-debugger

## Overview

This repository is a command-line experiment for comparing open-source language models on Socratic Python-debugging prompts. A researcher selects a model, and the script loads it, iterates through five debugging and control cases, constructs a tutoring prompt for each, generates one response, and prints the response. The README documents Mistral and Code Llama as evaluation targets and describes qualitative comparison of their results. The implementation is concentrated in one script; the graph separates its meaningful runtime responsibilities. Model access is represented as an integration, not a separately inspected service.

Main entry points: [`evaluation_script.py`](https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py) (Evaluation Runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_evaluation["Evaluation Runtime"]
  node_runner["Evaluation Runner"]
  node_cases["Debugging Cases"]
  node_prompt["Socratic Prompt"]
  node_response["Response Display"]
end

subgraph group_integration["Model Integration"]
  node_generation["Text Generation"]
  node_model["Selected Model"]
end

node_researcher(("Researcher"))

node_researcher -->|"runs evaluation"| node_runner
node_runner -->|"loads pipeline"| node_generation
node_runner -->|"iterates cases"| node_cases
node_cases -->|"supplies code"| node_prompt
node_runner -->|"builds prompt"| node_prompt
node_prompt -->|"submits prompt"| node_generation
node_generation -->|"generates with"| node_model
node_generation -->|"returns text"| node_response
node_response -->|"prints response"| node_researcher

click node_runner "https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py"
click node_cases "https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py"
click node_prompt "https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py"
click node_generation "https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py"
click node_response "https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.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_runner,node_cases,node_prompt,node_response toneBlue
class node_generation,node_model toneAmber
class node_researcher toneIndigo
```

## Components

### Evaluation Runtime

- [Evaluation Runner](https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py): `evaluation_script.py`
- [Debugging Cases](https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py): `evaluation_script.py`
- [Socratic Prompt](https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py): `evaluation_script.py`
- [Response Display](https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py): `evaluation_script.py`

### Model Integration

- [Text Generation](https://github.com/vanyaahuja/socratic-debugger/blob/main/evaluation_script.py): `evaluation_script.py`
- **Selected Model**

### Other components

- **Researcher**

## Connections

- Researcher → Evaluation Runner: runs evaluation (evidence: `README.md`)
- Evaluation Runner → Text Generation: loads pipeline (evidence: `evaluation_script.py`)
- Evaluation Runner → Debugging Cases: iterates cases (evidence: `evaluation_script.py`)
- Debugging Cases → Socratic Prompt: supplies code (evidence: `evaluation_script.py`)
- Evaluation Runner → Socratic Prompt: builds prompt (evidence: `evaluation_script.py`)
- Socratic Prompt → Text Generation: submits prompt (evidence: `evaluation_script.py`)
- Text Generation → Selected Model: generates with (evidence: `evaluation_script.py`)
- Text Generation → Response Display: returns text (evidence: `evaluation_script.py`)
- Response Display → Researcher: prints response (evidence: `evaluation_script.py`)
