RJTR001 Reja1 commited on
Commit
6e8a458
·
0 Parent(s):

Duplicate from Reja1/jee-neet-benchmark

Browse files

Co-authored-by: Md Rejaullah <Reja1@users.noreply.huggingface.co>

Files changed (46) hide show
  1. .gitattributes +3 -0
  2. .gitignore +89 -0
  3. CLAUDE.md +87 -0
  4. README.md +373 -0
  5. configs/benchmark_config.yaml +31 -0
  6. pyproject.toml +17 -0
  7. results/.gitkeep +0 -0
  8. results/anthropic_claude-sonnet-4_JEE_ADVANCED_2025_20250603_220354/predictions.jsonl +0 -0
  9. results/anthropic_claude-sonnet-4_JEE_ADVANCED_2025_20250603_220354/summary.jsonl +96 -0
  10. results/anthropic_claude-sonnet-4_JEE_ADVANCED_2025_20250603_220354/summary.md +33 -0
  11. results/google_gemini-2.5-flash-preview-05-20:thinking_JEE_ADVANCED_2025_20250607_154346/predictions.jsonl +0 -0
  12. results/google_gemini-2.5-flash-preview-05-20:thinking_JEE_ADVANCED_2025_20250607_154346/summary.jsonl +96 -0
  13. results/google_gemini-2.5-flash-preview-05-20:thinking_JEE_ADVANCED_2025_20250607_154346/summary.md +33 -0
  14. results/google_gemini-2.5-flash-preview-05-20:thinking_NEET_2025_20250614_154446/predictions.jsonl +0 -0
  15. results/google_gemini-2.5-flash-preview-05-20:thinking_NEET_2025_20250614_154446/summary.jsonl +180 -0
  16. results/google_gemini-2.5-flash-preview-05-20:thinking_NEET_2025_20250614_154446/summary.md +28 -0
  17. results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2024_20250527_100743/predictions.jsonl +0 -0
  18. results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2024_20250527_100743/summary.json +43 -0
  19. results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2024_20250527_100743/summary.md +24 -0
  20. results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2025_20250601_180855/predictions.jsonl +0 -0
  21. results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2025_20250601_180855/summary.jsonl +96 -0
  22. results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2025_20250601_180855/summary.md +32 -0
  23. results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250505_091752/predictions.jsonl +200 -0
  24. results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250505_091752/summary.json +62 -0
  25. results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250505_091752/summary.md +25 -0
  26. results/google_gemini-2.5-pro-preview-03-25_NEET_2025_20250506_195634/predictions.jsonl +0 -0
  27. results/google_gemini-2.5-pro-preview-03-25_NEET_2025_20250506_195634/summary.json +34 -0
  28. results/google_gemini-2.5-pro-preview-03-25_NEET_2025_20250506_195634/summary.md +22 -0
  29. results/openai_gpt-5_JEE_ADVANCED_2025_20250923_174647/predictions.jsonl +96 -0
  30. results/openai_gpt-5_JEE_ADVANCED_2025_20250923_174647/summary.jsonl +96 -0
  31. results/openai_gpt-5_JEE_ADVANCED_2025_20250923_174647/summary.md +32 -0
  32. results/openai_o3_JEE_ADVANCED_2025_20250630_175202/predictions.jsonl +96 -0
  33. results/openai_o3_JEE_ADVANCED_2025_20250630_175202/summary.jsonl +96 -0
  34. results/openai_o3_JEE_ADVANCED_2025_20250630_175202/summary.md +33 -0
  35. scripts/aggregate_runs.py +210 -0
  36. scripts/generate_leaderboard.py +276 -0
  37. src/__init__.py +0 -0
  38. src/benchmark_runner.py +923 -0
  39. src/evaluation.py +415 -0
  40. src/llm_interface.py +283 -0
  41. src/prompts.py +69 -0
  42. src/utils.py +194 -0
  43. tests/__init__.py +0 -0
  44. tests/test_evaluation.py +291 -0
  45. tests/test_utils.py +133 -0
  46. uv.lock +0 -0
.gitattributes ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ images/** filter=lfs diff=lfs merge=lfs -text
2
+ images/**/*.png filter=lfs diff=lfs merge=lfs -text
3
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python virtual environment
2
+ hf-env/
3
+ venv/
4
+ env/
5
+ *.venv
6
+
7
+ # Python cache files
8
+ __pycache__/
9
+ *.py[cod]
10
+ *$py.class
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+
57
+ # Jupyter Notebook
58
+ .ipynb_checkpoints
59
+
60
+ # IDE / Editor specific files
61
+ .idea/
62
+ .vscode/
63
+ *.sublime-project
64
+ *.sublime-workspace
65
+
66
+ # OS generated files
67
+ .DS_Store
68
+ Thumbs.db
69
+
70
+ # Results (optional - uncomment if you don't want to track results in Git)
71
+ # results/
72
+
73
+ # Configuration files containing secrets (uncomment if you use these names)
74
+ # configs/openrouter_config.yaml
75
+ .env*
76
+ .env
77
+
78
+ # Logs
79
+ logs/
80
+ *.log
81
+ npm-debug.log*
82
+ yarn-debug.log*
83
+ yarn-error.log*
84
+ pnpm-debug.log*
85
+ lerna-debug.log*
86
+
87
+ # Other
88
+ *.swp
89
+ *~
CLAUDE.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+ ## Project Overview
6
+
7
+ A benchmark for evaluating vision-capable LLMs on Indian competitive exam questions (JEE Main, JEE Advanced, NEET). Questions are images sent to models via the OpenRouter API; responses are parsed from `<answer>...</answer>` tags and scored using exam-specific marking schemes.
8
+
9
+ ## Running the Benchmark
10
+
11
+ ```bash
12
+ # Setup
13
+ uv sync
14
+ echo "OPENROUTER_API_KEY=your_key" > .env
15
+
16
+ # Must run from project root (paths are resolved relative to cwd)
17
+ uv run python src/benchmark_runner.py --model "google/gemini-2.5-pro-preview-03-25" --exam_name JEE_ADVANCED --exam_year 2025
18
+
19
+ # Filter by question IDs
20
+ uv run python src/benchmark_runner.py --model "openai/o3" --question_ids "N24T3001,N24T3002"
21
+ ```
22
+
23
+ CLI args: `--model` (required), `--exam_name` (all/NEET/JEE_ADVANCED/JEE_MAIN), `--exam_year` (all/2024/2025), `--question_ids`, `--output_dir`, `--config`, `--resume`, `--temperature` (override config), `--num_runs` (default 1, use 3+ for variance analysis).
24
+
25
+ ### Analysis Scripts
26
+
27
+ ```bash
28
+ # Generate cross-model leaderboard from all results
29
+ uv run python scripts/generate_leaderboard.py
30
+
31
+ # Aggregate multiple runs of the same model for variance analysis
32
+ uv run python scripts/aggregate_runs.py --pattern "openai_o3_JEE_ADVANCED_2025"
33
+ ```
34
+
35
+ ## Testing
36
+
37
+ ```bash
38
+ # Run the full pytest suite (67 tests)
39
+ uv run python -m pytest tests/ -v
40
+
41
+ # Run individual module self-tests
42
+ uv run python src/utils.py # answer parsing logic
43
+ uv run python src/evaluation.py # scoring logic
44
+ uv run python src/llm_interface.py # API calls (requires .env and network)
45
+ ```
46
+
47
+ ## Architecture
48
+
49
+ ```
50
+ benchmark_runner.py ─── orchestrator / entry point
51
+ ├── loads config from configs/benchmark_config.yaml
52
+ ├── loads dataset directly from metadata.jsonl (JSONL → HuggingFace Dataset)
53
+ │ ├── metadata.jsonl (question metadata, 578 questions)
54
+ │ └── images/ (question PNGs, stored in Git LFS)
55
+ ├── calls llm_interface.py for each question
56
+ │ ├── prompts.py (prompt templates)
57
+ │ └── utils.py (parse_llm_answer extracts from <answer> tags)
58
+ ├── scores via evaluation.py (exam-specific marking schemes)
59
+ └── writes results incrementally to results/{model}_{exam}_{year}_{timestamp}/
60
+ ├── predictions.jsonl (raw API responses)
61
+ ├── summary.jsonl (scored per-question results)
62
+ └── summary.md (human-readable report)
63
+ ```
64
+
65
+ ### Key data flow
66
+
67
+ 1. Dataset loaded directly from `metadata.jsonl` into a HuggingFace `Dataset` object, filtered by exam/year
68
+ 2. Each question image is base64-encoded and sent to OpenRouter with a structured prompt
69
+ 3. If the response can't be parsed, a re-prompt is sent (text-only, with the bad response)
70
+ 4. If the API call fails, the question is queued for retry (up to 3 attempts, exponential backoff via `tenacity`)
71
+ 5. Answers are parsed from `<answer>...</answer>` tags by `utils.parse_llm_answer()`
72
+ 6. `evaluation.py` scores using JEE/NEET marking schemes (partial credit for MCQ_MULTIPLE_CORRECT in JEE Advanced)
73
+
74
+ ## Answer Format Conventions
75
+
76
+ - `MCQ_SINGLE_CORRECT`: `<answer>A</answer>` → `["A"]`
77
+ - `MCQ_MULTIPLE_CORRECT`: `<answer>A,C</answer>` → `["A", "C"]` (sorted, deduplicated)
78
+ - `INTEGER`: `<answer>42</answer>` → `["42"]`
79
+ - `SKIP`: `<answer>SKIP</answer>` → no penalty
80
+
81
+ ## Important Notes
82
+
83
+ - **Git LFS**: Images and `metadata.jsonl` are in LFS. Run `git lfs pull` after cloning.
84
+ - **Working directory**: Scripts must be run from project root — config, data, and image paths are resolved relative to cwd.
85
+ - **Python 3.10+**: Uses union type syntax (`list[str] | str | None`).
86
+ - **Models**: Configured in `configs/benchmark_config.yaml` under `openrouter_models`. All must support vision input.
87
+ - **Result directory naming**: `results/{provider}_{model}_{exam}_{year}_{YYYYMMDD_HHMMSS}/` (slashes in model IDs replaced with underscores).
README.md ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - visual-question-answering
7
+ - image-text-to-text
8
+ - question-answering
9
+ pretty_name: Indian Competitive Exams (JEE/NEET) LLM Benchmark
10
+ size_categories:
11
+ - n<1K
12
+ tags:
13
+ - education
14
+ - science
15
+ - india
16
+ - competitive-exams
17
+ - llm-benchmark
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: test
22
+ path: "images/**"
23
+ drop_labels: true
24
+ dataset_info:
25
+ features:
26
+ - name: image
27
+ dtype: image
28
+ - name: question_id
29
+ dtype: string
30
+ - name: exam_name
31
+ dtype: string
32
+ - name: exam_year
33
+ dtype: int32
34
+ - name: subject
35
+ dtype: string
36
+ - name: question_type
37
+ dtype: string
38
+ - name: correct_answer
39
+ dtype: string
40
+ - name: paper_id
41
+ dtype: int64
42
+ splits:
43
+ - name: test
44
+ num_examples: 578
45
+ ---
46
+ # JEE/NEET LLM Benchmark Dataset
47
+
48
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
49
+
50
+ ## Dataset Description
51
+
52
+ This repository contains a benchmark dataset designed for evaluating the capabilities of Large Language Models (LLMs) on questions from major Indian competitive examinations:
53
+ * **JEE (Main & Advanced):** Joint Entrance Examination for engineering.
54
+ * **NEET:** National Eligibility cum Entrance Test for medical fields.
55
+
56
+ The questions are presented in image format (`.png`) as they appear in the original papers. The dataset includes metadata linking each image to its corresponding exam details (name, year, subject, question type), and correct answer(s). The benchmark framework supports various question types including Single Correct MCQs, Multiple Correct MCQs (with partial marking for JEE Advanced), and Integer type questions.
57
+
58
+ **Current Data:**
59
+ * **NEET 2024** (Code T3): 200 questions across Physics, Chemistry, Botany, and Zoology
60
+ * **NEET 2025** (Code 45): 180 questions across Physics, Chemistry, Botany, and Zoology
61
+ * **JEE Advanced 2024** (Paper 1 & 2): 102 questions across Physics, Chemistry, and Mathematics
62
+ * **JEE Advanced 2025** (Paper 1 & 2): 96 questions across Physics, Chemistry, and Mathematics
63
+ * **Total:** 578 questions with comprehensive metadata
64
+
65
+ ## Key Features
66
+
67
+ * **🖼️ Multimodal Reasoning:** Uses images of questions directly, testing the multimodal reasoning capability of models
68
+ * **📊 Exam-Specific Scoring:** Implements authentic scoring rules for different exams and question types, including partial marking for JEE Advanced
69
+ * **🔄 Robust API Handling:** Built-in retry mechanism and re-prompting for failed API calls or parsing errors
70
+ * **🎯 Flexible Filtering:** Filter by exam name, year, or specific question IDs for targeted evaluation
71
+ * **📈 Comprehensive Results:** Generates detailed JSON and human-readable Markdown summaries with section-wise breakdowns
72
+ * **🔧 Easy Configuration:** Simple YAML-based configuration for models and parameters
73
+
74
+ ## Leaderboard
75
+
76
+ Generate an up-to-date leaderboard from your local results:
77
+
78
+ ```bash
79
+ uv run python scripts/generate_leaderboard.py
80
+ ```
81
+
82
+ See `scripts/generate_leaderboard.py --help` for options including `--min-questions` and `--output`.
83
+
84
+ ## How to Use
85
+
86
+ ### Using `datasets` Library
87
+
88
+ The dataset is hosted on the Hugging Face Hub and can be loaded directly:
89
+
90
+ ```python
91
+ from datasets import load_dataset
92
+ import json
93
+
94
+ # Load the evaluation split
95
+ dataset = load_dataset("Reja1/jee-neet-benchmark", split='test')
96
+
97
+ # Example: Access the first question
98
+ example = dataset[0]
99
+ image = example["image"]
100
+ question_id = example["question_id"]
101
+ subject = example["subject"]
102
+ correct_answers = json.loads(example["correct_answer"]) # Parse JSON string
103
+
104
+ print(f"Question ID: {question_id}")
105
+ print(f"Subject: {subject}")
106
+ print(f"Correct Answer(s): {correct_answers}")
107
+ # Display the image (requires Pillow)
108
+ # image.show()
109
+ ```
110
+
111
+ ### Manual Usage (Benchmark Scripts)
112
+
113
+ This repository contains scripts to run the benchmark evaluation directly:
114
+
115
+ 1. **Clone the repository:**
116
+ ```bash
117
+ git clone https://huggingface.co/datasets/Reja1/jee-neet-benchmark
118
+ cd jee-neet-benchmark
119
+ # Ensure Git LFS is installed and pull large files
120
+ git lfs pull
121
+ ```
122
+
123
+ 2. **Install dependencies:**
124
+ ```bash
125
+ uv sync
126
+ ```
127
+
128
+ 3. **Configure API Key:**
129
+ * Create a file named `.env` in the root directory of the project.
130
+ * Add your OpenRouter API key to this file:
131
+ ```dotenv
132
+ OPENROUTER_API_KEY=your_actual_openrouter_api_key_here
133
+ ```
134
+ * **Important:** The `.gitignore` file is already configured to prevent committing the `.env` file. Never commit your API keys directly.
135
+
136
+ 4. **Configure Models:**
137
+ * Edit the `configs/benchmark_config.yaml` file.
138
+ * Modify the `openrouter_models` list to include the specific model identifiers you want to evaluate:
139
+ ```yaml
140
+ openrouter_models:
141
+ - "google/gemini-2.5-pro-preview-03-25"
142
+ - "anthropic/claude-sonnet-4"
143
+ - "openai/o3"
144
+ ```
145
+ * Ensure these models support vision input on OpenRouter.
146
+ * You can also adjust other parameters like `max_tokens` and `request_timeout` if needed.
147
+
148
+ 5. **Run the benchmark:**
149
+
150
+ **Basic usage (run all available models on all questions):**
151
+ ```bash
152
+ uv run python src/benchmark_runner.py --config configs/benchmark_config.yaml --model "google/gemini-2.5-pro-preview-03-25"
153
+ ```
154
+
155
+ **Filter by exam and year:**
156
+ ```bash
157
+ # Run only NEET 2024 questions
158
+ uv run python src/benchmark_runner.py --config configs/benchmark_config.yaml --model "openai/o3" --exam_name NEET --exam_year 2024
159
+
160
+ # Run only JEE Advanced 2025 questions
161
+ uv run python src/benchmark_runner.py --config configs/benchmark_config.yaml --model "anthropic/claude-sonnet-4" --exam_name JEE_ADVANCED --exam_year 2025
162
+ ```
163
+
164
+ **Run specific questions:**
165
+ ```bash
166
+ # Run specific question IDs
167
+ uv run python src/benchmark_runner.py --config configs/benchmark_config.yaml --model "google/gemini-2.5-pro-preview-03-25" --question_ids "N24T3001,N24T3002,JA24P1M01"
168
+ ```
169
+
170
+ **Resume an interrupted run:**
171
+ ```bash
172
+ # Resume from an existing results directory (skips already-completed questions)
173
+ uv run python src/benchmark_runner.py --model "google/gemini-2.5-pro-preview-03-25" --resume results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250524_141230
174
+ ```
175
+
176
+ **Custom output directory:**
177
+ ```bash
178
+ uv run python src/benchmark_runner.py --config configs/benchmark_config.yaml --model "openai/gpt-4o" --output_dir my_custom_results
179
+ ```
180
+
181
+ **Available options:**
182
+ - `--exam_name`: Choose from `NEET`, `JEE_MAIN`, `JEE_ADVANCED`, or `all` (default)
183
+ - `--exam_year`: Choose from available years (`2024`, `2025`, etc.) or `all` (default)
184
+ - `--question_ids`: Comma-separated list of specific question IDs to evaluate (e.g., "N24T3001,JA24P1M01")
185
+ - `--resume`: Path to an existing results directory to resume an interrupted run
186
+
187
+ 6. **Check Results:**
188
+ * Results for each model run will be saved in timestamped subdirectories within the `results/` folder.
189
+ * Each run's folder (e.g., `results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250524_141230/`) contains:
190
+ * **`predictions.jsonl`**: Raw API responses for each question including:
191
+ - Raw LLM responses
192
+ - API call success/failure information
193
+ - Parse success status and errors
194
+ * **`summary.jsonl`**: Per-question scored results including:
195
+ - Predicted answers and ground truth
196
+ - Evaluation status and marks awarded
197
+ * **`summary.md`**: Human-readable Markdown summary with:
198
+ - Overall exam scores
199
+ - Question type breakdown
200
+ - Section-wise breakdown (by subject)
201
+ - Detailed statistics on correct/incorrect/skipped questions
202
+
203
+ ## Scoring System
204
+
205
+ The benchmark implements authentic scoring systems for each exam type:
206
+
207
+ ### NEET Scoring
208
+ - **Single Correct MCQ**: +4 for correct, -1 for incorrect, 0 for skipped/API failure
209
+
210
+ ### JEE Main Scoring
211
+ - **Single Correct MCQ**: +4 for correct, -1 for incorrect, 0 for skipped/API failure
212
+ - **Integer Type**: +4 for correct, 0 for incorrect, 0 for skipped/API failure
213
+
214
+ ### JEE Advanced Scoring
215
+ - **Single Correct MCQ**: +3 for correct, -1 for incorrect, 0 for skipped/API failure
216
+ - **Multiple Correct MCQ**: Partial marking system:
217
+ - +4 for all correct options selected
218
+ - +3 for 3 out of 4 correct options (when 4 are correct)
219
+ - +2 for 2 out of 3+ correct options
220
+ - +1 for 1 out of 2+ correct options
221
+ - -2 for any incorrect option selected
222
+ - 0 for skipped/API failure
223
+ - **Integer Type**: +4 for correct, 0 for incorrect, 0 for skipped/API failure
224
+
225
+ > **Note:** API failures and parse failures are scored as 0 (no penalty) since they do not represent a deliberate wrong choice.
226
+
227
+ ## Advanced Features
228
+
229
+ ### Retry Mechanism
230
+ - Automatic retry for failed API calls (up to 3 attempts with exponential backoff)
231
+ - Retries on HTTP 429 (rate limit), 500, 502, 503, 504 status codes
232
+ - Separate retry pass for questions that failed initially
233
+ - Comprehensive error tracking and reporting
234
+
235
+ ### Resume Capability
236
+ - Resume interrupted benchmark runs with `--resume <results_dir>`
237
+ - Reads existing `summary.jsonl` to identify completed questions and skips them
238
+ - Appends new results to the same output files
239
+
240
+ ### Re-prompting System
241
+ - If initial response parsing fails, the system automatically re-prompts the model
242
+ - Uses the previous response to ask for properly formatted answers
243
+ - Shows only relevant format examples based on question type (MCQ single, MCQ multiple, or integer)
244
+
245
+ ### Comprehensive Evaluation
246
+ - Tracks multiple metrics: correct answers, partial credit, skipped questions, API failures
247
+ - Section-wise breakdown by subject
248
+ - Color-coded progress indicators in terminal output
249
+
250
+ ## Dataset Structure
251
+
252
+ * **`metadata.jsonl`**: Contains metadata for each question image with fields:
253
+ - `file_name`: Path to the question image (relative to repo root)
254
+ - `question_id`: Unique identifier (e.g., "N24T3001")
255
+ - `exam_name`: Exam type ("NEET", "JEE_MAIN", "JEE_ADVANCED")
256
+ - `exam_year`: Year of the exam (integer)
257
+ - `subject`: Subject name (e.g., "Physics", "Chemistry", "Mathematics")
258
+ - `question_type`: Question format ("MCQ_SINGLE_CORRECT", "MCQ_MULTIPLE_CORRECT", "INTEGER")
259
+ - `correct_answer`: JSON-serialized string of correct answers (e.g., `'["A"]'`, `'["B", "C"]'`, `'["42"]'`)
260
+
261
+ * **`images/`**: Contains subdirectories for each exam set:
262
+ - `images/NEET_2024_T3/`: NEET 2024 question images
263
+ - `images/NEET_2025_45/`: NEET 2025 question images
264
+ - `images/JEE_ADVANCED_2024/`: JEE Advanced 2024 question images
265
+ - `images/JEE_ADVANCED_2025/`: JEE Advanced 2025 question images
266
+
267
+
268
+ * **`src/`**: Python source code for the benchmark system:
269
+ - `benchmark_runner.py`: Main benchmark execution script
270
+ - `llm_interface.py`: OpenRouter API interface with retry logic
271
+ - `evaluation.py`: Scoring and evaluation functions
272
+ - `prompts.py`: LLM prompts for different question types
273
+ - `utils.py`: Utility functions for parsing and configuration
274
+
275
+ * **`configs/`**: Configuration files:
276
+ - `benchmark_config.yaml`: Model selection and API parameters
277
+
278
+ * **`results/`**: Directory where benchmark results are stored (timestamped subdirectories)
279
+
280
+ ## Data Fields
281
+
282
+ The dataset contains the following fields (accessible via `datasets`):
283
+
284
+ * `image`: The question image (`datasets.Image`)
285
+ * `question_id`: Unique identifier for the question (string)
286
+ * `exam_name`: Name of the exam (e.g., "NEET", "JEE_ADVANCED") (string)
287
+ * `exam_year`: Year of the exam (int)
288
+ * `subject`: Subject (e.g., "Physics", "Chemistry", "Mathematics") (string)
289
+ * `question_type`: Type of question (e.g., "MCQ_SINGLE_CORRECT", "INTEGER") (string)
290
+ * `correct_answer`: JSON-serialized string containing the correct answer(s). Use `json.loads()` to parse.
291
+ - For MCQs, these are option identifiers (e.g., `'["1"]'`, `'["A"]'`, `'["B", "C"]'`). The LLM should output the identifier as it appears in the question.
292
+ - For INTEGER type, this is the numerical answer as a string (e.g., `'["42"]'`, `'["12.75"]'`). The LLM should output the number.
293
+ - For some `MCQ_SINGLE_CORRECT` questions, multiple answers in the list are considered correct if the LLM prediction matches any one of them.
294
+
295
+ ## LLM Answer Format
296
+
297
+ The LLM is expected to return its answer enclosed in `<answer>` tags. For example:
298
+ - MCQ Single Correct (Option A): `<answer>A</answer>`
299
+ - MCQ Single Correct (Option 2): `<answer>2</answer>`
300
+ - MCQ Multiple Correct (Options B and D): `<answer>B,D</answer>`
301
+ - Integer Answer: `<answer>42</answer>`
302
+ - Decimal Answer: `<answer>12.75</answer>`
303
+ - Skipped Question: `<answer>SKIP</answer>
304
+
305
+ The system parses these formats. Prompts are designed to guide the LLM accordingly.
306
+
307
+ ## Troubleshooting
308
+
309
+ ### Common Issues
310
+
311
+ **API Key Issues:**
312
+ - Ensure your `.env` file is in the root directory
313
+ - Verify your OpenRouter API key is valid and has sufficient credits
314
+ - Check that the key has access to vision-capable models
315
+
316
+ **Model Not Found:**
317
+ - Verify the model identifier exists on OpenRouter
318
+ - Ensure the model supports vision input
319
+ - Check your OpenRouter account has access to the specific model
320
+
321
+ **Memory Issues:**
322
+ - Reduce `max_tokens` in the config file
323
+ - Process smaller subsets using `--question_ids` filter
324
+ - Use models with smaller context windows
325
+
326
+ **Parsing Failures:**
327
+ - The system automatically attempts re-prompting for parsing failures
328
+ - Check the raw responses in `predictions.jsonl` to debug prompt issues
329
+ - Consider adjusting prompts in `src/prompts.py` for specific models
330
+
331
+ ## Limitations & Data Contamination
332
+
333
+ ### Contamination Risk
334
+ This benchmark uses questions from publicly administered exams (JEE Advanced and NEET). These questions are widely published online after each exam and may appear in the training data of evaluated models, particularly for older exam years (e.g., 2024). High scores on this benchmark may therefore partially reflect memorization rather than genuine reasoning ability.
335
+
336
+ To help assess contamination effects:
337
+ - **Compare across years**: Models may score higher on older exams (2024) whose questions had more time to enter training data, compared to newer exams (2025).
338
+ - **Cross-reference with novel benchmarks**: Compare performance on this benchmark with contamination-resistant benchmarks like GPQA or Humanity's Last Exam.
339
+
340
+ This benchmark is best understood as an evaluation on **publicly available exam questions** rather than a contamination-free assessment of reasoning capability.
341
+
342
+ ### JEE Main Support
343
+ The benchmark framework fully supports JEE Main scoring rules in code, but the current dataset does not include JEE Main questions. JEE Main support is available for users who wish to add their own JEE Main question sets.
344
+
345
+ ### Other Limitations
346
+ - **Single prompt template**: Results may vary with different prompt formulations. The benchmark currently uses one prompt template per question type.
347
+ - **No multi-run variance**: Each model is evaluated once per exam. Results may vary slightly across runs due to non-deterministic model behavior.
348
+ - **Image quality dependence**: Performance may be affected by image resolution, scan quality, or the presence of artifacts in question images.
349
+ - **Language Support**: Currently only supports English questions.
350
+ - **Model Dependencies**: Requires models with vision capabilities available through OpenRouter.
351
+
352
+ ## Citation
353
+
354
+ If you use this dataset or benchmark code, please cite:
355
+
356
+ ```bibtex
357
+ @misc{rejaullah_2025_jeeneetbenchmark,
358
+ title={JEE/NEET LLM Benchmark},
359
+ author={Md Rejaullah},
360
+ year={2025},
361
+ howpublished={\url{https://huggingface.co/datasets/Reja1/jee-neet-benchmark}},
362
+ }
363
+ ```
364
+
365
+ ## Contact
366
+
367
+ For questions, suggestions, or collaboration, feel free to reach out:
368
+
369
+ * **X (Twitter):** [https://x.com/RejaullahmdMd](https://x.com/RejaullahmdMd)
370
+
371
+ ## License
372
+
373
+ This dataset and associated code are licensed under the [MIT License](https://opensource.org/licenses/MIT).
configs/benchmark_config.yaml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # List of OpenRouter model identifiers to evaluate.
2
+ # Find identifiers at: https://openrouter.ai/docs#models
3
+ # Ensure the models support vision input.
4
+ openrouter_models:
5
+ - "google/gemini-2.5-pro-preview-03-25"
6
+ - "anthropic/claude-sonnet-4"
7
+ - "google/gemini-2.5-flash-preview-05-20:thinking"
8
+ - "openai/o3"
9
+ - "openai/gpt-5"
10
+ - "x-ai/grok-4-fast:free"
11
+ - "google/gemini-3-pro-preview"
12
+ # - "google/gemini-pro-vision" # Example - uncomment or add others
13
+ # - "anthropic/claude-3-opus" # Example - check vision support and access
14
+ # - "anthropic/claude-3-sonnet"
15
+ # - "anthropic/claude-3-haiku"
16
+
17
+ # Path to the metadata JSONL file and base directory for image paths.
18
+ metadata_path: "images/metadata.jsonl"
19
+ images_base_dir: "images"
20
+
21
+ # Base directory where results for each model will be saved.
22
+ results_base_dir: "results"
23
+
24
+ # Optional: API request parameters
25
+ # Maximum tokens to generate in the response. Keep it low as we expect only numbers.
26
+ max_tokens: 10000
27
+ # Timeout for each API request in seconds.
28
+ # Set high enough for thinking models (o3, Gemini Flash Thinking) which can take longer.
29
+ request_timeout: 200
30
+ # Sampling temperature. 0 = deterministic (greedy decoding) for reproducibility.
31
+ temperature: 0
pyproject.toml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "jee-neet-benchmark"
3
+ version = "0.1.0"
4
+ description = "Add your description here"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ dependencies = [
8
+ "datasets==3.5.1",
9
+ "huggingface-hub==0.30.2",
10
+ "pillow==11.2.1",
11
+ "pytest==9.0.2",
12
+ "python-dotenv==1.1.0",
13
+ "pyyaml==6.0.2",
14
+ "requests==2.32.3",
15
+ "tenacity==9.1.2",
16
+ "tqdm==4.67.1",
17
+ ]
results/.gitkeep ADDED
File without changes
results/anthropic_claude-sonnet-4_JEE_ADVANCED_2025_20250603_220354/predictions.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
results/anthropic_claude-sonnet-4_JEE_ADVANCED_2025_20250603_220354/summary.jsonl ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "JA25P1P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
2
+ {"question_id": "JA25P1P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
3
+ {"question_id": "JA25P1P03", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["A"], "attempt": 1}
4
+ {"question_id": "JA25P1P04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["A"], "ground_truth": ["C"], "attempt": 1}
5
+ {"question_id": "JA25P1P05", "marks_awarded": 1, "evaluation_status": "partial_1_of_2_plus", "predicted_answer": ["B"], "ground_truth": ["B", "D"], "attempt": 1}
6
+ {"question_id": "JA25P1P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
7
+ {"question_id": "JA25P1P07", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["B", "D"], "ground_truth": ["A", "D"], "attempt": 1}
8
+ {"question_id": "JA25P1P08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
9
+ {"question_id": "JA25P1P09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["7"], "ground_truth": [["21", "25"]], "attempt": 1}
10
+ {"question_id": "JA25P1P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
11
+ {"question_id": "JA25P1P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.5"], "ground_truth": ["0.5", "0.75"], "attempt": 1}
12
+ {"question_id": "JA25P1P12", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["72"], "ground_truth": [["75", "79"]], "attempt": 1}
13
+ {"question_id": "JA25P1P13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["27"], "ground_truth": ["72"], "attempt": 1}
14
+ {"question_id": "JA25P1P14", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["C"], "attempt": 1}
15
+ {"question_id": "JA25P1P15", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["A"], "attempt": 1}
16
+ {"question_id": "JA25P1P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
17
+ {"question_id": "JA25P1C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
18
+ {"question_id": "JA25P1C02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
19
+ {"question_id": "JA25P1C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
20
+ {"question_id": "JA25P1C04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["B"], "attempt": 1}
21
+ {"question_id": "JA25P1C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C"], "ground_truth": ["B", "C"], "attempt": 1}
22
+ {"question_id": "JA25P1C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
23
+ {"question_id": "JA25P1C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
24
+ {"question_id": "JA25P1C08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["100"], "ground_truth": ["100"], "attempt": 1}
25
+ {"question_id": "JA25P1C09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": [["2.2", "2.3"]], "attempt": 1}
26
+ {"question_id": "JA25P1C10", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["1.01"], "ground_truth": [["-7.2", "-7"]], "attempt": 1}
27
+ {"question_id": "JA25P1C11", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["30"], "ground_truth": [["-29.95", "-29.8"], ["29.8", "29.95"]], "attempt": 1}
28
+ {"question_id": "JA25P1C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["280"], "ground_truth": ["280"], "attempt": 1}
29
+ {"question_id": "JA25P1C13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["138"], "ground_truth": ["175"], "attempt": 1}
30
+ {"question_id": "JA25P1C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
31
+ {"question_id": "JA25P1C15", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["B"], "attempt": 1}
32
+ {"question_id": "JA25P1C16", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["A"], "ground_truth": ["B"], "attempt": 1}
33
+ {"question_id": "JA25P1M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
34
+ {"question_id": "JA25P1M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
35
+ {"question_id": "JA25P1M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
36
+ {"question_id": "JA25P1M04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["16"], "ground_truth": ["C"], "attempt": 1}
37
+ {"question_id": "JA25P1M05", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "D"], "ground_truth": ["A", "C"], "attempt": 1}
38
+ {"question_id": "JA25P1M06", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "C", "D"], "ground_truth": ["A", "D"], "attempt": 1}
39
+ {"question_id": "JA25P1M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
40
+ {"question_id": "JA25P1M08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105"], "ground_truth": ["105"], "attempt": 1}
41
+ {"question_id": "JA25P1M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.2"], "ground_truth": [["1.15", "1.25"]], "attempt": 1}
42
+ {"question_id": "JA25P1M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["762"], "ground_truth": ["762"], "attempt": 1}
43
+ {"question_id": "JA25P1M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.4"], "ground_truth": [["2.35", "2.45"]], "attempt": 1}
44
+ {"question_id": "JA25P1M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["96"], "ground_truth": ["96"], "attempt": 1}
45
+ {"question_id": "JA25P1M13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["0"], "ground_truth": ["2"], "attempt": 1}
46
+ {"question_id": "JA25P1M14", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["A"], "ground_truth": ["C"], "attempt": 1}
47
+ {"question_id": "JA25P1M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
48
+ {"question_id": "JA25P1M16", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["A"], "attempt": 1}
49
+ {"question_id": "JA25P2P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
50
+ {"question_id": "JA25P2P02", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["B"], "ground_truth": ["C"], "attempt": 1}
51
+ {"question_id": "JA25P2P03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
52
+ {"question_id": "JA25P2P04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["A", "B", "C", "D"], "attempt": 1}
53
+ {"question_id": "JA25P2P05", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "B", "C", "D"], "ground_truth": ["A", "B", "C"], "attempt": 1}
54
+ {"question_id": "JA25P2P06", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["C"], "ground_truth": ["A", "B"], "attempt": 1}
55
+ {"question_id": "JA25P2P07", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A"], "attempt": 1}
56
+ {"question_id": "JA25P2P08", "marks_awarded": 2, "evaluation_status": "partial_2_of_3_plus", "predicted_answer": ["B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 1}
57
+ {"question_id": "JA25P2P09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["0.5"], "ground_truth": [["1.65", "1.67"]], "attempt": 1}
58
+ {"question_id": "JA25P2P10", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["12"], "ground_truth": [["11.7", "11.9"]], "attempt": 1}
59
+ {"question_id": "JA25P2P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.6"], "ground_truth": ["1.6"], "attempt": 1}
60
+ {"question_id": "JA25P2P12", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["3"], "ground_truth": [["2.3", "2.4"]], "attempt": 1}
61
+ {"question_id": "JA25P2P13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["1"], "ground_truth": ["0.2"], "attempt": 1}
62
+ {"question_id": "JA25P2P14", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2.4"], "ground_truth": ["1.2"], "attempt": 1}
63
+ {"question_id": "JA25P2P15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["170"], "ground_truth": [["167", "171"]], "attempt": 1}
64
+ {"question_id": "JA25P2P16", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["16"], "ground_truth": [["26", "33"]], "attempt": 1}
65
+ {"question_id": "JA25P2C01", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["B"], "ground_truth": ["A"], "attempt": 1}
66
+ {"question_id": "JA25P2C02", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["B"], "ground_truth": ["A"], "attempt": 1}
67
+ {"question_id": "JA25P2C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
68
+ {"question_id": "JA25P2C04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
69
+ {"question_id": "JA25P2C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["C", "D"], "ground_truth": ["C", "D"], "attempt": 1}
70
+ {"question_id": "JA25P2C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 1}
71
+ {"question_id": "JA25P2C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
72
+ {"question_id": "JA25P2C08", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "B"], "ground_truth": ["B", "C"], "attempt": 1}
73
+ {"question_id": "JA25P2C09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11.0"], "ground_truth": [["10.85", "11.1"]], "attempt": 1}
74
+ {"question_id": "JA25P2C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3.95"], "ground_truth": [["3.85", "4.15"]], "attempt": 1}
75
+ {"question_id": "JA25P2C11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["16"], "ground_truth": [["15.5", "16.5"]], "attempt": 1}
76
+ {"question_id": "JA25P2C12", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["67"], "ground_truth": [["4", "4.25"]], "attempt": 1}
77
+ {"question_id": "JA25P2C13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.5"], "ground_truth": [["2.4", "2.55"]], "attempt": 1}
78
+ {"question_id": "JA25P2C14", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["106"], "ground_truth": [["105.4", "105.6"]], "attempt": 1}
79
+ {"question_id": "JA25P2C15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["7.73"], "ground_truth": [["7.5", "7.8"]], "attempt": 1}
80
+ {"question_id": "JA25P2C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
81
+ {"question_id": "JA25P2M01", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["C"], "attempt": 1}
82
+ {"question_id": "JA25P2M02", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["B"], "attempt": 1}
83
+ {"question_id": "JA25P2M03", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["3"], "ground_truth": ["C"], "attempt": 1}
84
+ {"question_id": "JA25P2M04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["A"], "attempt": 1}
85
+ {"question_id": "JA25P2M05", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["D"], "ground_truth": ["A", "B"], "attempt": 1}
86
+ {"question_id": "JA25P2M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
87
+ {"question_id": "JA25P2M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
88
+ {"question_id": "JA25P2M08", "marks_awarded": 1, "evaluation_status": "partial_1_of_2_plus", "predicted_answer": ["B"], "ground_truth": ["B", "C", "D"], "attempt": 1}
89
+ {"question_id": "JA25P2M09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": [["0.7", "0.8"]], "attempt": 1}
90
+ {"question_id": "JA25P2M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["6"], "ground_truth": ["6"], "attempt": 1}
91
+ {"question_id": "JA25P2M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.3"], "ground_truth": [["0.27", "0.33"]], "attempt": 1}
92
+ {"question_id": "JA25P2M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 1}
93
+ {"question_id": "JA25P2M13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["4"], "ground_truth": ["-2"], "attempt": 1}
94
+ {"question_id": "JA25P2M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.25"], "ground_truth": [["0.2", "0.3"]], "attempt": 1}
95
+ {"question_id": "JA25P2M15", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["1"], "ground_truth": ["3"], "attempt": 1}
96
+ {"question_id": "JA25P2M16", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["7"], "ground_truth": ["21"], "attempt": 1}
results/anthropic_claude-sonnet-4_JEE_ADVANCED_2025_20250603_220354/summary.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: anthropic/claude-sonnet-4
2
+ **Exam Name:** JEE_ADVANCED
3
+ **Exam Year:** 2025
4
+ **Timestamp:** 20250603_220354
5
+ **Total Questions in Dataset:** 578
6
+ **Questions Filtered Out:** 482
7
+ **Total Questions Processed in this Run:** 96
8
+
9
+ ---
10
+
11
+ ## Exam Scoring Results
12
+ **Overall Score:** **151** / **360**
13
+ - **Fully Correct Answers:** 48
14
+ - **Partially Correct Answers:** 3
15
+ - **Incorrectly Answered (Choice Made):** 45
16
+ - **Skipped Questions:** 0
17
+ - **API/Parse Failures:** 0
18
+ - **Total Questions Processed:** 96
19
+
20
+ ### Detailed Score Calculation by Question Type
21
+ **Integer (42 questions):** 88 marks
22
+ *Calculation:* 22 Correct (+4) + 20 Incorrect (0) = 88
23
+ **Mcq Multiple Correct (21 questions):** 28 marks
24
+ *Calculation:* 10 Correct (+4) + 3 Partial + 8 Incorrect (-2) = 28
25
+ **Mcq Single Correct (33 questions):** 27 marks
26
+ *Calculation:* 16 Correct (+3) + 17 Incorrect (-1) + 0 API/Parse Fail (-1) = 31 +8(There are some 4 marks mcq questions)
27
+
28
+ ### Section Breakdown
29
+ | Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |
30
+ |---------------|-------|---------------|-------------------|------------------|---------|--------------------|
31
+ | Chemistry | 68 | 20 | 0 | 12 | 0 | 0 |
32
+ | Math | 45 | 16 | 1 | 15 | 0 | 0 |
33
+ | Physics | 33 | 12 | 2 | 18 | 0 | 0 |
results/google_gemini-2.5-flash-preview-05-20:thinking_JEE_ADVANCED_2025_20250607_154346/predictions.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
results/google_gemini-2.5-flash-preview-05-20:thinking_JEE_ADVANCED_2025_20250607_154346/summary.jsonl ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "JA25P1P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
2
+ {"question_id": "JA25P1P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 2}
3
+ {"question_id": "JA25P1P03", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["A"], "attempt": 2}
4
+ {"question_id": "JA25P1P04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["B"], "ground_truth": ["C"], "attempt": 2}
5
+ {"question_id": "JA25P1P05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 2}
6
+ {"question_id": "JA25P1P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 2}
7
+ {"question_id": "JA25P1P07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 2}
8
+ {"question_id": "JA25P1P08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
9
+ {"question_id": "JA25P1P09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["23"], "ground_truth": [["21", "25"]], "attempt": 2}
10
+ {"question_id": "JA25P1P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
11
+ {"question_id": "JA25P1P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.5"], "ground_truth": ["0.5", "0.75"], "attempt": 2}
12
+ {"question_id": "JA25P1P12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["76"], "ground_truth": [["75", "79"]], "attempt": 2}
13
+ {"question_id": "JA25P1P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["72"], "ground_truth": ["72"], "attempt": 2}
14
+ {"question_id": "JA25P1P14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
15
+ {"question_id": "JA25P1P15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
16
+ {"question_id": "JA25P1P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
17
+ {"question_id": "JA25P1C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
18
+ {"question_id": "JA25P1C02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
19
+ {"question_id": "JA25P1C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
20
+ {"question_id": "JA25P1C04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["B"], "attempt": 2}
21
+ {"question_id": "JA25P1C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C"], "ground_truth": ["B", "C"], "attempt": 2}
22
+ {"question_id": "JA25P1C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
23
+ {"question_id": "JA25P1C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
24
+ {"question_id": "JA25P1C08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["100"], "ground_truth": ["100"], "attempt": 1}
25
+ {"question_id": "JA25P1C09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": [["2.2", "2.3"]], "attempt": 2}
26
+ {"question_id": "JA25P1C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-7.1"], "ground_truth": [["-7.2", "-7"]], "attempt": 2}
27
+ {"question_id": "JA25P1C11", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["-30"], "ground_truth": [["-29.95", "-29.8"], ["29.8", "29.95"]], "attempt": 2}
28
+ {"question_id": "JA25P1C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["280"], "ground_truth": ["280"], "attempt": 1}
29
+ {"question_id": "JA25P1C13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["170"], "ground_truth": ["175"], "attempt": 2}
30
+ {"question_id": "JA25P1C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
31
+ {"question_id": "JA25P1C15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
32
+ {"question_id": "JA25P1C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
33
+ {"question_id": "JA25P1M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
34
+ {"question_id": "JA25P1M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
35
+ {"question_id": "JA25P1M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
36
+ {"question_id": "JA25P1M04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["16"], "ground_truth": ["C"], "attempt": 2}
37
+ {"question_id": "JA25P1M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 2}
38
+ {"question_id": "JA25P1M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 2}
39
+ {"question_id": "JA25P1M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 2}
40
+ {"question_id": "JA25P1M08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105"], "ground_truth": ["105"], "attempt": 2}
41
+ {"question_id": "JA25P1M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.2"], "ground_truth": [["1.15", "1.25"]], "attempt": 2}
42
+ {"question_id": "JA25P1M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["762"], "ground_truth": ["762"], "attempt": 2}
43
+ {"question_id": "JA25P1M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.4"], "ground_truth": [["2.35", "2.45"]], "attempt": 2}
44
+ {"question_id": "JA25P1M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["96"], "ground_truth": ["96"], "attempt": 2}
45
+ {"question_id": "JA25P1M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
46
+ {"question_id": "JA25P1M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
47
+ {"question_id": "JA25P1M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
48
+ {"question_id": "JA25P1M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
49
+ {"question_id": "JA25P2P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
50
+ {"question_id": "JA25P2P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
51
+ {"question_id": "JA25P2P03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
52
+ {"question_id": "JA25P2P04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["A", "B", "C", "D"], "attempt": 2}
53
+ {"question_id": "JA25P2P05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 2}
54
+ {"question_id": "JA25P2P06", "marks_awarded": 1, "evaluation_status": "partial_1_of_2_plus", "predicted_answer": ["A"], "ground_truth": ["A", "B"], "attempt": 2}
55
+ {"question_id": "JA25P2P07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
56
+ {"question_id": "JA25P2P08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 1}
57
+ {"question_id": "JA25P2P09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["1"], "ground_truth": [["1.65", "1.67"]], "attempt": 2}
58
+ {"question_id": "JA25P2P10", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["12"], "ground_truth": [["11.7", "11.9"]], "attempt": 2}
59
+ {"question_id": "JA25P2P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.6"], "ground_truth": ["1.6"], "attempt": 2}
60
+ {"question_id": "JA25P2P12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.331"], "ground_truth": [["2.3", "2.4"]], "attempt": 2}
61
+ {"question_id": "JA25P2P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.2"], "ground_truth": ["0.2"], "attempt": 2}
62
+ {"question_id": "JA25P2P14", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2.4"], "ground_truth": ["1.2"], "attempt": 2}
63
+ {"question_id": "JA25P2P15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["170"], "ground_truth": [["167", "171"]], "attempt": 2}
64
+ {"question_id": "JA25P2P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["32"], "ground_truth": [["26", "33"]], "attempt": 2}
65
+ {"question_id": "JA25P2C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
66
+ {"question_id": "JA25P2C02", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["B"], "ground_truth": ["A"], "attempt": 2}
67
+ {"question_id": "JA25P2C03", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["B"], "ground_truth": ["D"], "attempt": 2}
68
+ {"question_id": "JA25P2C04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
69
+ {"question_id": "JA25P2C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["C", "D"], "ground_truth": ["C", "D"], "attempt": 1}
70
+ {"question_id": "JA25P2C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 1}
71
+ {"question_id": "JA25P2C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 2}
72
+ {"question_id": "JA25P2C08", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "B", "C"], "ground_truth": ["B", "C"], "attempt": 2}
73
+ {"question_id": "JA25P2C09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11"], "ground_truth": [["10.85", "11.1"]], "attempt": 2}
74
+ {"question_id": "JA25P2C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": [["3.85", "4.15"]], "attempt": 2}
75
+ {"question_id": "JA25P2C11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["16"], "ground_truth": [["15.5", "16.5"]], "attempt": 2}
76
+ {"question_id": "JA25P2C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": [["4", "4.25"]], "attempt": 2}
77
+ {"question_id": "JA25P2C13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": [["2.4", "2.55"]], "attempt": 2}
78
+ {"question_id": "JA25P2C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105.5"], "ground_truth": [["105.4", "105.6"]], "attempt": 2}
79
+ {"question_id": "JA25P2C15", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["8"], "ground_truth": [["7.5", "7.8"]], "attempt": 2}
80
+ {"question_id": "JA25P2C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
81
+ {"question_id": "JA25P2M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
82
+ {"question_id": "JA25P2M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
83
+ {"question_id": "JA25P2M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
84
+ {"question_id": "JA25P2M04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
85
+ {"question_id": "JA25P2M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 2}
86
+ {"question_id": "JA25P2M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 2}
87
+ {"question_id": "JA25P2M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 2}
88
+ {"question_id": "JA25P2M08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C", "D"], "ground_truth": ["B", "C", "D"], "attempt": 2}
89
+ {"question_id": "JA25P2M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.75"], "ground_truth": [["0.7", "0.8"]], "attempt": 2}
90
+ {"question_id": "JA25P2M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["6"], "ground_truth": ["6"], "attempt": 2}
91
+ {"question_id": "JA25P2M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.30"], "ground_truth": [["0.27", "0.33"]], "attempt": 2}
92
+ {"question_id": "JA25P2M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 2}
93
+ {"question_id": "JA25P2M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 2}
94
+ {"question_id": "JA25P2M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.25"], "ground_truth": [["0.2", "0.3"]], "attempt": 2}
95
+ {"question_id": "JA25P2M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
96
+ {"question_id": "JA25P2M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["21"], "ground_truth": ["21"], "attempt": 2}
results/google_gemini-2.5-flash-preview-05-20:thinking_JEE_ADVANCED_2025_20250607_154346/summary.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: google/gemini-2.5-flash-preview-05-20:thinking
2
+ **Exam Name:** JEE_ADVANCED
3
+ **Exam Year:** 2025
4
+ **Timestamp:** 20250607_154346
5
+ **Total Questions in Dataset:** 578
6
+ **Questions Filtered Out:** 482
7
+ **Total Questions Processed in this Run:** 96
8
+
9
+ ---
10
+
11
+ ## Exam Scoring Results
12
+ **Overall Score:** **295** / **360**
13
+ - **Fully Correct Answers:** 80
14
+ - **Partially Correct Answers:** 1
15
+ - **Incorrectly Answered (Choice Made):** 15
16
+ - **Skipped Questions:** 0
17
+ - **API/Parse Failures:** 0
18
+ - **Total Questions Processed:** 96
19
+
20
+ ### Detailed Score Calculation by Question Type
21
+ **Integer (42 questions):** 136 marks
22
+ *Calculation:* 34 Correct (+4) + 8 Incorrect (0) = 136
23
+ **Mcq Multiple Correct (21 questions):** 75 marks
24
+ *Calculation:* 19 Correct (+4) + 1 Partial + 1 Incorrect (-2) = 75
25
+ **Mcq Single Correct (33 questions):** 71 marks
26
+ *Calculation:* 27 Correct (+3) + 6 Incorrect (-1) + 0 API/Parse Fail (-1) = 75 + 9(some 4 marks mcq is there)
27
+
28
+ ### Section Breakdown
29
+ | Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |
30
+ |---------------|-------|---------------|-------------------|------------------|---------|--------------------|
31
+ | Chemistry | 82 | 23 | 0 | 9 | 0 | 0 |
32
+ | Math | 116 | 31 | 0 | 1 | 0 | 0 |
33
+ | Physics | 97 | 26 | 1 | 5 | 0 | 0 |
results/google_gemini-2.5-flash-preview-05-20:thinking_NEET_2025_20250614_154446/predictions.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
results/google_gemini-2.5-flash-preview-05-20:thinking_NEET_2025_20250614_154446/summary.jsonl ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "N2545001", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
2
+ {"question_id": "N2545002", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
3
+ {"question_id": "N2545003", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
4
+ {"question_id": "N2545004", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 2}
5
+ {"question_id": "N2545005", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
6
+ {"question_id": "N2545006", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
7
+ {"question_id": "N2545007", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 2}
8
+ {"question_id": "N2545008", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": ["4"], "attempt": 2}
9
+ {"question_id": "N2545009", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
10
+ {"question_id": "N2545010", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
11
+ {"question_id": "N2545011", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 2}
12
+ {"question_id": "N2545012", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
13
+ {"question_id": "N2545013", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
14
+ {"question_id": "N2545014", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
15
+ {"question_id": "N2545015", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
16
+ {"question_id": "N2545016", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
17
+ {"question_id": "N2545017", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
18
+ {"question_id": "N2545018", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
19
+ {"question_id": "N2545019", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
20
+ {"question_id": "N2545020", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
21
+ {"question_id": "N2545021", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 2}
22
+ {"question_id": "N2545022", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
23
+ {"question_id": "N2545023", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
24
+ {"question_id": "N2545024", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
25
+ {"question_id": "N2545025", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
26
+ {"question_id": "N2545026", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
27
+ {"question_id": "N2545027", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
28
+ {"question_id": "N2545028", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
29
+ {"question_id": "N2545029", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
30
+ {"question_id": "N2545030", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
31
+ {"question_id": "N2545031", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
32
+ {"question_id": "N2545032", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
33
+ {"question_id": "N2545033", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
34
+ {"question_id": "N2545034", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
35
+ {"question_id": "N2545035", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
36
+ {"question_id": "N2545036", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
37
+ {"question_id": "N2545037", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
38
+ {"question_id": "N2545038", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["3"], "ground_truth": ["1"], "attempt": 2}
39
+ {"question_id": "N2545039", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
40
+ {"question_id": "N2545040", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["1", "2"], "attempt": 2}
41
+ {"question_id": "N2545041", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
42
+ {"question_id": "N2545042", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
43
+ {"question_id": "N2545043", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
44
+ {"question_id": "N2545044", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
45
+ {"question_id": "N2545045", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
46
+ {"question_id": "N2545046", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 2}
47
+ {"question_id": "N2545047", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
48
+ {"question_id": "N2545048", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
49
+ {"question_id": "N2545049", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
50
+ {"question_id": "N2545050", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
51
+ {"question_id": "N2545051", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
52
+ {"question_id": "N2545052", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
53
+ {"question_id": "N2545053", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
54
+ {"question_id": "N2545054", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
55
+ {"question_id": "N2545055", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
56
+ {"question_id": "N2545056", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
57
+ {"question_id": "N2545057", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
58
+ {"question_id": "N2545058", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
59
+ {"question_id": "N2545059", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
60
+ {"question_id": "N2545060", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
61
+ {"question_id": "N2545061", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
62
+ {"question_id": "N2545062", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
63
+ {"question_id": "N2545063", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1", "2"], "attempt": 2}
64
+ {"question_id": "N2545064", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
65
+ {"question_id": "N2545065", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
66
+ {"question_id": "N2545066", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
67
+ {"question_id": "N2545067", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
68
+ {"question_id": "N2545068", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
69
+ {"question_id": "N2545069", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
70
+ {"question_id": "N2545070", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
71
+ {"question_id": "N2545071", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
72
+ {"question_id": "N2545072", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
73
+ {"question_id": "N2545073", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
74
+ {"question_id": "N2545074", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
75
+ {"question_id": "N2545075", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 2}
76
+ {"question_id": "N2545076", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
77
+ {"question_id": "N2545077", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
78
+ {"question_id": "N2545078", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["3"], "ground_truth": ["2"], "attempt": 1}
79
+ {"question_id": "N2545079", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
80
+ {"question_id": "N2545080", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
81
+ {"question_id": "N2545081", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
82
+ {"question_id": "N2545082", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
83
+ {"question_id": "N2545083", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
84
+ {"question_id": "N2545084", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
85
+ {"question_id": "N2545085", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
86
+ {"question_id": "N2545086", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 2}
87
+ {"question_id": "N2545087", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
88
+ {"question_id": "N2545088", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
89
+ {"question_id": "N2545089", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
90
+ {"question_id": "N2545090", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
91
+ {"question_id": "N2545091", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
92
+ {"question_id": "N2545092", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
93
+ {"question_id": "N2545093", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
94
+ {"question_id": "N2545094", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
95
+ {"question_id": "N2545095", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
96
+ {"question_id": "N2545096", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
97
+ {"question_id": "N2545097", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
98
+ {"question_id": "N2545098", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
99
+ {"question_id": "N2545099", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
100
+ {"question_id": "N2545100", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
101
+ {"question_id": "N2545101", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
102
+ {"question_id": "N2545102", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
103
+ {"question_id": "N2545103", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
104
+ {"question_id": "N2545104", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
105
+ {"question_id": "N2545105", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
106
+ {"question_id": "N2545106", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
107
+ {"question_id": "N2545107", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
108
+ {"question_id": "N2545108", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
109
+ {"question_id": "N2545109", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
110
+ {"question_id": "N2545110", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
111
+ {"question_id": "N2545111", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
112
+ {"question_id": "N2545112", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
113
+ {"question_id": "N2545113", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
114
+ {"question_id": "N2545114", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
115
+ {"question_id": "N2545115", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
116
+ {"question_id": "N2545116", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
117
+ {"question_id": "N2545117", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
118
+ {"question_id": "N2545118", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
119
+ {"question_id": "N2545119", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
120
+ {"question_id": "N2545120", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
121
+ {"question_id": "N2545121", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
122
+ {"question_id": "N2545122", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
123
+ {"question_id": "N2545123", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 2}
124
+ {"question_id": "N2545124", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
125
+ {"question_id": "N2545125", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
126
+ {"question_id": "N2545126", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": ["4"], "attempt": 1}
127
+ {"question_id": "N2545127", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
128
+ {"question_id": "N2545128", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
129
+ {"question_id": "N2545129", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
130
+ {"question_id": "N2545130", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
131
+ {"question_id": "N2545131", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
132
+ {"question_id": "N2545132", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
133
+ {"question_id": "N2545133", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
134
+ {"question_id": "N2545134", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
135
+ {"question_id": "N2545135", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
136
+ {"question_id": "N2545136", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
137
+ {"question_id": "N2545137", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
138
+ {"question_id": "N2545138", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
139
+ {"question_id": "N2545139", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
140
+ {"question_id": "N2545140", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
141
+ {"question_id": "N2545141", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
142
+ {"question_id": "N2545142", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
143
+ {"question_id": "N2545143", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
144
+ {"question_id": "N2545144", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
145
+ {"question_id": "N2545145", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
146
+ {"question_id": "N2545146", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
147
+ {"question_id": "N2545147", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
148
+ {"question_id": "N2545148", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
149
+ {"question_id": "N2545149", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
150
+ {"question_id": "N2545150", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
151
+ {"question_id": "N2545151", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
152
+ {"question_id": "N2545152", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": ["1"], "attempt": 2}
153
+ {"question_id": "N2545153", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
154
+ {"question_id": "N2545154", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
155
+ {"question_id": "N2545155", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
156
+ {"question_id": "N2545156", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
157
+ {"question_id": "N2545157", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["1"], "ground_truth": ["2"], "attempt": 1}
158
+ {"question_id": "N2545158", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
159
+ {"question_id": "N2545159", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
160
+ {"question_id": "N2545160", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
161
+ {"question_id": "N2545161", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
162
+ {"question_id": "N2545162", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
163
+ {"question_id": "N2545163", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
164
+ {"question_id": "N2545164", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
165
+ {"question_id": "N2545165", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
166
+ {"question_id": "N2545166", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 2}
167
+ {"question_id": "N2545167", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
168
+ {"question_id": "N2545168", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
169
+ {"question_id": "N2545169", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
170
+ {"question_id": "N2545170", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
171
+ {"question_id": "N2545171", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
172
+ {"question_id": "N2545172", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 2}
173
+ {"question_id": "N2545173", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
174
+ {"question_id": "N2545174", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
175
+ {"question_id": "N2545175", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["2"], "ground_truth": ["3"], "attempt": 1}
176
+ {"question_id": "N2545176", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
177
+ {"question_id": "N2545177", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
178
+ {"question_id": "N2545178", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1"], "ground_truth": ["1"], "attempt": 1}
179
+ {"question_id": "N2545179", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": ["4"], "attempt": 1}
180
+ {"question_id": "N2545180", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
results/google_gemini-2.5-flash-preview-05-20:thinking_NEET_2025_20250614_154446/summary.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: google/gemini-2.5-flash-preview-05-20:thinking
2
+ **Exam Name:** NEET
3
+ **Exam Year:** 2025
4
+ **Timestamp:** 20250614_154446
5
+ **Total Questions in Dataset:** 578
6
+ **Questions Filtered Out:** 398
7
+ **Total Questions Processed in this Run:** 180
8
+
9
+ ---
10
+
11
+ ## Exam Scoring Results
12
+ **Overall Score:** **685** / **720**
13
+ - **Fully Correct Answers:** 173
14
+ - **Incorrectly Answered (Choice Made):** 7
15
+ - **Skipped Questions:** 0
16
+ - **API/Parse Failures:** 0
17
+ - **Total Questions Processed:** 180
18
+
19
+ ### Detailed Score Calculation by Question Type
20
+ **Mcq Single Correct (180 questions):** 685 marks
21
+ *Calculation:* 173 Correct (+4) + 7 Incorrect (-1) = 685
22
+
23
+ ### Section Breakdown
24
+ | Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |
25
+ |---------------|-------|---------------|-------------------|------------------|---------|--------------------|
26
+ | Biology | 340 | 86 | 0 | 4 | 0 | 0 |
27
+ | Chemistry | 175 | 44 | 0 | 1 | 0 | 0 |
28
+ | Physics | 170 | 43 | 0 | 2 | 0 | 0 |
results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2024_20250527_100743/predictions.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2024_20250527_100743/summary.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "google/gemini-2.5-pro-preview-03-25",
3
+ "exam_name": "JEE_ADVANCED",
4
+ "exam_year": "2024",
5
+ "question_ids_filter": "None",
6
+ "timestamp": "20250527_100743",
7
+ "total_questions_in_dataset": 482,
8
+ "total_questions_processed_in_run": 102,
9
+ "overall_score": 322,
10
+ "overall_correct_full": 91,
11
+ "overall_partial_correct": 0,
12
+ "overall_incorrect_choice": 7,
13
+ "overall_skipped": 2,
14
+ "overall_api_parse_failures": 2,
15
+ "total_questions_processed": 102,
16
+ "unmapped_section_questions": 0,
17
+ "section_breakdown": {
18
+ "Chemistry": {
19
+ "score": 102,
20
+ "correct": 29,
21
+ "incorrect": 4,
22
+ "skipped": 1,
23
+ "api_parse_failures": 0,
24
+ "partial_correct": 0
25
+ },
26
+ "Math": {
27
+ "score": 113,
28
+ "correct": 32,
29
+ "incorrect": 1,
30
+ "skipped": 1,
31
+ "api_parse_failures": 0,
32
+ "partial_correct": 0
33
+ },
34
+ "Physics": {
35
+ "score": 107,
36
+ "correct": 31,
37
+ "incorrect": 3,
38
+ "skipped": 0,
39
+ "api_parse_failures": 0,
40
+ "partial_correct": 0
41
+ }
42
+ }
43
+ }
results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2024_20250527_100743/summary.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: google/gemini-2.5-pro-preview-03-25
2
+ **Exam Name:** JEE_ADVANCED
3
+ **Exam Year:** 2024
4
+ **Timestamp:** 20250527_100743
5
+ **Total Questions in Dataset:** 482
6
+ **Questions Filtered Out:** 380
7
+ **Total Questions Processed in this Run:** 102
8
+
9
+ ---
10
+
11
+ ## Exam Scoring Results
12
+ **Overall Score:** **322** (Max score is 360)
13
+ - **Fully Correct Answers:** 92
14
+ - **Incorrectly Answered (Choice Made):** 8
15
+ - **Skipped Questions:** 2
16
+ - **API/Parse Failures:** 0
17
+ - **Total Questions Processed:** 102
18
+
19
+ ### Section Breakdown
20
+ | Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |
21
+ |---------------|-------|---------------|-------------------|------------------|---------|--------------------|
22
+ | Chemistry | 102 | 29 | 0 | 4 | 1 | 0 |
23
+ | Math | 113 | 32 | 0 | 1 | 1 | 0 |
24
+ | Physics | 107 | 31 | 0 | 3 | 0 | 0 |
results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2025_20250601_180855/predictions.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2025_20250601_180855/summary.jsonl ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "JA25P1P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
2
+ {"question_id": "JA25P1P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
3
+ {"question_id": "JA25P1P03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
4
+ {"question_id": "JA25P1P04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["A"], "ground_truth": ["C"], "attempt": 1}
5
+ {"question_id": "JA25P1P05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 2}
6
+ {"question_id": "JA25P1P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
7
+ {"question_id": "JA25P1P07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 2}
8
+ {"question_id": "JA25P1P08", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["1"], "ground_truth": ["2"], "attempt": 1}
9
+ {"question_id": "JA25P1P09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["23"], "ground_truth": [["21", "25"]], "attempt": 1}
10
+ {"question_id": "JA25P1P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
11
+ {"question_id": "JA25P1P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.5"], "ground_truth": ["0.5", "0.75"], "attempt": 2}
12
+ {"question_id": "JA25P1P12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["75.6"], "ground_truth": [["75", "79"]], "attempt": 1}
13
+ {"question_id": "JA25P1P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["72"], "ground_truth": ["72"], "attempt": 1}
14
+ {"question_id": "JA25P1P14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
15
+ {"question_id": "JA25P1P15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
16
+ {"question_id": "JA25P1P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
17
+ {"question_id": "JA25P1C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
18
+ {"question_id": "JA25P1C02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
19
+ {"question_id": "JA25P1C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
20
+ {"question_id": "JA25P1C04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
21
+ {"question_id": "JA25P1C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C"], "ground_truth": ["B", "C"], "attempt": 1}
22
+ {"question_id": "JA25P1C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
23
+ {"question_id": "JA25P1C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
24
+ {"question_id": "JA25P1C08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["100"], "ground_truth": ["100"], "attempt": 1}
25
+ {"question_id": "JA25P1C09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["5"], "ground_truth": [["2.2", "2.3"]], "attempt": 1}
26
+ {"question_id": "JA25P1C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-7.1"], "ground_truth": [["-7.2", "-7"]], "attempt": 1}
27
+ {"question_id": "JA25P1C11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["29.88"], "ground_truth": [["-29.95", "-29.8"], ["29.8", "29.95"]], "attempt": 1}
28
+ {"question_id": "JA25P1C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["280"], "ground_truth": ["280"], "attempt": 1}
29
+ {"question_id": "JA25P1C13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["116.67"], "ground_truth": ["175"], "attempt": 1}
30
+ {"question_id": "JA25P1C14", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
31
+ {"question_id": "JA25P1C15", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
32
+ {"question_id": "JA25P1C16", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 2}
33
+ {"question_id": "JA25P1M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
34
+ {"question_id": "JA25P1M02", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["A"], "attempt": 1}
35
+ {"question_id": "JA25P1M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
36
+ {"question_id": "JA25P1M04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
37
+ {"question_id": "JA25P1M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
38
+ {"question_id": "JA25P1M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
39
+ {"question_id": "JA25P1M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
40
+ {"question_id": "JA25P1M08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105"], "ground_truth": ["105"], "attempt": 1}
41
+ {"question_id": "JA25P1M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.2"], "ground_truth": [["1.15", "1.25"]], "attempt": 1}
42
+ {"question_id": "JA25P1M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["762"], "ground_truth": ["762"], "attempt": 1}
43
+ {"question_id": "JA25P1M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.4"], "ground_truth": [["2.35", "2.45"]], "attempt": 1}
44
+ {"question_id": "JA25P1M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["96"], "ground_truth": ["96"], "attempt": 1}
45
+ {"question_id": "JA25P1M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
46
+ {"question_id": "JA25P1M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
47
+ {"question_id": "JA25P1M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
48
+ {"question_id": "JA25P1M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
49
+ {"question_id": "JA25P2P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
50
+ {"question_id": "JA25P2P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
51
+ {"question_id": "JA25P2P03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
52
+ {"question_id": "JA25P2P04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["A", "B", "C", "D"], "attempt": 2}
53
+ {"question_id": "JA25P2P05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 2}
54
+ {"question_id": "JA25P2P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
55
+ {"question_id": "JA25P2P07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
56
+ {"question_id": "JA25P2P08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 1}
57
+ {"question_id": "JA25P2P09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.67"], "ground_truth": [["1.65", "1.67"]], "attempt": 1}
58
+ {"question_id": "JA25P2P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11.8"], "ground_truth": [["11.7", "11.9"]], "attempt": 1}
59
+ {"question_id": "JA25P2P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.6"], "ground_truth": ["1.6"], "attempt": 1}
60
+ {"question_id": "JA25P2P12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.331"], "ground_truth": [["2.3", "2.4"]], "attempt": 1}
61
+ {"question_id": "JA25P2P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.2"], "ground_truth": ["0.2"], "attempt": 1}
62
+ {"question_id": "JA25P2P14", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2.4"], "ground_truth": ["1.2"], "attempt": 1}
63
+ {"question_id": "JA25P2P15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["170"], "ground_truth": [["167", "171"]], "attempt": 1}
64
+ {"question_id": "JA25P2P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["32"], "ground_truth": [["26", "33"]], "attempt": 2}
65
+ {"question_id": "JA25P2C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 2}
66
+ {"question_id": "JA25P2C02", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["B"], "ground_truth": ["A"], "attempt": 1}
67
+ {"question_id": "JA25P2C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
68
+ {"question_id": "JA25P2C04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 2}
69
+ {"question_id": "JA25P2C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["C", "D"], "ground_truth": ["C", "D"], "attempt": 2}
70
+ {"question_id": "JA25P2C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 2}
71
+ {"question_id": "JA25P2C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
72
+ {"question_id": "JA25P2C08", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "B", "C"], "ground_truth": ["B", "C"], "attempt": 1}
73
+ {"question_id": "JA25P2C09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11"], "ground_truth": [["10.85", "11.1"]], "attempt": 1}
74
+ {"question_id": "JA25P2C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3.95"], "ground_truth": [["3.85", "4.15"]], "attempt": 1}
75
+ {"question_id": "JA25P2C11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["16"], "ground_truth": [["15.5", "16.5"]], "attempt": 1}
76
+ {"question_id": "JA25P2C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": [["4", "4.25"]], "attempt": 1}
77
+ {"question_id": "JA25P2C13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.49"], "ground_truth": [["2.4", "2.55"]], "attempt": 1}
78
+ {"question_id": "JA25P2C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105.5"], "ground_truth": [["105.4", "105.6"]], "attempt": 1}
79
+ {"question_id": "JA25P2C15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["7.73"], "ground_truth": [["7.5", "7.8"]], "attempt": 1}
80
+ {"question_id": "JA25P2C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
81
+ {"question_id": "JA25P2M01", "marks_awarded": 0, "evaluation_status": "skipped", "predicted_answer": "SKIP", "ground_truth": ["C"], "attempt": 2}
82
+ {"question_id": "JA25P2M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
83
+ {"question_id": "JA25P2M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
84
+ {"question_id": "JA25P2M04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
85
+ {"question_id": "JA25P2M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 2}
86
+ {"question_id": "JA25P2M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 2}
87
+ {"question_id": "JA25P2M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
88
+ {"question_id": "JA25P2M08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C", "D"], "ground_truth": ["B", "C", "D"], "attempt": 1}
89
+ {"question_id": "JA25P2M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.75"], "ground_truth": [["0.7", "0.8"]], "attempt": 1}
90
+ {"question_id": "JA25P2M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["6"], "ground_truth": ["6"], "attempt": 1}
91
+ {"question_id": "JA25P2M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.3"], "ground_truth": [["0.27", "0.33"]], "attempt": 1}
92
+ {"question_id": "JA25P2M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 1}
93
+ {"question_id": "JA25P2M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 2}
94
+ {"question_id": "JA25P2M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.25"], "ground_truth": [["0.2", "0.3"]], "attempt": 1}
95
+ {"question_id": "JA25P2M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
96
+ {"question_id": "JA25P2M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["21"], "ground_truth": ["21"], "attempt": 1}
results/google_gemini-2.5-pro-preview-03-25_JEE_ADVANCED_2025_20250601_180855/summary.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: google/gemini-2.5-pro-preview-05-06
2
+ **Exam Name:** JEE_ADVANCED
3
+ **Exam Year:** 2025
4
+ **Timestamp:** 20250601_180855
5
+ **Total Questions in Dataset:** 578
6
+ **Questions Filtered Out:** 482
7
+ **Total Questions Processed in this Run:** 96
8
+
9
+ ---
10
+
11
+ ## Exam Scoring Results
12
+ **Overall Score:** **323** / **360**
13
+ - **Fully Correct Answers:** 87
14
+ - **Incorrectly Answered (Choice Made):** 8
15
+ - **Skipped Questions:** 1
16
+ - **API/Parse Failures:** 0
17
+ - **Total Questions Processed:** 96
18
+
19
+ ### Detailed Score Calculation by Question Type
20
+ **Integer (42 questions):** 152 marks
21
+ *Calculation:* 38 Correct (+4) + 4 Incorrect (0) = 152
22
+ **Mcq Multiple Correct (21 questions):** 78 marks
23
+ *Calculation:* 20 Correct (+4) + 1 Incorrect (-2) = 78
24
+ **Mcq Single Correct (33 questions):** 93 marks
25
+ *Calculation:* 29 Correct (+3) + 2 Incorrect (-1) + 1 Skipped (0) = 85 (+8 as there are some mcq single correct questions which have full marks 4)
26
+
27
+ ### Section Breakdown
28
+ | Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |
29
+ |---------------|-------|---------------|-------------------|------------------|---------|--------------------|
30
+ | Chemistry | 102 | 28 | 0 | 4 | 0 | 0 |
31
+ | Math | 113 | 30 | 0 | 1 | 1 | 0 |
32
+ | Physics | 108 | 29 | 0 | 3 | 0 | 0 |
results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250505_091752/predictions.jsonl ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "NEET_2024_T3_001", "subject": "Physics", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
2
+ {"question_id": "NEET_2024_T3_002", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
3
+ {"question_id": "NEET_2024_T3_003", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "``` P\n\u2191\nd\nC\n300 kPa\n100 kPa\nb\na\n3\n3\n100 cm\n400 cm\nV-\n```\n\nThe question asks for the work done by the gas along the path *bc*.\nWork done by the gas is given by the integral W = \u222b P dV.\nAlong the path *bc*, the process goes from state *b* to state *c*.\nFrom the diagram:\nState *b*: V_b = 400 cm\u00b3, P_b = 100 kPa\nState *c*: V_c = 400 cm\u00b3, P_c = 300 kPa\n\nSince the volume is constant along the path *bc* (V_b = V_c = 400 cm\u00b3), the change in volume dV is 0.\nTherefore, the work done W_bc = \u222b P dV = P \u0394V = P * (V_c - V_b) = P * (400 cm\u00b3 - 400 cm\u00b3) = 0.\nThe work done by the gas along the path *bc* is zero.\n\nComparing this with the options:\n(1) -90 J\n(2) -60 J\n(3) zero\n(4) 30 J\n\nThe correct option is (3).\n\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
4
+ {"question_id": "NEET_2024_T3_004", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
5
+ {"question_id": "NEET_2024_T3_005", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
6
+ {"question_id": "NEET_2024_T3_006", "subject": "Physics", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
7
+ {"question_id": "NEET_2024_T3_007", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
8
+ {"question_id": "NEET_2024_T3_008", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
9
+ {"question_id": "NEET_2024_T3_009", "subject": "Physics", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
10
+ {"question_id": "NEET_2024_T3_010", "subject": "Physics", "ground_truth": [1], "predicted_answer": [1], "raw_response": "``` Mnemonic:\n1. Analyze the question: Replace monochromatic light with white light in YDSE.\n2. Apply physics concepts:\n - Central fringe (path difference = 0): Constructive interference for ALL wavelengths. Result: White light.\n - Other fringes (path difference \u2260 0): Position depends on wavelength (y = m\u03bbD/d). Different colors form fringes at different positions. Result: Colored fringes.\n - Fringe width (\u03b2 = \u03bbD/d): Depends on wavelength. Fringes are not of equal width for different colors.\n3. Evaluate options:\n - (1) Central bright white fringe, surrounded by colored fringes. -> Matches explanation.\n - (2) All bright fringes equal width. -> Incorrect, width depends on \u03bb.\n - (3) Pattern disappears. -> Incorrect, pattern forms but is colored.\n - (4) Central \"dear\" fringe (typo). Central fringe is white.\n4. Select the best option: (1) is the most accurate description. ```\n\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
11
+ {"question_id": "NEET_2024_T3_011", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "``` C\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
12
+ {"question_id": "NEET_2024_T3_012", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
13
+ {"question_id": "NEET_2024_T3_013", "subject": "Physics", "ground_truth": [3], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
14
+ {"question_id": "NEET_2024_T3_014", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
15
+ {"question_id": "NEET_2024_T3_015", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "``` SiliBocon\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
16
+ {"question_id": "NEET_2024_T3_016", "subject": "Physics", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
17
+ {"question_id": "NEET_2024_T3_017", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n```json\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
18
+ {"question_id": "NEET_2024_T3_018", "subject": "Physics", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
19
+ {"question_id": "NEET_2024_T3_019", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
20
+ {"question_id": "NEET_2024_T3_020", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
21
+ {"question_id": "NEET_2024_T3_021", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
22
+ {"question_id": "NEET_2024_T3_022", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
23
+ {"question_id": "NEET_2024_T3_023", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
24
+ {"question_id": "NEET_2024_T3_024", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
25
+ {"question_id": "NEET_2024_T3_025", "subject": "Physics", "ground_truth": [1, 3], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
26
+ {"question_id": "NEET_2024_T3_026", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
27
+ {"question_id": "NEET_2024_T3_027", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
28
+ {"question_id": "NEET_2024_T3_028", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
29
+ {"question_id": "NEET_2024_T3_029", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "``` T = 2\u03c0 * sqrt(I / (M * B)) ```\nWhere:\n* T is the time period of oscillation\n* I is the moment of inertia\n* M is the magnetic moment\n* B is the magnetic field strength\n\nFirst, calculate the time period T:\nThe needle performs 20 complete oscillations in 5 seconds.\n``` T = Time / Number of oscillations = 5 s / 20 = 1/4 s = 0.25 s ```\n\nGiven values:\n* B = 0.049 T\n* I = 9.8 x 10\u207b\u2076 kg m\u00b2\n* T = 0.25 s\n* M = x * 10\u207b\u2075 Am\u00b2\n\nRearrange the formula to solve for M:\n``` T\u00b2 = (2\u03c0)\u00b2 * (I / (M * B)) ```\n``` T\u00b2 = 4\u03c0\u00b2 * I / (M * B) ```\n``` M = 4\u03c0\u00b2 * I / (T\u00b2 * B) ```\n\nSubstitute the values:\n``` M = 4\u03c0\u00b2 * (9.8 * 10\u207b\u2076) / ((0.25)\u00b2 * 0.049) ```\n``` M = 4\u03c0\u00b2 * (9.8 * 10\u207b\u2076) / (0.0625 * 0.049) ```\n``` M = 4\u03c0\u00b2 * (9.8 * 10\u207b\u2076) / 0.0030625 ```\n\nLet's simplify the calculation: 0.049 = 49 * 10\u207b\u00b3, 9.8 = 98 * 10\u207b\u00b9, 0.0625 = 1/16.\n``` M = 4\u03c0\u00b2 * (9.8 * 10\u207b\u2076) / ((1/16) * 0.049) ```\n``` M = 4\u03c0\u00b2 * 16 * (9.8 * 10\u207b\u2076) / 0.049 ```\n``` M = 64\u03c0\u00b2 * (9.8 / 0.049) * 10\u207b\u2076 ```\n``` M = 64\u03c0\u00b2 * (980 / 49) * 10\u207b\u2076 ```\n``` M = 64\u03c0\u00b2 * 20 * 10\u207b\u2076 ```\n``` M = 1280\u03c0\u00b2 * 10\u207b\u2076 ```\n``` M = 12.80\u03c0\u00b2 * 10\u207b\u2074 ```\n``` M = 1.280\u03c0\u00b2 * 10\u207b\u00b3 ```\n``` M = 0.1280\u03c0\u00b2 * 10\u207b\u00b2 ```\n``` M = 1280\u03c0\u00b2 * 10\u207b\u2076 Am\u00b2 ```\n\nWe are given that M = x * 10\u207b\u2075 Am\u00b2. Let's convert our result to this form:\n``` M = 1280 * 10\u207b\u00b9 * \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2 ```\n``` M = 128.0 \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2 ```\n\nWait, let me recalculate 64 * 20.\n64 * 20 = 1280.\nSo, M = 1280 \u03c0\u00b2 * 10\u207b\u2076 Am\u00b2\nConvert to 10\u207b\u2075:\nM = (1280 / 10) \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2\nM = 128 \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2\n\nComparing M = 128 \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2 with M = x * 10\u207b\u2075 Am\u00b2:\nx = 128 \u03c0\u00b2\n\nLooking at the options:\n(1) 50 \u03c0\u00b2\n(2) 1280 \u03c0\u00b2\n(3) 5 \u03c0\u00b2\n(4) 128 \u03c0\u00b2\n\nThe value of x is 128 \u03c0\u00b2, which corresponds to option (4).\n\nLet me recheck the calculation:\nM = 4\u03c0\u00b2 * I / (T\u00b2 * B)\nM = 4\u03c0\u00b2 * (9.8 x 10\u207b\u2076) / ( (1/4)\u00b2 * 0.049 )\nM = 4\u03c0\u00b2 * (9.8 x 10\u207b\u2076) / ( (1/16) * 0.049 )\nM = 4\u03c0\u00b2 * 16 * (9.8 x 10\u207b\u2076) / 0.049\nM = 64\u03c0\u00b2 * (9.8 / 0.049) * 10\u207b\u2076\nM = 64\u03c0\u00b2 * 200 * 10\u207b\u2076\nM = 12800 \u03c0\u00b2 * 10\u207b\u2076\nM = 12800 * 10\u207b\u00b9 \u03c0\u00b2 * 10\u207b\u2075\nM = 1280 \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2\n\nComparing M = 1280 \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2 with M = x * 10\u207b\u2075 Am\u00b2:\nx = 1280 \u03c0\u00b2\n\nSo the correct option is (2).\n\nLet's review the calculations once more to be sure.\nT = 5/20 = 1/4 s\nB = 0.049 T\nI = 9.8 x 10\u207b\u2076 kg m\u00b2\nM = x * 10\u207b\u2075 Am\u00b2\n\nT = 2\u03c0 sqrt(I / MB)\nT\u00b2 = 4\u03c0\u00b2 I / (MB)\nM = 4\u03c0\u00b2 I / (T\u00b2 B)\nM = 4\u03c0\u00b2 (9.8 x 10\u207b\u2076) / ((1/4)\u00b2 * 0.049)\nM = 4\u03c0\u00b2 (9.8 x 10\u207b\u2076) / ((1/16) * 0.049)\nM = 4\u03c0\u00b2 * 16 * (9.8 x 10\u207b\u2076) / 0.049\nM = 64\u03c0\u00b2 * (9.8/0.049) * 10\u207b\u2076\nM = 64\u03c0\u00b2 * 200 * 10\u207b\u2076\nM = 12800 \u03c0\u00b2 * 10\u207b\u2076\nM = (12800 / 10) \u03c0\u00b2 * 10\u207b\u2075\nM = 1280 \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2\n\nComparing M = x * 10\u207b\u2075 Am\u00b2\nx = 1280 \u03c0\u00b2\n\nThe calculation seems correct. The value of x is 1280 \u03c0\u00b2. This corresponds to option (2).\n\nFinal check:\nT = 0.25 s\nT\u00b2 = 0.0625 s\u00b2\nB = 0.049 T\nI = 9.8 x 10\u207b\u2076 kg m\u00b2\nM = 4\u03c0\u00b2 * (9.8e-6) / (0.0625 * 0.049)\nM = 4\u03c0\u00b2 * (9.8e-6) / 0.0030625\nM = 4\u03c0\u00b2 * 3200 * 10\u207b\u2076\nM = 12800 \u03c0\u00b2 * 10\u207b\u2076\nM = 1.28 \u03c0\u00b2 * 10\u207b\u00b2\nM = 1280 \u03c0\u00b2 * 10\u207b\u2075 Am\u00b2\nx = 1280 \u03c0\u00b2\nOption (2) is correct.<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
30
+ {"question_id": "NEET_2024_T3_030", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
31
+ {"question_id": "NEET_2024_T3_031", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
32
+ {"question_id": "NEET_2024_T3_032", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "``` M\u2070L\u2070T\u2070 ```\n\n* **Strain:** Strain is defined as the ratio of change in dimension (length, area, volume) to the original dimension. For example, longitudinal strain = \u0394L/L. Since both numerator and denominator have dimensions of length [L], strain is dimensionless: ``` [L]/[L] = [M\u2070L\u2070T\u2070] ```.\n* **Arc:** Arc length is a measure of distance along a curve, so it has dimensions of length: ``` [L] ```.\n* **Angular speed (\u03c9):** Angular speed is the rate of change of angle (\u03b8) with respect to time (t), \u03c9 = d\u03b8/dt. Angle (plane angle) is dimensionless, and time has dimensions [T]. So, angular speed has dimensions: ``` [M\u2070L\u2070T\u2070] / [T] = [T\u207b\u00b9] ```.\n* **Stress:** Stress is defined as force (F) per unit area (A). Force has dimensions [MLT\u207b\u00b2] and area has dimensions [L\u00b2]. So, stress has dimensions: ``` [MLT\u207b\u00b2] / [L\u00b2] = [ML\u207b\u00b9T\u207b\u00b2] ```.\n* **Angle (plane angle, \u03b8):** Plane angle is defined as the ratio of the arc length (s) subtended to the radius (r), \u03b8 = s/r. Arc length has dimensions [L] and radius has dimensions [L]. So, angle is dimensionless: ``` [L]/[L] = [M\u2070L\u2070T\u2070] ```.\n\nThe question asks for quantities that have the same dimensions as a solid angle. A solid angle (\u03a9) is defined as the ratio of the subtended area (A) on a sphere to the square of the radius (r\u00b2), \u03a9 = A/r\u00b2. Area has dimensions [L\u00b2] and radius squared has dimensions [L\u00b2]. Thus, solid angle is dimensionless: ``` [L\u00b2] / [L\u00b2] = [M\u2070L\u2070T\u2070] ```.\n\nWe need to find the option where both quantities are dimensionless.\n\n* Option (1): Strain (dimensionless), Arc ([L]). Not both dimensionless.\n* Option (2): Angular speed ([T\u207b\u00b9]), Stress ([ML\u207b\u00b9T\u207b\u00b2]). Neither is dimensionless.\n* Option (3): Strain (dimensionless), Angle (dimensionless). Both are dimensionless, matching the dimensions of a solid angle.\n* Option (4): Stress ([ML\u207b\u00b9T\u207b\u00b2]), Angle (dimensionless). Not both dimensionless.\n\nTherefore, the correct option is (3) because both strain and angle are dimensionless, just like a solid angle.\n\n```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
33
+ {"question_id": "NEET_2024_T3_033", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
34
+ {"question_id": "NEET_2024_T3_034", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
35
+ {"question_id": "NEET_2024_T3_035", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
36
+ {"question_id": "NEET_2024_T3_036", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
37
+ {"question_id": "NEET_2024_T3_037", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
38
+ {"question_id": "NEET_2024_T3_038", "subject": "Physics", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
39
+ {"question_id": "NEET_2024_T3_039", "subject": "Physics", "ground_truth": [3], "predicted_answer": [4], "raw_response": "``` C\n1. Analyze the Question: The question asks to identify the circuit diagram that represents a Wheatstone bridge configuration capable of achieving balance.\n2. Analyze the Options: Four circuit diagrams labeled (1), (2), (3), and (4) are provided. All four diagrams depict a Wheatstone bridge circuit with four resistors (10\u03a9, 10\u03a9, 15\u03a9, 5\u03a9), a galvanometer (G), a component labeled 'D', and a voltage source (E).\n3. Check Balance Condition: The condition for a balanced Wheatstone bridge is R1/R2 = R3/R4, where R1, R2, R3, R4 are the resistors in the arms. Using the values given (labeling TL=10, TR=10, BL=15, BR=5):\n * TL/BL = 10/15 = 2/3\n * TR/BR = 10/5 = 2\n * Since 2/3 \u2260 2, the bridge with these specific *fixed* resistor values is not balanced.\n4. Interpret \"Can Achieve Balance\": The question asks which circuit *can* achieve balance. This might imply either:\n * One of the components is variable.\n * The diagram represents the correct *setup* for a potentially balanceable bridge, even if the values shown don't balance it.\n5. Analyze Component Placement:\n * Source E: Connected correctly across two opposite vertices in all options.\n * Galvanometer G: Connected correctly between the other two opposite vertices (the central branch) in all options.\n * Component D:\n * In options 1, 2, and 3, 'D' is placed in series with the 5\u03a9 resistor in the bottom-right arm.\n * In option 4, 'D' is placed in series with the galvanometer 'G' in the central branch.\n6. Identify Structural Correctness for Detection: The central branch (where G is located) is where the balance detector (typically a galvanometer) is placed to sense zero current. Placing an additional component 'D', possibly related to detection, in this same central branch (as in option 4) maintains the correct structural location for the detection part of the circuit. Placing 'D' in series with one of the main bridge arms (as in options 1, 2, 3) is non-standard for a *detector*. If 'D' were a variable resistor *for balancing*, then placement in an arm (like 1, 2, 3) would be logical. However, typically, a component labeled 'D' alongside 'G' would imply Detector.\n7. Consider Identical Options: Options (1), (2), and (3) are electrically and visually identical diagrams. In a multiple-choice question with a single correct answer, if one of these were correct, they all would be. This suggests that either the question/options are flawed or that option (4) must be the intended answer based on some principle. The principle most likely relates to the correct *placement* of detection components (G and D) in the central bridge arm.\n8. Conclusion: Although the specific values don't lead to balance, option 4 represents the most standard configuration regarding the placement of detection components (G and implicitly D if it's also for detection) within the central branch of the Wheatstone bridge circuit.\n\n```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
40
+ {"question_id": "NEET_2024_T3_040", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
41
+ {"question_id": "NEET_2024_T3_041", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "``` C\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
42
+ {"question_id": "NEET_2024_T3_042", "subject": "Physics", "ground_truth": [4], "predicted_answer": "SKIP", "raw_response": "<answer>SKIP</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "skipped", "marks_awarded": 0}
43
+ {"question_id": "NEET_2024_T3_043", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
44
+ {"question_id": "NEET_2024_T3_044", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
45
+ {"question_id": "NEET_2024_T3_045", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
46
+ {"question_id": "NEET_2024_T3_046", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
47
+ {"question_id": "NEET_2024_T3_047", "subject": "Physics", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
48
+ {"question_id": "NEET_2024_T3_048", "subject": "Physics", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
49
+ {"question_id": "NEET_2024_T3_049", "subject": "Physics", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```cpp\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
50
+ {"question_id": "NEET_2024_T3_050", "subject": "Physics", "ground_truth": [4], "predicted_answer": "SKIP", "raw_response": "<answer>SKIP</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "skipped", "marks_awarded": 0}
51
+ {"question_id": "NEET_2024_T3_051", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
52
+ {"question_id": "NEET_2024_T3_052", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```xml\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
53
+ {"question_id": "NEET_2024_T3_053", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
54
+ {"question_id": "NEET_2024_T3_054", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
55
+ {"question_id": "NEET_2024_T3_055", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
56
+ {"question_id": "NEET_2024_T3_056", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
57
+ {"question_id": "NEET_2024_T3_057", "subject": "Chemistry", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
58
+ {"question_id": "NEET_2024_T3_058", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
59
+ {"question_id": "NEET_2024_T3_059", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
60
+ {"question_id": "NEET_2024_T3_060", "subject": "Chemistry", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
61
+ {"question_id": "NEET_2024_T3_061", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
62
+ {"question_id": "NEET_2024_T3_062", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
63
+ {"question_id": "NEET_2024_T3_063", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
64
+ {"question_id": "NEET_2024_T3_064", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```c\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
65
+ {"question_id": "NEET_2024_T3_065", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
66
+ {"question_id": "NEET_2024_T3_066", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
67
+ {"question_id": "NEET_2024_T3_067", "subject": "Chemistry", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
68
+ {"question_id": "NEET_2024_T3_068", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
69
+ {"question_id": "NEET_2024_T3_069", "subject": "Chemistry", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n```json\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
70
+ {"question_id": "NEET_2024_T3_070", "subject": "Chemistry", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
71
+ {"question_id": "NEET_2024_T3_071", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```xml\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
72
+ {"question_id": "NEET_2024_T3_072", "subject": "Chemistry", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
73
+ {"question_id": "NEET_2024_T3_073", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
74
+ {"question_id": "NEET_2024_T3_074", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n[\n {\"box_2d\": [94, 118, 117, 149], \"text\": \"74.\"},\n {\"box_2d\": [117, 118, 202, 956], \"text\": \"In which of the following equilibria, Kp and Ke are\"},\n {\"box_2d\": [217, 116, 255, 298], \"text\": \"NOT equal?\"},\n {\"box_2d\": [266, 116, 316, 701], \"text\": \"(1) CO(g) + H2O(g)CO2(g) + H2(g)\"},\n {\"box_2d\": [396, 115, 447, 671], \"text\": \"(2) 2 BrCl(g) Br2(g) + Cl2(g)\"},\n {\"box_2d\": [529, 116, 571, 148], \"text\": \"(3)\"},\n {\"box_2d\": [531, 189, 572, 280], \"text\": \"PCl5(g)\"},\n {\"box_2d\": [554, 400, 596, 650], \"text\": \"PCl3(g) + Cl2(g)\"},\n {\"box_2d\": [656, 116, 699, 147], \"text\": \"(4)\"},\n {\"box_2d\": [658, 188, 712, 598], \"text\": \"H2(g) + I2(g) = 2 HI(g)\"}\n]\n```\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
75
+ {"question_id": "NEET_2024_T3_075", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
76
+ {"question_id": "NEET_2024_T3_076", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "``` C6H11+\n<answer>2</answer>```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
77
+ {"question_id": "NEET_2024_T3_077", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
78
+ {"question_id": "NEET_2024_T3_078", "subject": "Chemistry", "ground_truth": [1], "predicted_answer": [1], "raw_response": "``` D. **Cl2(g) \u2192 2Cl(g):** One mole of gas (Cl2) forms two moles of gas (2Cl). The number of moles of gas increases (\u0394n_g = 2 - 1 = 1 > 0), leading to an increase in entropy. Entropy increases.\n\nTherefore, entropy increases in processes A, C, and D.\n\nLooking at the options:\n(1) A, C and D\n(2) C and D\n(3) A and C\n(4) A, B and D\n\nThe correct option includes A, C, and D. This corresponds to option (1).\n\n```<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
79
+ {"question_id": "NEET_2024_T3_079", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
80
+ {"question_id": "NEET_2024_T3_080", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
81
+ {"question_id": "NEET_2024_T3_081", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
82
+ {"question_id": "NEET_2024_T3_082", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "``` C\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
83
+ {"question_id": "NEET_2024_T3_083", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
84
+ {"question_id": "NEET_2024_T3_084", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "``` DRAFT\n1. **Analyze the question:** The question asks to identify the most stable carbocation among the four given chemical structures. Carbocation stability increases with the number of alkyl groups attached to the positively charged carbon atom due to inductive effects and hyperconjugation. The order of stability is generally: tertiary (3\u00b0) > secondary (2\u00b0) > primary (1\u00b0) > methyl. Resonance can further enhance stability.\n\n2. **Analyze the options:**\n * **(1)** This is a primary carbocation. The positively charged carbon (-CH\u2082\u207a) is attached to only one other carbon atom (the cyclopentyl ring karbon).\n * **(2)** This is a tertiary carbocation. The positively charged carbon (within the cyclohexane ring) is attached to three other carbon atoms (two within the ring and one from the methyl group).\n * **(3)** This is a secondary carbocation. The positively charged carbon (-CH\u207a-) is attached to two other carbon atoms (one from the ethyl group -CH\u2082- and one from the isopropyl group -CH-). Specifically, it is 3-methylpentan-3-yl cation based on the drawing: CH3-CH2-CH(+)-CH(CH3)2. This is incorrect reading of the structure. Actually it is CH3-CH2-CH(+)-CH(CH3)2 - yes, this is secondary.\n * **(4)** This is a secondary carbocation. The positively charged carbon (-CH\u207a-) is attached to two other carbon atoms (one from the methyl group -CH\u2083 and one from the isobutyl group -CH\u2082-). Specifically, it is 4-methylpentan-2-yl cation: CH3-CH(+)-CH2-CH(CH3)2.\n\n3. **Compare stability:** Based on the order of stability (tertiary > secondary > primary), the tertiary carbocation in option (2) is the most stable. Options (1) is primary, and options (3) and (4) are secondary.\n\n4. **Determine the correct integer:** The correct option is (2).\n\n5. **Format the answer:** <answer>2</answer>\n```\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
85
+ {"question_id": "NEET_2024_T3_085", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
86
+ {"question_id": "NEET_2024_T3_086", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n```json\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
87
+ {"question_id": "NEET_2024_T3_087", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
88
+ {"question_id": "NEET_2024_T3_088", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "``` Memento ```python\nimport math\n\n# Given information\nslope = 25.73 # L bar mol^-1\nR = 0.083 # L bar mol^-1 K^-1\n\n# Formula relating osmotic pressure (\u03a0), concentration (C), and temperature (T)\n# \u03a0 = i * C * R * T\n# Plot of \u03a0 vs C gives a straight line with slope = i * R * T\n# Assuming i=1 (van't Hoff factor for non-electrolyte or ideal solution)\n# Slope = R * T\n\n# Calculate Temperature in Kelvin (T_K)\nT_K = slope / R\nT_K = 25.73 / 0.083\nT_K = 310.0 # Kelvin\n\n# Convert Temperature to Celsius (T_C)\n# T_C = T_K - 273.15\n# More commonly in these types of problems, 273 is used for conversion.\nT_C_approx = T_K - 273\nT_C_approx = 310 - 273\nT_C_approx = 37 # degrees Celsius\n\nT_C_exact = T_K - 273.15\nT_C_exact = 310.0 - 273.15\nT_C_exact = 36.85 # degrees Celsius\n\n# Check the options\noption1 = 25.73 # \u00b0C\noption2 = 12.05 # \u00b0C\noption3 = 37 # \u00b0C\noption4 = 310 # \u00b0C\n\n# The calculated temperature (36.85\u00b0C or approximately 37\u00b0C) matches option (3).\n\n# Select the option number corresponding to 37\u00b0C.\ncorrect_option_number = 3\n```\n\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
89
+ {"question_id": "NEET_2024_T3_089", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "``` C6H11\n|\nC=CH + KMnO4/H+ -> 'P' (major product)\n| |\nH C6H11\n```\n\n1. **Analyze the reaction:** The reaction involves an alkene (1,2-dicyclohexylethylene) reacting with potassium permanganate (KMnO4) in acidic conditions (H+). Hot, acidic KMnO4 is a strong oxidizing agent that causes oxidative cleavage of the carbon-carbon double bond.\n2. **Determine the products of oxidative cleavage:** The double bond (C=C) is broken. Each carbon atom that was part of the double bond gets oxidized.\n * If a carbon atom of the double bond has one hydrogen attached (R-CH=), it gets oxidized to a carboxylic acid group (-COOH).\n * If a carbon atom of the double bond has two hydrogens attached (=CH2), it gets oxidized to carbon dioxide (CO2).\n * If a carbon atom of the double bond has no hydrogens attached (R-C(R')=), it gets oxidized to a ketone group (=O).\n3. **Apply to the specific substrate:** In the given alkene, both carbon atoms of the double bond are identical in terms of substitution. Each carbon is attached to one hydrogen atom and one cyclohexyl group (C6H11).\n ```\n C6H11-CH=CH-C6H11\n ```\n Cleavage occurs at the double bond. The left `C6H11-CH=` fragment will be oxidized to `C6H11-COOH`. The right `=CH-C6H11` fragment will also be oxidized to `C6H11-COOH`.\n4. **Identify the major product 'P':** The reaction breaks the molecule into two identical fragments, each being cyclohexanecarboxylic acid. Therefore, the major product 'P' is cyclohexanecarboxylic acid.\n5. **Match with the options:**\n * Option (1) is 1,2-dicyclohexyl-1,2-ethanediol. This is the product of syn-dihydroxylation (e.g., cold, dilute, alkaline KMnO4 or OsO4). Not correct for hot/acidic KMnO4.\n * Option (2) is 1,2-dicyclohexylethanedione. This would imply oxidation without cleavage, or cleavage of a different starting material. Not correct.\n * Option (3) is cyclohexanecarbaldehyde. Aldehydes are intermediates but are readily oxidized to carboxylic acids by strong oxidizing agents like hot/acidic KMnO4. Not the final major product.\n * Option (4) is cyclohexanecarboxylic acid. This matches the expected product of oxidative cleavage.\n\nTherefore, the correct option is (4).\n\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
90
+ {"question_id": "NEET_2024_T3_090", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n{\n \"step_by_step_thinking\": \"Step 1: Analyze Statement I. Statement I says '[Co(NH3)6]3+ is a homoleptic complex whereas [Co(NH3)4Cl2]+ is a heteroleptic complex.' A homoleptic complex has only one type of ligand attached to the central metal ion. In [Co(NH3)6]3+, only NH3 ligands are attached to Co. Thus, it is homoleptic. A heteroleptic complex has more than one type of ligand attached to the central metal ion. in [Co(NH3)4Cl2]+, both NH3 and Cl ligands are attached to Co. Thus, it is heteroleptic. Therefore, Statement I is true.\\nStep 2: Analyze Statement II. Statement II says 'Complex [Co(NH3)6]3+ has only one kind of ligands but [Co(NH3)4Cl2]+ has more than one kind of ligands.' As established in Step 1, [Co(NH3)6]3+ has only NH3 ligands (one kind). Also, [Co(NH3)4Cl2]+ has NH3 and Cl ligands (two kinds, which is more than one kind). Therefore, Statement II is true.\\nStep 3: Evaluate the options based on the truthfulness of the statements. Since both Statement I and Statement II are true, we need to find the option that reflects this.\\nOption (1) says Statement I is true but Statement II is false. This is incorrect.\\nOption (2) says Statement I is false but Statement II is true. This is incorrect.\\nOption (3) says Both Statement I and Statement II are true. This is correct.\\nOption (4) says Both Statement I and Statement II are false. This is incorrect.\\nStep 4: Identify the correct option number. The correct option is (3).\\nStep 5: Format the final answer as requested.\",\n \"final_answer\": \"<answer>3</answer>\"\n}\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
91
+ {"question_id": "NEET_2024_T3_091", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
92
+ {"question_id": "NEET_2024_T3_092", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
93
+ {"question_id": "NEET_2024_T3_093", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
94
+ {"question_id": "NEET_2024_T3_094", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "``` ELECTION ANALYSIS\n1. **Step 1:** 1-Iodopropane (CH\u2083-CH\u2082-CH\u2082-I) reacts with sodium cyanide (NaCN). This is an SN2 reaction where the cyanide ion (CN\u207b) replaces the iodide ion (I\u207b). The product A is butanenitrile (CH\u2083-CH\u2082-CH\u2082-CN).\n2. **Step 2:** Butanenitrile (A) undergoes partial hydrolysis with hydroxide ions (OH\u207b). Partial hydrolysis of a nitrile yields an amide. The product B is butanamide (CH\u2083-CH\u2082-CH\u2082-CONH\u2082).\n3. **Step 3:** Butanamide (B) reacts with sodium hydroxide (NaOH) and bromine (Br\u2082). This is the Hofmann rearrangement (or Hofmann degradation) reaction. In this reaction, an amide is converted to a primary amine with one less carbon atom. Butanamide (4 carbons) is converted to propylamine (CH\u2083-CH\u2082-CH\u2082-NH\u2082), which has 3 carbons. Product C is propylamine.\n\n**Checking the Options:**\n* (1) butanamide: This is intermediate B.\n* (2) \u03b1-bromobutanoic acid: Incorrect product.\n* (3) propylamine: This is the final product C (CH\u2083-CH\u2082-CH\u2082-NH\u2082).\n* (4) butylamine: Incorrect product (same number of carbons as B, Hofmann degradation removes one carbon).\n\nTherefore, the correct option is (3).\n```\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
95
+ {"question_id": "NEET_2024_T3_095", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
96
+ {"question_id": "NEET_2024_T3_096", "subject": "Chemistry", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```xml\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
97
+ {"question_id": "NEET_2024_T3_097", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [1], "raw_response": "```php\n```\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
98
+ {"question_id": "NEET_2024_T3_098", "subject": "Chemistry", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
99
+ {"question_id": "NEET_2024_T3_099", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "``` MSON\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
100
+ {"question_id": "NEET_2024_T3_100", "subject": "Chemistry", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
101
+ {"question_id": "NEET_2024_T3_101", "subject": "Botany", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
102
+ {"question_id": "NEET_2024_T3_102", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "1. **Analyze the question:** The question describes a conservation method where threatened species are removed from their natural habitat and kept in a controlled, protected environment (like zoos, botanical gardens, seed banks). This method is known as *ex-situ* conservation (off-site conservation).\n\n2. **Analyze the options:**\n * (1) Semi-conservative method: Refers to DNA replication. Incorrect.\n * (2) Sustainable development: A broad economic and environmental policy concept. Incorrect.\n * (3) *in-situ* conservation: Means conservation within the natural habitat (e.g., national parks, wildlife sanctuaries). This is the opposite of the method described in the question. Incorrect.\n * (4) Biodiversity conservation: This is the overall effort to preserve the variety of life on Earth. It encompasses both *in-situ* and *ex-situ* strategies.\n\n3. **Determine the correct option:** The specific type of conservation described in the question is *ex-situ* conservation. This option is not provided. Among the given choices, *in-situ* conservation (3) is the opposite approach. Biodiversity conservation (4) is a broad term that includes *ex-situ* conservation as one of its strategies. Options (1) and (2) are irrelevant. Since the specific term (*ex-situ*) is missing, and *in-situ* is incorrect, the most appropriate answer among the given choices is the broader category under which *ex-situ* conservation falls, which is Biodiversity conservation (4). Although imprecise, it's the best fit given the options.\n\n4. **Format the answer:** The correct option number is 4.\n\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
103
+ {"question_id": "NEET_2024_T3_103", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
104
+ {"question_id": "NEET_2024_T3_104", "subject": "Botany", "ground_truth": [1], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
105
+ {"question_id": "NEET_2024_T3_105", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
106
+ {"question_id": "NEET_2024_T3_106", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
107
+ {"question_id": "NEET_2024_T3_107", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
108
+ {"question_id": "NEET_2024_T3_108", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
109
+ {"question_id": "NEET_2024_T3_109", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
110
+ {"question_id": "NEET_2024_T3_110", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
111
+ {"question_id": "NEET_2024_T3_111", "subject": "Botany", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n```xml\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
112
+ {"question_id": "NEET_2024_T3_112", "subject": "Botany", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```xml\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
113
+ {"question_id": "NEET_2024_T3_113", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
114
+ {"question_id": "NEET_2024_T3_114", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
115
+ {"question_id": "NEET_2024_T3_115", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
116
+ {"question_id": "NEET_2024_T3_116", "subject": "Botany", "ground_truth": [2], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
117
+ {"question_id": "NEET_2024_T3_117", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
118
+ {"question_id": "NEET_2024_T3_118", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
119
+ {"question_id": "NEET_2024_T3_119", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
120
+ {"question_id": "NEET_2024_T3_120", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
121
+ {"question_id": "NEET_2024_T3_121", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
122
+ {"question_id": "NEET_2024_T3_122", "subject": "Botany", "ground_truth": [2], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
123
+ {"question_id": "NEET_2024_T3_123", "subject": "Botany", "ground_truth": [3], "predicted_answer": [4], "raw_response": "``` MSON ```\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
124
+ {"question_id": "NEET_2024_T3_124", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
125
+ {"question_id": "NEET_2024_T3_125", "subject": "Botany", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
126
+ {"question_id": "NEET_2024_T3_126", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
127
+ {"question_id": "NEET_2024_T3_127", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
128
+ {"question_id": "NEET_2024_T3_128", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
129
+ {"question_id": "NEET_2024_T3_129", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
130
+ {"question_id": "NEET_2024_T3_130", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
131
+ {"question_id": "NEET_2024_T3_131", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
132
+ {"question_id": "NEET_2024_T3_132", "subject": "Botany", "ground_truth": [2], "predicted_answer": [2], "raw_response": "``` MuiTypography::variant=\"body1\" ``````json\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
133
+ {"question_id": "NEET_2024_T3_133", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
134
+ {"question_id": "NEET_2024_T3_134", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "``` MMATCH FAIL: '\u0410-\u0406\u041f' vs 'A-III' ```\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
135
+ {"question_id": "NEET_2024_T3_135", "subject": "Botany", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
136
+ {"question_id": "NEET_2024_T3_136", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
137
+ {"question_id": "NEET_2024_T3_137", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
138
+ {"question_id": "NEET_2024_T3_138", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
139
+ {"question_id": "NEET_2024_T3_139", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
140
+ {"question_id": "NEET_2024_T3_140", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
141
+ {"question_id": "NEET_2024_T3_141", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n[\n {\"box_2d\": [11, 108, 53, 496], \"label\": \"question\"},\n {\"box_2d\": [65, 110, 649, 933], \"label\": \"table\"},\n {\"box_2d\": [670, 110, 752, 972], \"label\": \"question\"},\n {\"box_2d\": [765, 110, 971, 543], \"label\": \"options\"}\n]\n```\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
142
+ {"question_id": "NEET_2024_T3_142", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
143
+ {"question_id": "NEET_2024_T3_143", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
144
+ {"question_id": "NEET_2024_T3_144", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n[\n {\"point\": [94, 216], \"label\": \"list_item\"},\n {\"point\": [96, 305], \"label\": \"list_item\"},\n {\"point\": [101, 427], \"label\": \"list_item\"},\n {\"point\": [94, 535], \"label\": \"list_item\"},\n {\"point\": [424, 216], \"label\": \"list_item\"},\n {\"point\": [424, 305], \"label\": \"list_item\"},\n {\"point\": [424, 427], \"label\": \"list_item\"},\n {\"point\": [424, 535], \"label\": \"list_item\"}\n]\n```\n```json\n[\n {\"box_2d\": [410, 472, 530, 905], \"label\": \"list_item\"},\n {\"box_2d\": [396, 133, 551, 421], \"label\": \"list_item\"},\n {\"box_2d\": [811, 35, 849, 395], \"label\": \"list_item\"},\n {\"box_2d\": [56, 110, 682, 960], \"label\": \"table\"},\n {\"box_2d\": [58, 210, 151, 453], \"label\": \"list_item\"},\n {\"box_2d\": [71, 504, 158, 806], \"label\": \"list_item\"},\n {\"box_2d\": [151, 112, 266, 449], \"label\": \"list_item\"},\n {\"box_2d\": [151, 453, 266, 962], \"label\": \"list_item\"},\n {\"box_2d\": [153, 476, 208, 776], \"label\": \"list_item\"},\n {\"box_2d\": [167, 229, 252, 438], \"label\": \"list_item\"},\n {\"box_2d\": [307, 472, 373, 834], \"label\": \"list_item\"},\n {\"box_2d\": [561, 112, 682, 449], \"label\": \"list_item\"},\n {\"box_2d\": [274, 112, 392, 449], \"label\": \"list_item\"},\n {\"box_2d\": [939, 35, 983, 482], \"label\": \"list_item\"},\n {\"box_2d\": [722, 31, 799, 922], \"label\": \"list\"},\n {\"box_2d\": [274, 453, 392, 958], \"label\": \"list_item\"},\n {\"box_2d\": [896, 35, 939, 478], \"label\": \"list_item\"},\n {\"box_2d\": [561, 451, 682, 958], \"label\": \"list_item\"},\n {\"box_2d\": [290, 131, 330, 410], \"label\": \"list_item\"},\n {\"box_2d\": [854, 35, 892, 399], \"label\": \"list_item\"},\n {\"box_2d\": [578, 468, 660, 937], \"label\": \"list_item\"},\n {\"box_2d\": [64, 453, 151, 960], \"label\": \"list_item\"},\n {\"box_2d\": [396, 451, 554, 958], \"label\": \"list_item\"},\n {\"box_2d\": [575, 131, 665, 371], \"label\": \"list_item\"}\n]\n```\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
145
+ {"question_id": "NEET_2024_T3_145", "subject": "Botany", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
146
+ {"question_id": "NEET_2024_T3_146", "subject": "Botany", "ground_truth": [1], "predicted_answer": [4], "raw_response": "* **Analyze the question:** The question provides the Net Primary Productivity (NPP) of the first trophic level as 100x (kcal m\u207b\u00b2) yr\u207b\u00b9 and asks for the Gross Primary Productivity (GPP) of the third trophic level.\n* **Key concepts:**\n * GPP (Gross Primary Productivity) is the total rate of photosynthesis by producers (first trophic level).\n * NPP (Net Primary Productivity) is GPP minus the energy used by producers for respiration (NPP = GPP - R). NPP is the energy available to the next trophic level (primary consumers).\n * Energy transfer between trophic levels is typically around 10% (Lindeman's 10% law).\n * GPP and NPP are terms specifically defined for producers (the first trophic level). Higher trophic levels (consumers) acquire energy by consuming other organisms; their energy assimilation and biomass production are referred to as secondary productivity, not GPP or NPP.\n* **Evaluate the question's premise:** Asking for the GPP of the third trophic level is technically incorrect according to standard ecological definitions, as GPP applies only to producers. Consumers (like those in the third trophic level) do not photosynthesize.\n* **Interpret the likely intent:** It is highly probable that the question, despite using incorrect terminology (\"GPP of the third trophic level\"), intends to ask for the amount of energy available or assimilated at the third trophic level, assuming the standard 10% energy transfer efficiency between levels, starting from the NPP of the first level.\n* **Calculate energy transfer:**\n * Energy available at the first trophic level (Producers) as NPP = 100x.\n * Energy transferred to the second trophic level (Primary Consumers) \u2248 10% of 100x = 0.1 * 100x = 10x.\n * Energy transferred to the third trophic level (Secondary Consumers) \u2248 10% of 10x = 0.1 * 10x = x.\n* **Compare with options:**\n * (1) 10x: Energy at the second trophic level.\n * (2) 100x/3x = 100/3: Incorrect calculation.\n * (3) x/10: Energy potentially at the fourth trophic level.\n * (4) x: Energy at the third trophic level based on the 10% rule.\n* **Conclusion:** Based on the likely intent of the question using the 10% energy transfer rule, the energy available at the third trophic level is approximately x.\n\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
147
+ {"question_id": "NEET_2024_T3_147", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
148
+ {"question_id": "NEET_2024_T3_148", "subject": "Botany", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
149
+ {"question_id": "NEET_2024_T3_149", "subject": "Botany", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n{\n\"A\": \"Monoadelphous\",\n\"B\": \"Diadelphous\",\n\"C\": \"Polyadelphous\",\n\"D\": \"Epiphyllous\",\n\"I\": \"Citrus\",\n\"II\": \"Pea\",\n\"III\": \"Lily\",\n\"IV\": \"China-rose\"\n}\n```\n* **(A) Monoadelphous:** Filaments united into one bundle. Example: China-rose. So, A matches IV.\n* **(B) Diadelphous:** Filaments united into two bundles (often 9+1). Example: Pea. So, B matches II.\n* **(C) Polyadelphous:** Filaments united into more than two bundles. Example: Citrus. So, C matches I.\n* **(D) Epiphyllous:** Stamens attached to the perianth (tepals). Example: Lily. So, D matches III.\n\nThe correct matching is A-IV, B-II, C-I, D-III.\n\nLet's check the options:\n(1) A-I, B-II, C-IV, D-III\n(2) A-III, B-I, C-IV, D-II\n(3) A-IV, B-II, C-I, D-III\n(4) A-IV, B-I, C-II, D-III\n\nOption (3) matches our derived pairing.\n\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
150
+ {"question_id": "NEET_2024_T3_150", "subject": "Botany", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
151
+ {"question_id": "NEET_2024_T3_151", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
152
+ {"question_id": "NEET_2024_T3_152", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "``` Mismatch\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
153
+ {"question_id": "NEET_2024_T3_153", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```xml\n<answer>1</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
154
+ {"question_id": "NEET_2024_T3_154", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
155
+ {"question_id": "NEET_2024_T3_155", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
156
+ {"question_id": "NEET_2024_T3_156", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
157
+ {"question_id": "NEET_2024_T3_157", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
158
+ {"question_id": "NEET_2024_T3_158", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
159
+ {"question_id": "NEET_2024_T3_159", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
160
+ {"question_id": "NEET_2024_T3_160", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "``` HBox(children=(FloatProgress(value=0.0, bar_style='info', description='Analyzing Image...', max=1.0, style=Pro\u2026\n[\n {\"box_2d\": [46, 123, 94, 694], \"label\": \"the question\"},\n {\"box_2d\": [130, 208, 181, 528], \"label\": \"the text A. Myasthenia gravis\"},\n {\"box_2d\": [189, 208, 249, 507], \"label\": \"the text B. Rheumatoid arthritis\"},\n {\"box_2d\": [263, 208, 326, 849], \"label\": \"the text C. Gout D. Muscular dystrophy E. Systemic Lupus Erythematosus (SLE) Choose the most appropriate answer from the options given below: (1) B, C & E only (2) C, D & E only (3) A, B & D only (4) A, B & E only\"},\n {\"box_2d\": [360, 208, 411, 537], \"label\": \"the text D. Muscular dystrophy\"},\n {\"box_2d\": [440, 208, 491, 772], \"label\": \"the text E. Systemic Lupus Erythematosus (SLE)\"},\n {\"box_2d\": [520, 129, 654, 990], \"label\": \"the text Choose the most appropriate answer from the options given below:\"},\n {\"box_2d\": [684, 129, 735, 412], \"label\": \"the text (1) B, C & E only\"},\n {\"box_2d\": [758, 129, 809, 410], \"label\": \"the text (2) C, D & E only\"},\n {\"box_2d\": [846, 129, 897, 410], \"label\": \"the text (3) A, B & D only\"},\n {\"box_2d\": [923, 129, 975, 410], \"label\": \"the text (4) A, B & E only\"}\n]\n```\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
161
+ {"question_id": "NEET_2024_T3_161", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
162
+ {"question_id": "NEET_2024_T3_162", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
163
+ {"question_id": "NEET_2024_T3_163", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "``` Mnemonic:\nEC = TV + ERV\nFRC = ERV + RV\nVC = IRV + TV + ERV\nIC = TV + IRV\n\nMatching:\nA. Expiratory capacity (EC) = TV + ERV -> II\nB. Functional residual capacity (FRC) = ERV + RV -> IV\nC. Vital capacity (VC) = IRV + TV + ERV -> I\nD. Inspiratory capacity (IC) = TV + IRV -> III\n\nCombined: A-II, B-IV, C-I, D-III\n\nChecking options:\n(1) A-II, B-I, C-IV, D-III -> Incorrect\n(2) A-I, B-III, C-II, D-IV -> Incorrect\n(3) A-II, B-IV, C-I, D-III -> Correct\n(4) A-III, B-II, C-IV, D-I -> Incorrect\n\nThe correct option number is 3.\n```\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
164
+ {"question_id": "NEET_2024_T3_164", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
165
+ {"question_id": "NEET_2024_T3_165", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
166
+ {"question_id": "NEET_2024_T3_166", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n```json\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
167
+ {"question_id": "NEET_2024_T3_167", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```json\n<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
168
+ {"question_id": "NEET_2024_T3_168", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
169
+ {"question_id": "NEET_2024_T3_169", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
170
+ {"question_id": "NEET_2024_T3_170", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
171
+ {"question_id": "NEET_2024_T3_171", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
172
+ {"question_id": "NEET_2024_T3_172", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
173
+ {"question_id": "NEET_2024_T3_173", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
174
+ {"question_id": "NEET_2024_T3_174", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n{\n \"A\": \"III\",\n \"B\": \"I\",\n \"C\": \"IV\",\n \"D\": \"II\"\n}\n```\n\n```\nA. Fibrous joints -> III. Skull, don't allow any movement\nB. Cartilaginous joints -> I. Adjacent vertebrae, limited movement\nC. Hinge joints -> IV. Knee, help in locomotion (Hinge joints allow movement in one plane, like the knee or elbow)\nD. Ball and socket joints -> II. Humerus and pectoral girdle, rotational movement (Shoulder and hip joints are examples)\n\nMatching:\nA - III\nB - I\nC - IV\nD - II\n\nCheck options:\n(1) A-II, B-III, C-I, D-IV -> Incorrect\n(2) A-III, B-I, C-IV, D-II -> Correct\n(3) A-IV, B-II, C-III, D-I -> Incorrect\n(4) A-I, B-III, C-II, D-IV -> Incorrect\n\nThe correct option is (2).\n```\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
175
+ {"question_id": "NEET_2024_T3_175", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
176
+ {"question_id": "NEET_2024_T3_176", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
177
+ {"question_id": "NEET_2024_T3_177", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
178
+ {"question_id": "NEET_2024_T3_178", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
179
+ {"question_id": "NEET_2024_T3_179", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
180
+ {"question_id": "NEET_2024_T3_180", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
181
+ {"question_id": "NEET_2024_T3_181", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
182
+ {"question_id": "NEET_2024_T3_182", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
183
+ {"question_id": "NEET_2024_T3_183", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
184
+ {"question_id": "NEET_2024_T3_184", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
185
+ {"question_id": "NEET_2024_T3_185", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n{\n \"A\": \"Down's syndrome\",\n \"B\": \"\u03b1 - Thalassemia\",\n \"C\": \"\u03b2-Thalassemia\",\n \"D\": \"Klinefelter's\",\n \"I\": \"11th chromosome\",\n \"II\": \"'X' chromosome\",\n \"III\": \"21st chromosome\",\n \"IV\": \"16th chromosome\"\n}\n```\n* **A. Down's syndrome:** This is caused by trisomy of the 21st chromosome. So, **A matches III**.\n* **B. \u03b1 - Thalassemia:** This is typically caused by mutations or deletions in the genes located on the 16th chromosome. So, **B matches IV**.\n* **C. \u03b2-Thalassemia:** This is typically caused by mutations in the HBB gene on the 11th chromosome. So, **C matches I**.\n* **D. Klinefelter's syndrome:** This is a sex chromosome aneuploidy in males, characterized by the presence of an extra X chromosome (XXY). So, **D matches II**.\n\nMatching combination: A-III, B-IV, C-I, D-II.\n\nNow check the options:\n(1) A-III, B-IV, C-I, D-II - This matches our findings.\n(2) A-IV, B-I, C-II, D-III - Incorrect.\n(3) A-I, B-II, C-III, D-IV - Incorrect.\n(4) A-II, B-III, C-IV, D-I - Incorrect.\n\nThe correct option is (1).\n\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
186
+ {"question_id": "NEET_2024_T3_186", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
187
+ {"question_id": "NEET_2024_T3_187", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```json\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
188
+ {"question_id": "NEET_2024_T3_188", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n{\n \"reasoning\": \"Statement I states that the cerebral hemispheres are connected by the corpus callosum. This is a well-established fact in neuroanatomy. The corpus callosum is a large, C-shaped nerve fiber bundle beneath the cerebral cortex that stretches across the midline of the brain, connecting the left and right cerebral hemispheres and enabling communication between them. Therefore, Statement I is correct. Statement II states that the brain stem consists of the medulla oblongata, pons, and cerebrum. The brain stem is typically defined as consisting of the midbrain, pons, and medulla oblongata. The cerebrum is the largest part of the brain, responsible for higher cognitive functions, and it is structurally distinct from the brain stem. Therefore, Statement II is incorrect as it incorrectly includes the cerebrum as part of the brain stem. Based on this analysis, Statement I is correct and Statement II is incorrect. Option (1) reflects this conclusion.\",\n \"correct_option_number\": 1\n}\n```\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
189
+ {"question_id": "NEET_2024_T3_189", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
190
+ {"question_id": "NEET_2024_T3_190", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "```cpp\n<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
191
+ {"question_id": "NEET_2024_T3_191", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "evaluation_status": "correct", "marks_awarded": 4}
192
+ {"question_id": "NEET_2024_T3_192", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n{\n \"A\": \"Unicellular glandular epithelium\",\n \"B\": \"Compound epithelium\",\n \"C\": \"Multicellular glandular epithelium\",\n \"D\": \"Endocrine glandular epithelium\",\n \"I\": \"Salivary glands\",\n \"II\": \"Pancreas\",\n \"III\": \"Goblet cells of alimentary canal\",\n \"IV\": \"Moist surface of buccal cavity\"\n}\n```\n\n1. **A. Unicellular glandular epithelium:** Goblet cells are unicellular glands found in the epithelium of the alimentary canal and respiratory tract. They secrete mucus. Therefore, A matches with III.\n2. **B. Compound epithelium:** This epithelium consists of more than one layer of cells. It provides protection against mechanical and chemical stresses. The moist surface of the buccal cavity (lining of the mouth) is lined by stratified squamous non-keratinized epithelium, which is a type of compound epithelium. Therefore, B matches with IV.\n3. **C. Multicellular glandular epithelium:** These glands are formed by clusters of cells. Salivary glands are examples of multicellular exocrine glands. Therefore, C matches with I.\n4. **D. Endocrine glandular epithelium:** Endocrine glands are ductless glands that secrete hormones directly into the bloodstream. The pancreas has both endocrine (Islets of Langerhans secreting insulin, glucagon) and exocrine functions. Thus, the endocrine glandular epithelium is represented by the pancreas (in its endocrine capacity). Therefore, D matches with II.\n\nMatching pairs:\nA - III\nB - IV\nC - I\nD - II\n\nNow let's check the options:\n(1) A-III, B-IV, C-I, D-II - This matches our findings.\n(2) A-II, B-I, C-IV, D-III\n(3) A-II, B-I, C-III, D-IV\n(4) A-IV, B-III, C-I, D-II\n\nThe correct option is (1).\n\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
193
+ {"question_id": "NEET_2024_T3_193", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [1], "raw_response": "<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
194
+ {"question_id": "NEET_2024_T3_194", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
195
+ {"question_id": "NEET_2024_T3_195", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [1], "raw_response": "```json\n<answer>1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
196
+ {"question_id": "NEET_2024_T3_196", "subject": "Zoology", "ground_truth": [4], "predicted_answer": [4], "raw_response": "```xml\n<answer>4</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
197
+ {"question_id": "NEET_2024_T3_197", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
198
+ {"question_id": "NEET_2024_T3_198", "subject": "Zoology", "ground_truth": [2], "predicted_answer": [2], "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
199
+ {"question_id": "NEET_2024_T3_199", "subject": "Zoology", "ground_truth": [3], "predicted_answer": [3], "raw_response": "```json\n<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "correct", "marks_awarded": 4}
200
+ {"question_id": "NEET_2024_T3_200", "subject": "Zoology", "ground_truth": [1], "predicted_answer": [3], "raw_response": "```xml\n<answer>3</answer>\n```", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "evaluation_status": "incorrect", "marks_awarded": -1}
results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250505_091752/summary.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "google/gemini-2.5-pro-preview-03-25",
3
+ "timestamp": "20250505_091752",
4
+ "total_questions_in_dataset": 200,
5
+ "overall_score": 727,
6
+ "overall_correct": 185,
7
+ "overall_incorrect": 13,
8
+ "overall_skipped": 2,
9
+ "overall_api_parse_failures": 0,
10
+ "total_questions_processed": 200,
11
+ "unmapped_section_questions": 0,
12
+ "section_breakdown": {
13
+ "Physics_A": {
14
+ "score": 130,
15
+ "correct": 33,
16
+ "incorrect": 2,
17
+ "skipped": 0
18
+ },
19
+ "Physics_B": {
20
+ "score": 47,
21
+ "correct": 12,
22
+ "incorrect": 1,
23
+ "skipped": 2
24
+ },
25
+ "Chemistry_A": {
26
+ "score": 140,
27
+ "correct": 35,
28
+ "incorrect": 0,
29
+ "skipped": 0
30
+ },
31
+ "Chemistry_B": {
32
+ "score": 55,
33
+ "correct": 14,
34
+ "incorrect": 1,
35
+ "skipped": 0
36
+ },
37
+ "Botany_A": {
38
+ "score": 120,
39
+ "correct": 31,
40
+ "incorrect": 4,
41
+ "skipped": 0
42
+ },
43
+ "Botany_B": {
44
+ "score": 55,
45
+ "correct": 14,
46
+ "incorrect": 1,
47
+ "skipped": 0
48
+ },
49
+ "Zoology_A": {
50
+ "score": 130,
51
+ "correct": 33,
52
+ "incorrect": 2,
53
+ "skipped": 0
54
+ },
55
+ "Zoology_B": {
56
+ "score": 50,
57
+ "correct": 13,
58
+ "incorrect": 2,
59
+ "skipped": 0
60
+ }
61
+ }
62
+ }
results/google_gemini-2.5-pro-preview-03-25_NEET_2024_20250505_091752/summary.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: google/gemini-2.5-pro-preview-03-25
2
+ **Timestamp:** 20250505_091752
3
+ **Total Questions in Dataset:** 200
4
+
5
+ ---
6
+
7
+ ## NEET Scoring Results
8
+ **Overall Score:** **727 / 800**
9
+ - **Correct Answers (+4):** 185
10
+ - **Incorrect Answers (-1):** 13
11
+ - **Skipped Questions (0):** 2
12
+ - **API/Parse Failures (-1):** 0
13
+ - **Total Questions Processed:** 200
14
+
15
+ ### Section Breakdown
16
+ | Section | Score | Correct | Incorrect | Skipped |
17
+ |---------------|-------|---------|-----------|---------|
18
+ | Physics A | 130 | 33 | 2 | 0 |
19
+ | Physics B | 47 | 12 | 1 | 2 |
20
+ | Chemistry A | 140 | 35 | 0 | 0 |
21
+ | Chemistry B | 55 | 14 | 1 | 0 |
22
+ | Botany A | 120 | 31 | 4 | 0 |
23
+ | Botany B | 55 | 14 | 1 | 0 |
24
+ | Zoology A | 130 | 33 | 2 | 0 |
25
+ | Zoology B | 50 | 13 | 2 | 0 |
results/google_gemini-2.5-pro-preview-03-25_NEET_2025_20250506_195634/predictions.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
results/google_gemini-2.5-pro-preview-03-25_NEET_2025_20250506_195634/summary.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "google/gemini-2.5-pro-preview-03-25",
3
+ "exam_name": "NEET",
4
+ "exam_year": "2025",
5
+ "timestamp": "20250506_195634",
6
+ "total_questions_in_dataset": 180,
7
+ "overall_score": 685,
8
+ "overall_correct": 173,
9
+ "overall_incorrect": 7,
10
+ "overall_skipped": 0,
11
+ "overall_api_parse_failures": 6,
12
+ "total_questions_processed": 180,
13
+ "unmapped_section_questions": 0,
14
+ "section_breakdown": {
15
+ "Biology": {
16
+ "score": 340,
17
+ "correct": 87,
18
+ "incorrect": 3,
19
+ "skipped": 0
20
+ },
21
+ "Chemistry": {
22
+ "score": 170,
23
+ "correct": 43,
24
+ "incorrect": 2,
25
+ "skipped": 0
26
+ },
27
+ "Physics": {
28
+ "score": 170,
29
+ "correct": 43,
30
+ "incorrect": 2,
31
+ "skipped": 0
32
+ }
33
+ }
34
+ }
results/google_gemini-2.5-pro-preview-03-25_NEET_2025_20250506_195634/summary.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: google/gemini-2.5-pro-preview-03-25
2
+ **Exam Name:** NEET
3
+ **Exam Year:** 2025
4
+ **Timestamp:** 20250506_195634
5
+ **Total Questions in Dataset:** 180
6
+
7
+ ---
8
+
9
+ ## NEET Scoring Results
10
+ **Overall Score:** **685 / 720**
11
+ - **Correct Answers (+4):** 173
12
+ - **Incorrect Answers (-1):** 7
13
+ - **Skipped Questions (0):** 0
14
+ - **API/Parse Failures (-1):** 6
15
+ - **Total Questions Processed:** 180
16
+
17
+ ### Section Breakdown
18
+ | Section | Score | Correct | Incorrect | Skipped |
19
+ |---------------|-------|---------|-----------|---------|
20
+ | Biology | 340 | 87 | 3 | 0 |
21
+ | Chemistry | 170 | 43 | 2 | 0 |
22
+ | Physics | 170 | 43 | 2 | 0 |
results/openai_gpt-5_JEE_ADVANCED_2025_20250923_174647/predictions.jsonl ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "JA25P1P01", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
2
+ {"question_id": "JA25P1P02", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
3
+ {"question_id": "JA25P1P03", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
4
+ {"question_id": "JA25P1P04", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
5
+ {"question_id": "JA25P1P05", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
6
+ {"question_id": "JA25P1P06", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
7
+ {"question_id": "JA25P1P07", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
8
+ {"question_id": "JA25P1P08", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
9
+ {"question_id": "JA25P1P09", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>23</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
10
+ {"question_id": "JA25P1P10", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
11
+ {"question_id": "JA25P1P11", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.5</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
12
+ {"question_id": "JA25P1P12", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>38</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
13
+ {"question_id": "JA25P1P13", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>72</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
14
+ {"question_id": "JA25P1P14", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
15
+ {"question_id": "JA25P1P15", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
16
+ {"question_id": "JA25P1P16", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
17
+ {"question_id": "JA25P1C01", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
18
+ {"question_id": "JA25P1C02", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
19
+ {"question_id": "JA25P1C03", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
20
+ {"question_id": "JA25P1C04", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
21
+ {"question_id": "JA25P1C05", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
22
+ {"question_id": "JA25P1C06", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
23
+ {"question_id": "JA25P1C07", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
24
+ {"question_id": "JA25P1C08", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>100</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
25
+ {"question_id": "JA25P1C09", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.236</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
26
+ {"question_id": "JA25P1C10", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>-7.1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
27
+ {"question_id": "JA25P1C11", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>30</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
28
+ {"question_id": "JA25P1C12", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>280</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
29
+ {"question_id": "JA25P1C13", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>SKIP</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
30
+ {"question_id": "JA25P1C14", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
31
+ {"question_id": "JA25P1C15", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
32
+ {"question_id": "JA25P1C16", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
33
+ {"question_id": "JA25P1M01", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
34
+ {"question_id": "JA25P1M02", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
35
+ {"question_id": "JA25P1M03", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
36
+ {"question_id": "JA25P1M04", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
37
+ {"question_id": "JA25P1M05", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
38
+ {"question_id": "JA25P1M06", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
39
+ {"question_id": "JA25P1M07", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
40
+ {"question_id": "JA25P1M08", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>105</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
41
+ {"question_id": "JA25P1M09", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>SKIP</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "previous_raw_response_on_reprompt": "<answer>6/5</answer>"}
42
+ {"question_id": "JA25P1M10", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>762</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
43
+ {"question_id": "JA25P1M11", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
44
+ {"question_id": "JA25P1M12", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>96</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
45
+ {"question_id": "JA25P1M13", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
46
+ {"question_id": "JA25P1M14", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
47
+ {"question_id": "JA25P1M15", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
48
+ {"question_id": "JA25P1M16", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
49
+ {"question_id": "JA25P2P01", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
50
+ {"question_id": "JA25P2P02", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
51
+ {"question_id": "JA25P2P03", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
52
+ {"question_id": "JA25P2P04", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": null, "parse_successful": false, "api_call_successful": true, "error": "Initial API call returned empty content. Re-prompt skipped.", "attempt": 1, "previous_raw_response_on_reprompt": null}
53
+ {"question_id": "JA25P2P05", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
54
+ {"question_id": "JA25P2P06", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
55
+ {"question_id": "JA25P2P07", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
56
+ {"question_id": "JA25P2P08", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
57
+ {"question_id": "JA25P2P09", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>5/3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "previous_raw_response_on_reprompt": "<answer>5/3</answer>"}
58
+ {"question_id": "JA25P2P10", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>11.8</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
59
+ {"question_id": "JA25P2P11", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>1.6</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
60
+ {"question_id": "JA25P2P12", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.331</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
61
+ {"question_id": "JA25P2P13", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
62
+ {"question_id": "JA25P2P14", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>4.8</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
63
+ {"question_id": "JA25P2P15", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>170</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
64
+ {"question_id": "JA25P2P16", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>32</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
65
+ {"question_id": "JA25P2C01", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
66
+ {"question_id": "JA25P2C02", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
67
+ {"question_id": "JA25P2C03", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
68
+ {"question_id": "JA25P2C04", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
69
+ {"question_id": "JA25P2C05", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>C,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
70
+ {"question_id": "JA25P2C06", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
71
+ {"question_id": "JA25P2C07", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
72
+ {"question_id": "JA25P2C08", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
73
+ {"question_id": "JA25P2C09", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>11</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
74
+ {"question_id": "JA25P2C10", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
75
+ {"question_id": "JA25P2C11", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>16</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
76
+ {"question_id": "JA25P2C12", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>4.17</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
77
+ {"question_id": "JA25P2C13", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.49</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
78
+ {"question_id": "JA25P2C14", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>105.5</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
79
+ {"question_id": "JA25P2C15", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>7.73</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
80
+ {"question_id": "JA25P2C16", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
81
+ {"question_id": "JA25P2M01", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
82
+ {"question_id": "JA25P2M02", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
83
+ {"question_id": "JA25P2M03", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
84
+ {"question_id": "JA25P2M04", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
85
+ {"question_id": "JA25P2M05", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
86
+ {"question_id": "JA25P2M06", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
87
+ {"question_id": "JA25P2M07", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
88
+ {"question_id": "JA25P2M08", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,C,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
89
+ {"question_id": "JA25P2M09", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.75</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
90
+ {"question_id": "JA25P2M10", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>6</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
91
+ {"question_id": "JA25P2M11", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
92
+ {"question_id": "JA25P2M12", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>-2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
93
+ {"question_id": "JA25P2M13", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>-2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
94
+ {"question_id": "JA25P2M14", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.25</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
95
+ {"question_id": "JA25P2M15", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
96
+ {"question_id": "JA25P2M16", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>21</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
results/openai_gpt-5_JEE_ADVANCED_2025_20250923_174647/summary.jsonl ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "JA25P1P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
2
+ {"question_id": "JA25P1P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
3
+ {"question_id": "JA25P1P03", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["A"], "attempt": 1}
4
+ {"question_id": "JA25P1P04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
5
+ {"question_id": "JA25P1P05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 1}
6
+ {"question_id": "JA25P1P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
7
+ {"question_id": "JA25P1P07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
8
+ {"question_id": "JA25P1P08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
9
+ {"question_id": "JA25P1P09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["23"], "ground_truth": [["21", "25"]], "attempt": 1}
10
+ {"question_id": "JA25P1P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
11
+ {"question_id": "JA25P1P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.5"], "ground_truth": ["0.5", "0.75"], "attempt": 1}
12
+ {"question_id": "JA25P1P12", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["38"], "ground_truth": [["75", "79"]], "attempt": 1}
13
+ {"question_id": "JA25P1P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["72"], "ground_truth": ["72"], "attempt": 1}
14
+ {"question_id": "JA25P1P14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
15
+ {"question_id": "JA25P1P15", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["A"], "attempt": 1}
16
+ {"question_id": "JA25P1P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
17
+ {"question_id": "JA25P1C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
18
+ {"question_id": "JA25P1C02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
19
+ {"question_id": "JA25P1C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
20
+ {"question_id": "JA25P1C04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["B"], "attempt": 1}
21
+ {"question_id": "JA25P1C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C"], "ground_truth": ["B", "C"], "attempt": 1}
22
+ {"question_id": "JA25P1C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
23
+ {"question_id": "JA25P1C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
24
+ {"question_id": "JA25P1C08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["100"], "ground_truth": ["100"], "attempt": 1}
25
+ {"question_id": "JA25P1C09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.236"], "ground_truth": [["2.2", "2.3"]], "attempt": 1}
26
+ {"question_id": "JA25P1C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-7.1"], "ground_truth": [["-7.2", "-7"]], "attempt": 1}
27
+ {"question_id": "JA25P1C11", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["30"], "ground_truth": [["-29.95", "-29.8"], ["29.8", "29.95"]], "attempt": 1}
28
+ {"question_id": "JA25P1C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["280"], "ground_truth": ["280"], "attempt": 1}
29
+ {"question_id": "JA25P1C13", "marks_awarded": 0, "evaluation_status": "skipped", "predicted_answer": "SKIP", "ground_truth": ["175"], "attempt": 1}
30
+ {"question_id": "JA25P1C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
31
+ {"question_id": "JA25P1C15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
32
+ {"question_id": "JA25P1C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
33
+ {"question_id": "JA25P1M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
34
+ {"question_id": "JA25P1M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
35
+ {"question_id": "JA25P1M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
36
+ {"question_id": "JA25P1M04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
37
+ {"question_id": "JA25P1M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
38
+ {"question_id": "JA25P1M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
39
+ {"question_id": "JA25P1M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
40
+ {"question_id": "JA25P1M08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105"], "ground_truth": ["105"], "attempt": 1}
41
+ {"question_id": "JA25P1M09", "marks_awarded": 0, "evaluation_status": "skipped", "predicted_answer": "SKIP", "ground_truth": [["1.15", "1.25"]], "attempt": 2}
42
+ {"question_id": "JA25P1M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["762"], "ground_truth": ["762"], "attempt": 1}
43
+ {"question_id": "JA25P1M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.4"], "ground_truth": [["2.35", "2.45"]], "attempt": 1}
44
+ {"question_id": "JA25P1M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["96"], "ground_truth": ["96"], "attempt": 1}
45
+ {"question_id": "JA25P1M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
46
+ {"question_id": "JA25P1M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
47
+ {"question_id": "JA25P1M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
48
+ {"question_id": "JA25P1M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
49
+ {"question_id": "JA25P2P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
50
+ {"question_id": "JA25P2P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
51
+ {"question_id": "JA25P2P03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
52
+ {"question_id": "JA25P2P04", "marks_awarded": 0, "evaluation_status": "failure_api_or_parse", "predicted_answer": null, "ground_truth": ["A", "B", "C", "D"], "attempt": 1}
53
+ {"question_id": "JA25P2P05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 1}
54
+ {"question_id": "JA25P2P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
55
+ {"question_id": "JA25P2P07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
56
+ {"question_id": "JA25P2P08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 1}
57
+ {"question_id": "JA25P2P09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": "5/3", "ground_truth": [["1.65", "1.67"]], "attempt": 2}
58
+ {"question_id": "JA25P2P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11.8"], "ground_truth": [["11.7", "11.9"]], "attempt": 1}
59
+ {"question_id": "JA25P2P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.6"], "ground_truth": ["1.6"], "attempt": 1}
60
+ {"question_id": "JA25P2P12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.331"], "ground_truth": [["2.3", "2.4"]], "attempt": 1}
61
+ {"question_id": "JA25P2P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.2"], "ground_truth": ["0.2"], "attempt": 1}
62
+ {"question_id": "JA25P2P14", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["4.8"], "ground_truth": ["1.2"], "attempt": 1}
63
+ {"question_id": "JA25P2P15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["170"], "ground_truth": [["167", "171"]], "attempt": 1}
64
+ {"question_id": "JA25P2P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["32"], "ground_truth": [["26", "33"]], "attempt": 1}
65
+ {"question_id": "JA25P2C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
66
+ {"question_id": "JA25P2C02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
67
+ {"question_id": "JA25P2C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
68
+ {"question_id": "JA25P2C04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
69
+ {"question_id": "JA25P2C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["C", "D"], "ground_truth": ["C", "D"], "attempt": 1}
70
+ {"question_id": "JA25P2C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 1}
71
+ {"question_id": "JA25P2C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
72
+ {"question_id": "JA25P2C08", "marks_awarded": -2, "evaluation_status": "incorrect_negative", "predicted_answer": ["A", "B", "C"], "ground_truth": ["B", "C"], "attempt": 1}
73
+ {"question_id": "JA25P2C09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11"], "ground_truth": [["10.85", "11.1"]], "attempt": 1}
74
+ {"question_id": "JA25P2C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": [["3.85", "4.15"]], "attempt": 1}
75
+ {"question_id": "JA25P2C11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["16"], "ground_truth": [["15.5", "16.5"]], "attempt": 1}
76
+ {"question_id": "JA25P2C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4.17"], "ground_truth": [["4", "4.25"]], "attempt": 1}
77
+ {"question_id": "JA25P2C13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.49"], "ground_truth": [["2.4", "2.55"]], "attempt": 1}
78
+ {"question_id": "JA25P2C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105.5"], "ground_truth": [["105.4", "105.6"]], "attempt": 1}
79
+ {"question_id": "JA25P2C15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["7.73"], "ground_truth": [["7.5", "7.8"]], "attempt": 1}
80
+ {"question_id": "JA25P2C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
81
+ {"question_id": "JA25P2M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
82
+ {"question_id": "JA25P2M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
83
+ {"question_id": "JA25P2M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
84
+ {"question_id": "JA25P2M04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
85
+ {"question_id": "JA25P2M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
86
+ {"question_id": "JA25P2M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
87
+ {"question_id": "JA25P2M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
88
+ {"question_id": "JA25P2M08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C", "D"], "ground_truth": ["B", "C", "D"], "attempt": 1}
89
+ {"question_id": "JA25P2M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.75"], "ground_truth": [["0.7", "0.8"]], "attempt": 1}
90
+ {"question_id": "JA25P2M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["6"], "ground_truth": ["6"], "attempt": 1}
91
+ {"question_id": "JA25P2M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.3"], "ground_truth": [["0.27", "0.33"]], "attempt": 1}
92
+ {"question_id": "JA25P2M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 1}
93
+ {"question_id": "JA25P2M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 1}
94
+ {"question_id": "JA25P2M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.25"], "ground_truth": [["0.2", "0.3"]], "attempt": 1}
95
+ {"question_id": "JA25P2M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
96
+ {"question_id": "JA25P2M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["21"], "ground_truth": ["21"], "attempt": 1}
results/openai_gpt-5_JEE_ADVANCED_2025_20250923_174647/summary.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: openai/gpt-5
2
+ **Exam Name:** JEE_ADVANCED
3
+ **Exam Year:** 2025
4
+ **Timestamp:** 20250923_174647
5
+ **Total Questions in Dataset:** 578
6
+ **Questions Filtered Out:** 482
7
+ **Total Questions Processed in this Run:** 96
8
+
9
+ ---
10
+
11
+ ## Exam Scoring Results
12
+ **Overall Score:** **318** / **360**
13
+ - **Fully Correct Answers:** 85
14
+ - **Incorrectly Answered (Choice Made):** 7
15
+ - **Skipped Questions:** 3
16
+ - **API/Parse Failures:** 1
17
+ - **Total Questions Processed:** 96
18
+
19
+ ### Detailed Score Calculation by Question Type
20
+ **Integer (42 questions):** 144 marks
21
+ *Calculation:* 38 Correct (+4) + 2 Incorrect (0) + 2 Skipped (0) = 148
22
+ **Mcq Multiple Correct (21 questions):** 73 marks
23
+ *Calculation:* 20 Correct (+4) + 1 Incorrect (-2) + 0 API/Parse Fail (-1) = 78
24
+ **Mcq Single Correct (33 questions):** 83 marks
25
+ *Calculation:* 29 Correct (+3) + 3 Incorrect (-1) + 1 API/Parse Fail (-1) = 83 (+8 due to some special questions)
26
+
27
+ ### Section Breakdown
28
+ | Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |
29
+ |---------------|-------|---------------|-------------------|------------------|---------|--------------------|
30
+ | Chemistry | 102 | 28 | 0 | 3 | 1 | 0 |
31
+ | Math | 116 | 31 | 0 | 0 | 1 | 0 |
32
+ | Physics | 100 | 26 | 0 | 4 | 1 | 1 |
results/openai_o3_JEE_ADVANCED_2025_20250630_175202/predictions.jsonl ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "JA25P1P01", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
2
+ {"question_id": "JA25P1P02", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
3
+ {"question_id": "JA25P1P03", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
4
+ {"question_id": "JA25P1P04", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
5
+ {"question_id": "JA25P1P05", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
6
+ {"question_id": "JA25P1P06", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
7
+ {"question_id": "JA25P1P07", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
8
+ {"question_id": "JA25P1P08", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
9
+ {"question_id": "JA25P1P09", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>16</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
10
+ {"question_id": "JA25P1P10", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
11
+ {"question_id": "JA25P1P11", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.5</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
12
+ {"question_id": "JA25P1P12", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>76</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
13
+ {"question_id": "JA25P1P13", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>72</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
14
+ {"question_id": "JA25P1P14", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>SKIP</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
15
+ {"question_id": "JA25P1P15", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>SKIP</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
16
+ {"question_id": "JA25P1P16", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
17
+ {"question_id": "JA25P1C01", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
18
+ {"question_id": "JA25P1C02", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
19
+ {"question_id": "JA25P1C03", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
20
+ {"question_id": "JA25P1C04", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
21
+ {"question_id": "JA25P1C05", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
22
+ {"question_id": "JA25P1C06", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
23
+ {"question_id": "JA25P1C07", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
24
+ {"question_id": "JA25P1C08", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>100</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
25
+ {"question_id": "JA25P1C09", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.24</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
26
+ {"question_id": "JA25P1C10", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>-7.1</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
27
+ {"question_id": "JA25P1C11", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>30</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
28
+ {"question_id": "JA25P1C12", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>280</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
29
+ {"question_id": "JA25P1C13", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>332</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
30
+ {"question_id": "JA25P1C14", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
31
+ {"question_id": "JA25P1C15", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
32
+ {"question_id": "JA25P1C16", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
33
+ {"question_id": "JA25P1M01", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
34
+ {"question_id": "JA25P1M02", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
35
+ {"question_id": "JA25P1M03", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
36
+ {"question_id": "JA25P1M04", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
37
+ {"question_id": "JA25P1M05", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
38
+ {"question_id": "JA25P1M06", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
39
+ {"question_id": "JA25P1M07", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
40
+ {"question_id": "JA25P1M08", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>105</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
41
+ {"question_id": "JA25P1M09", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>1.2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
42
+ {"question_id": "JA25P1M10", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>762</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
43
+ {"question_id": "JA25P1M11", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
44
+ {"question_id": "JA25P1M12", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>96</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
45
+ {"question_id": "JA25P1M13", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
46
+ {"question_id": "JA25P1M14", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
47
+ {"question_id": "JA25P1M15", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
48
+ {"question_id": "JA25P1M16", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
49
+ {"question_id": "JA25P2P01", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
50
+ {"question_id": "JA25P2P02", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
51
+ {"question_id": "JA25P2P03", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
52
+ {"question_id": "JA25P2P04", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
53
+ {"question_id": "JA25P2P05", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
54
+ {"question_id": "JA25P2P06", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
55
+ {"question_id": "JA25P2P07", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
56
+ {"question_id": "JA25P2P08", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
57
+ {"question_id": "JA25P2P09", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>SKIP</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 2, "previous_raw_response_on_reprompt": "<answer>5/3</answer>"}
58
+ {"question_id": "JA25P2P10", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>11.8</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
59
+ {"question_id": "JA25P2P11", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>1.6</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
60
+ {"question_id": "JA25P2P12", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.331</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
61
+ {"question_id": "JA25P2P13", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
62
+ {"question_id": "JA25P2P14", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
63
+ {"question_id": "JA25P2P15", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>170</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
64
+ {"question_id": "JA25P2P16", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>32</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
65
+ {"question_id": "JA25P2C01", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
66
+ {"question_id": "JA25P2C02", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
67
+ {"question_id": "JA25P2C03", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
68
+ {"question_id": "JA25P2C04", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
69
+ {"question_id": "JA25P2C05", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>C,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
70
+ {"question_id": "JA25P2C06", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
71
+ {"question_id": "JA25P2C07", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
72
+ {"question_id": "JA25P2C08", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
73
+ {"question_id": "JA25P2C09", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>11</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
74
+ {"question_id": "JA25P2C10", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>4</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
75
+ {"question_id": "JA25P2C11", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>16</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
76
+ {"question_id": "JA25P2C12", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": null, "parse_successful": false, "api_call_successful": true, "error": "Initial API call returned empty content. Re-prompt skipped.", "attempt": 1, "previous_raw_response_on_reprompt": null}
77
+ {"question_id": "JA25P2C13", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2.49</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
78
+ {"question_id": "JA25P2C14", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>105.5</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
79
+ {"question_id": "JA25P2C15", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>7.73</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
80
+ {"question_id": "JA25P2C16", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
81
+ {"question_id": "JA25P2M01", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
82
+ {"question_id": "JA25P2M02", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
83
+ {"question_id": "JA25P2M03", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
84
+ {"question_id": "JA25P2M04", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "raw_response": "<answer>A</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
85
+ {"question_id": "JA25P2M05", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,B</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
86
+ {"question_id": "JA25P2M06", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
87
+ {"question_id": "JA25P2M07", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>A,C</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
88
+ {"question_id": "JA25P2M08", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "raw_response": "<answer>B,C,D</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
89
+ {"question_id": "JA25P2M09", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.75</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
90
+ {"question_id": "JA25P2M10", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>6</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
91
+ {"question_id": "JA25P2M11", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
92
+ {"question_id": "JA25P2M12", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>-2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
93
+ {"question_id": "JA25P2M13", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>-2</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
94
+ {"question_id": "JA25P2M14", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>0.25</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
95
+ {"question_id": "JA25P2M15", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>3</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
96
+ {"question_id": "JA25P2M16", "subject": "Math", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "raw_response": "<answer>21</answer>", "parse_successful": true, "api_call_successful": true, "error": null, "attempt": 1, "previous_raw_response_on_reprompt": null}
results/openai_o3_JEE_ADVANCED_2025_20250630_175202/summary.jsonl ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"question_id": "JA25P1P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
2
+ {"question_id": "JA25P1P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
3
+ {"question_id": "JA25P1P03", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["D"], "ground_truth": ["A"], "attempt": 1}
4
+ {"question_id": "JA25P1P04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["A"], "ground_truth": ["C"], "attempt": 1}
5
+ {"question_id": "JA25P1P05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 1}
6
+ {"question_id": "JA25P1P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
7
+ {"question_id": "JA25P1P07", "marks_awarded": 1, "evaluation_status": "partial_1_of_2_plus", "predicted_answer": ["D"], "ground_truth": ["A", "D"], "attempt": 1}
8
+ {"question_id": "JA25P1P08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
9
+ {"question_id": "JA25P1P09", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["16"], "ground_truth": [["21", "25"]], "attempt": 1}
10
+ {"question_id": "JA25P1P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
11
+ {"question_id": "JA25P1P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.5"], "ground_truth": ["0.5", "0.75"], "attempt": 1}
12
+ {"question_id": "JA25P1P12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["76"], "ground_truth": [["75", "79"]], "attempt": 1}
13
+ {"question_id": "JA25P1P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["72"], "ground_truth": ["72"], "attempt": 1}
14
+ {"question_id": "JA25P1P14", "marks_awarded": 0, "evaluation_status": "skipped", "predicted_answer": "SKIP", "ground_truth": ["C"], "attempt": 1}
15
+ {"question_id": "JA25P1P15", "marks_awarded": 0, "evaluation_status": "skipped", "predicted_answer": "SKIP", "ground_truth": ["A"], "attempt": 1}
16
+ {"question_id": "JA25P1P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
17
+ {"question_id": "JA25P1C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
18
+ {"question_id": "JA25P1C02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
19
+ {"question_id": "JA25P1C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
20
+ {"question_id": "JA25P1C04", "marks_awarded": -1, "evaluation_status": "incorrect", "predicted_answer": ["C"], "ground_truth": ["B"], "attempt": 1}
21
+ {"question_id": "JA25P1C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C"], "ground_truth": ["B", "C"], "attempt": 1}
22
+ {"question_id": "JA25P1C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
23
+ {"question_id": "JA25P1C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
24
+ {"question_id": "JA25P1C08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["100"], "ground_truth": ["100"], "attempt": 1}
25
+ {"question_id": "JA25P1C09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.24"], "ground_truth": [["2.2", "2.3"]], "attempt": 1}
26
+ {"question_id": "JA25P1C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-7.1"], "ground_truth": [["-7.2", "-7"]], "attempt": 1}
27
+ {"question_id": "JA25P1C11", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["30"], "ground_truth": [["-29.95", "-29.8"], ["29.8", "29.95"]], "attempt": 1}
28
+ {"question_id": "JA25P1C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["280"], "ground_truth": ["280"], "attempt": 1}
29
+ {"question_id": "JA25P1C13", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["332"], "ground_truth": ["175"], "attempt": 1}
30
+ {"question_id": "JA25P1C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
31
+ {"question_id": "JA25P1C15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
32
+ {"question_id": "JA25P1C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
33
+ {"question_id": "JA25P1M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
34
+ {"question_id": "JA25P1M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
35
+ {"question_id": "JA25P1M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
36
+ {"question_id": "JA25P1M04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
37
+ {"question_id": "JA25P1M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
38
+ {"question_id": "JA25P1M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
39
+ {"question_id": "JA25P1M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "D"], "ground_truth": ["A", "D"], "attempt": 1}
40
+ {"question_id": "JA25P1M08", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105"], "ground_truth": ["105"], "attempt": 1}
41
+ {"question_id": "JA25P1M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.2"], "ground_truth": [["1.15", "1.25"]], "attempt": 1}
42
+ {"question_id": "JA25P1M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["762"], "ground_truth": ["762"], "attempt": 1}
43
+ {"question_id": "JA25P1M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.4"], "ground_truth": [["2.35", "2.45"]], "attempt": 1}
44
+ {"question_id": "JA25P1M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["96"], "ground_truth": ["96"], "attempt": 1}
45
+ {"question_id": "JA25P1M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
46
+ {"question_id": "JA25P1M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
47
+ {"question_id": "JA25P1M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
48
+ {"question_id": "JA25P1M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
49
+ {"question_id": "JA25P2P01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
50
+ {"question_id": "JA25P2P02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
51
+ {"question_id": "JA25P2P03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
52
+ {"question_id": "JA25P2P04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["A", "B", "C", "D"], "attempt": 1}
53
+ {"question_id": "JA25P2P05", "marks_awarded": 2, "evaluation_status": "partial_2_of_3_plus", "predicted_answer": ["A", "C"], "ground_truth": ["A", "B", "C"], "attempt": 1}
54
+ {"question_id": "JA25P2P06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
55
+ {"question_id": "JA25P2P07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
56
+ {"question_id": "JA25P2P08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B", "C"], "ground_truth": ["A", "B", "C"], "attempt": 1}
57
+ {"question_id": "JA25P2P09", "marks_awarded": 0, "evaluation_status": "skipped", "predicted_answer": "SKIP", "ground_truth": [["1.65", "1.67"]], "attempt": 2}
58
+ {"question_id": "JA25P2P10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11.8"], "ground_truth": [["11.7", "11.9"]], "attempt": 1}
59
+ {"question_id": "JA25P2P11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["1.6"], "ground_truth": ["1.6"], "attempt": 1}
60
+ {"question_id": "JA25P2P12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.331"], "ground_truth": [["2.3", "2.4"]], "attempt": 1}
61
+ {"question_id": "JA25P2P13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.2"], "ground_truth": ["0.2"], "attempt": 1}
62
+ {"question_id": "JA25P2P14", "marks_awarded": 0, "evaluation_status": "incorrect", "predicted_answer": ["2.4"], "ground_truth": ["1.2"], "attempt": 1}
63
+ {"question_id": "JA25P2P15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["170"], "ground_truth": [["167", "171"]], "attempt": 1}
64
+ {"question_id": "JA25P2P16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["32"], "ground_truth": [["26", "33"]], "attempt": 1}
65
+ {"question_id": "JA25P2C01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
66
+ {"question_id": "JA25P2C02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
67
+ {"question_id": "JA25P2C03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["D"], "ground_truth": ["D"], "attempt": 1}
68
+ {"question_id": "JA25P2C04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
69
+ {"question_id": "JA25P2C05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["C", "D"], "ground_truth": ["C", "D"], "attempt": 1}
70
+ {"question_id": "JA25P2C06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "D"], "ground_truth": ["B", "D"], "attempt": 1}
71
+ {"question_id": "JA25P2C07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
72
+ {"question_id": "JA25P2C08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C"], "ground_truth": ["B", "C"], "attempt": 1}
73
+ {"question_id": "JA25P2C09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["11"], "ground_truth": [["10.85", "11.1"]], "attempt": 1}
74
+ {"question_id": "JA25P2C10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4"], "ground_truth": [["3.85", "4.15"]], "attempt": 1}
75
+ {"question_id": "JA25P2C11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["16"], "ground_truth": [["15.5", "16.5"]], "attempt": 1}
76
+ {"question_id": "JA25P2C12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["4.2"], "ground_truth": [["4", "4.25"]], "attempt": 1}
77
+ {"question_id": "JA25P2C13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2.49"], "ground_truth": [["2.4", "2.55"]], "attempt": 1}
78
+ {"question_id": "JA25P2C14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["105.5"], "ground_truth": [["105.4", "105.6"]], "attempt": 1}
79
+ {"question_id": "JA25P2C15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["7.73"], "ground_truth": [["7.5", "7.8"]], "attempt": 1}
80
+ {"question_id": "JA25P2C16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["2"], "ground_truth": ["2"], "attempt": 1}
81
+ {"question_id": "JA25P2M01", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
82
+ {"question_id": "JA25P2M02", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["B"], "ground_truth": ["B"], "attempt": 1}
83
+ {"question_id": "JA25P2M03", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["C"], "ground_truth": ["C"], "attempt": 1}
84
+ {"question_id": "JA25P2M04", "marks_awarded": 3, "evaluation_status": "correct", "predicted_answer": ["A"], "ground_truth": ["A"], "attempt": 1}
85
+ {"question_id": "JA25P2M05", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "B"], "ground_truth": ["A", "B"], "attempt": 1}
86
+ {"question_id": "JA25P2M06", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
87
+ {"question_id": "JA25P2M07", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["A", "C"], "ground_truth": ["A", "C"], "attempt": 1}
88
+ {"question_id": "JA25P2M08", "marks_awarded": 4, "evaluation_status": "correct_full", "predicted_answer": ["B", "C", "D"], "ground_truth": ["B", "C", "D"], "attempt": 1}
89
+ {"question_id": "JA25P2M09", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.75"], "ground_truth": [["0.7", "0.8"]], "attempt": 1}
90
+ {"question_id": "JA25P2M10", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["6"], "ground_truth": ["6"], "attempt": 1}
91
+ {"question_id": "JA25P2M11", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.3"], "ground_truth": [["0.27", "0.33"]], "attempt": 1}
92
+ {"question_id": "JA25P2M12", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 1}
93
+ {"question_id": "JA25P2M13", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["-2"], "ground_truth": ["-2"], "attempt": 1}
94
+ {"question_id": "JA25P2M14", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["0.25"], "ground_truth": [["0.2", "0.3"]], "attempt": 1}
95
+ {"question_id": "JA25P2M15", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["3"], "ground_truth": ["3"], "attempt": 1}
96
+ {"question_id": "JA25P2M16", "marks_awarded": 4, "evaluation_status": "correct", "predicted_answer": ["21"], "ground_truth": ["21"], "attempt": 1}
results/openai_o3_JEE_ADVANCED_2025_20250630_175202/summary.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Results: openai/o3
2
+ **Exam Name:** JEE_ADVANCED
3
+ **Exam Year:** 2025
4
+ **Timestamp:** 20250630_175202
5
+ **Total Questions in Dataset:** 578
6
+ **Questions Filtered Out:** 482
7
+ **Total Questions Processed in this Run:** 96
8
+
9
+ ---
10
+
11
+ ## Exam Scoring Results
12
+ **Overall Score:** **315** / **360**
13
+ - **Fully Correct Answers:** 84
14
+ - **Partially Correct Answers:** 2
15
+ - **Incorrectly Answered (Choice Made):** 7
16
+ - **Skipped Questions:** 3
17
+ - **API/Parse Failures:** 0
18
+ - **Total Questions Processed:** 96
19
+
20
+ ### Detailed Score Calculation by Question Type
21
+ **Integer (42 questions):** 144 marks
22
+ *Calculation:* 37 Correct (+4) + 4 Incorrect (0) + 1 Skipped (0) + 0 API/Parse Fail (0) = 148
23
+ **Mcq Multiple Correct (21 questions):** 79 marks
24
+ *Calculation:* 19 Correct (+4) + 2 Partial = 79
25
+ **Mcq Single Correct (33 questions):** 88 marks
26
+ *Calculation:* 28 Correct (+3) + 3 Incorrect (-1) + 2 Skipped (0) = 81(+7 some questions have full marks 4)
27
+
28
+ ### Section Breakdown
29
+ | Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |
30
+ |---------------|-------|---------------|-------------------|------------------|---------|--------------------|
31
+ | Chemistry | 108 | 29 | 0 | 3 | 0 | 0 |
32
+ | Math | 120 | 32 | 0 | 0 | 0 | 0 |
33
+ | Physics | 87 | 23 | 2 | 4 | 3 | 0 |
scripts/aggregate_runs.py ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Aggregate results from multiple benchmark runs of the same model/exam/year.
2
+
3
+ Computes mean, std dev, 95% CI, min/max scores, and per-question stability.
4
+
5
+ Usage:
6
+ uv run python scripts/aggregate_runs.py results/model_EXAM_YEAR_*/
7
+ uv run python scripts/aggregate_runs.py --pattern "openai_o3_JEE_ADVANCED_2025"
8
+ """
9
+
10
+ import argparse
11
+ import glob
12
+ import json
13
+ import math
14
+ import os
15
+ import sys
16
+ from collections import defaultdict
17
+
18
+
19
+ def load_summary_jsonl(path: str) -> list[dict]:
20
+ """Load all records from a summary.jsonl file."""
21
+ records = []
22
+ with open(path, "r") as f:
23
+ for line in f:
24
+ line = line.strip()
25
+ if line:
26
+ records.append(json.loads(line))
27
+ return records
28
+
29
+
30
+ def compute_run_stats(records: list[dict]) -> dict:
31
+ """Compute aggregate stats for a single run."""
32
+ total_score = sum(r.get("marks_awarded", 0) for r in records)
33
+ correct = sum(1 for r in records if r.get("evaluation_status") in ("correct", "correct_full"))
34
+ incorrect = sum(1 for r in records if r.get("evaluation_status") in ("incorrect", "incorrect_negative"))
35
+ skipped = sum(1 for r in records if r.get("evaluation_status") == "skipped")
36
+ failures = sum(1 for r in records if r.get("evaluation_status") in ("failure_api_or_parse", "failure_unexpected_type"))
37
+ partial = sum(1 for r in records if r.get("evaluation_status", "").startswith("partial_"))
38
+ return {
39
+ "score": total_score,
40
+ "correct": correct,
41
+ "partial": partial,
42
+ "incorrect": incorrect,
43
+ "skipped": skipped,
44
+ "failures": failures,
45
+ "num_questions": len(records),
46
+ }
47
+
48
+
49
+ def aggregate_runs(run_dirs: list[str]) -> dict:
50
+ """Aggregate stats across multiple runs."""
51
+ if not run_dirs:
52
+ return {"error": "No run directories provided."}
53
+
54
+ all_run_stats = []
55
+ per_question_answers: dict[str, list] = defaultdict(list)
56
+
57
+ for run_dir in run_dirs:
58
+ summary_path = os.path.join(run_dir, "summary.jsonl")
59
+ if not os.path.exists(summary_path):
60
+ print(f"Warning: {summary_path} not found, skipping.", file=sys.stderr)
61
+ continue
62
+
63
+ records = load_summary_jsonl(summary_path)
64
+ stats = compute_run_stats(records)
65
+ stats["run_dir"] = run_dir
66
+ all_run_stats.append(stats)
67
+
68
+ for r in records:
69
+ qid = r.get("question_id")
70
+ if qid:
71
+ per_question_answers[qid].append({
72
+ "predicted_answer": r.get("predicted_answer"),
73
+ "evaluation_status": r.get("evaluation_status"),
74
+ "marks_awarded": r.get("marks_awarded", 0),
75
+ })
76
+
77
+ if not all_run_stats:
78
+ return {"error": "No valid runs found."}
79
+
80
+ scores = [s["score"] for s in all_run_stats]
81
+ n = len(scores)
82
+ mean_score = sum(scores) / n
83
+ if n > 1:
84
+ variance = sum((s - mean_score) ** 2 for s in scores) / (n - 1)
85
+ std_dev = math.sqrt(variance)
86
+ # 95% CI using t-distribution approximation (for small n, use 2.0 as rough multiplier)
87
+ t_multiplier = 2.0 if n < 30 else 1.96
88
+ ci_half = t_multiplier * std_dev / math.sqrt(n)
89
+ else:
90
+ std_dev = 0.0
91
+ ci_half = 0.0
92
+
93
+ # Per-question stability
94
+ question_stability = {}
95
+ for qid, answers in per_question_answers.items():
96
+ statuses = [a["evaluation_status"] for a in answers]
97
+ most_common = max(set(statuses), key=statuses.count)
98
+ agreement_rate = statuses.count(most_common) / len(statuses)
99
+ question_stability[qid] = {
100
+ "agreement_rate": round(agreement_rate, 3),
101
+ "dominant_status": most_common,
102
+ "all_statuses": statuses,
103
+ "scores": [a["marks_awarded"] for a in answers],
104
+ }
105
+
106
+ # Unstable questions (agreement < 100%)
107
+ unstable = {qid: v for qid, v in question_stability.items() if v["agreement_rate"] < 1.0}
108
+
109
+ return {
110
+ "num_runs": n,
111
+ "scores": scores,
112
+ "mean_score": round(mean_score, 2),
113
+ "std_dev": round(std_dev, 2),
114
+ "ci_95_lower": round(mean_score - ci_half, 2),
115
+ "ci_95_upper": round(mean_score + ci_half, 2),
116
+ "min_score": min(scores),
117
+ "max_score": max(scores),
118
+ "per_run": all_run_stats,
119
+ "num_questions": all_run_stats[0]["num_questions"] if all_run_stats else 0,
120
+ "unstable_questions": len(unstable),
121
+ "total_questions": len(question_stability),
122
+ "question_stability": question_stability,
123
+ }
124
+
125
+
126
+ def print_report(result: dict):
127
+ """Print a human-readable report."""
128
+ if "error" in result:
129
+ print(f"Error: {result['error']}")
130
+ return
131
+
132
+ print(f"# Multi-Run Aggregation Report")
133
+ print(f"\n**Runs:** {result['num_runs']}")
134
+ print(f"**Questions per run:** {result['num_questions']}")
135
+ print(f"\n## Score Summary")
136
+ print(f"| Metric | Value |")
137
+ print(f"|--------|-------|")
138
+ print(f"| Mean | {result['mean_score']} |")
139
+ print(f"| Std Dev | {result['std_dev']} |")
140
+ print(f"| 95% CI | [{result['ci_95_lower']}, {result['ci_95_upper']}] |")
141
+ print(f"| Min | {result['min_score']} |")
142
+ print(f"| Max | {result['max_score']} |")
143
+ print(f"| Scores | {result['scores']} |")
144
+
145
+ print(f"\n## Per-Question Stability")
146
+ print(f"- **Stable questions:** {result['total_questions'] - result['unstable_questions']}/{result['total_questions']}")
147
+ print(f"- **Unstable questions:** {result['unstable_questions']}/{result['total_questions']}")
148
+
149
+ if result["unstable_questions"] > 0:
150
+ print(f"\n### Unstable Questions (different answers across runs)")
151
+ print(f"| Question ID | Agreement | Dominant Status | Scores |")
152
+ print(f"|-------------|-----------|-----------------|--------|")
153
+ for qid, info in sorted(result["question_stability"].items()):
154
+ if info["agreement_rate"] < 1.0:
155
+ print(f"| {qid} | {info['agreement_rate']:.0%} | {info['dominant_status']} | {info['scores']} |")
156
+
157
+
158
+ def main():
159
+ parser = argparse.ArgumentParser(
160
+ description="Aggregate results from multiple benchmark runs."
161
+ )
162
+ parser.add_argument(
163
+ "run_dirs",
164
+ nargs="*",
165
+ help="Paths to result directories to aggregate.",
166
+ )
167
+ parser.add_argument(
168
+ "--pattern",
169
+ type=str,
170
+ help="Glob pattern to match result directories (e.g., 'openai_o3_JEE_ADVANCED_2025').",
171
+ )
172
+ parser.add_argument(
173
+ "--results-dir",
174
+ type=str,
175
+ default="results",
176
+ help="Base results directory (default: results).",
177
+ )
178
+ parser.add_argument(
179
+ "--output",
180
+ type=str,
181
+ help="Output JSON file path for aggregated results.",
182
+ )
183
+ args = parser.parse_args()
184
+
185
+ run_dirs = list(args.run_dirs) if args.run_dirs else []
186
+
187
+ if args.pattern:
188
+ pattern = os.path.join(args.results_dir, f"*{args.pattern}*")
189
+ matched = sorted(glob.glob(pattern))
190
+ run_dirs.extend(d for d in matched if os.path.isdir(d))
191
+
192
+ if not run_dirs:
193
+ parser.error("No run directories specified. Provide paths or use --pattern.")
194
+
195
+ run_dirs = sorted(set(run_dirs))
196
+ print(f"Aggregating {len(run_dirs)} runs...", file=sys.stderr)
197
+
198
+ result = aggregate_runs(run_dirs)
199
+ print_report(result)
200
+
201
+ if args.output:
202
+ # Remove per-question detail for compact output unless needed
203
+ output_data = {k: v for k, v in result.items() if k != "question_stability"}
204
+ with open(args.output, "w") as f:
205
+ json.dump(output_data, f, indent=2)
206
+ print(f"\nResults saved to {args.output}", file=sys.stderr)
207
+
208
+
209
+ if __name__ == "__main__":
210
+ main()
scripts/generate_leaderboard.py ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Generate a cross-model leaderboard from benchmark results.
2
+
3
+ Reads all result directories, computes scores, and outputs a Markdown
4
+ leaderboard table grouped by exam+year.
5
+
6
+ Usage:
7
+ uv run python scripts/generate_leaderboard.py
8
+ uv run python scripts/generate_leaderboard.py --results-dir results --min-questions 10
9
+ uv run python scripts/generate_leaderboard.py --output leaderboard.json
10
+ """
11
+
12
+ import argparse
13
+ import json
14
+ import os
15
+ import re
16
+ import sys
17
+ from collections import defaultdict
18
+
19
+
20
+ # Known exam names that may contain underscores
21
+ KNOWN_EXAMS = {"JEE_ADVANCED", "JEE_MAIN", "NEET"}
22
+
23
+
24
+ def parse_result_dirname(dirname: str) -> dict | None:
25
+ """Parse a result directory name into model, exam, year, timestamp.
26
+
27
+ Format: {model_id}_{EXAM_NAME}_{YEAR}_{YYYYMMDD}_{HHMMSS}
28
+ where model_id has slashes replaced with underscores.
29
+
30
+ Returns dict with keys: model, exam, year, timestamp, or None if unparseable.
31
+ """
32
+ parts = dirname.split("_")
33
+ if len(parts) < 5:
34
+ return None
35
+
36
+ # Last 2 parts are timestamp
37
+ timestamp = "_".join(parts[-2:])
38
+
39
+ # Validate timestamp format
40
+ if not (len(parts[-2]) == 8 and parts[-2].isdigit() and
41
+ len(parts[-1]) == 6 and parts[-1].isdigit()):
42
+ return None
43
+
44
+ # Year is parts[-3]
45
+ year = parts[-3]
46
+ if not (len(year) == 4 and year.isdigit()):
47
+ return None
48
+
49
+ # Exam name: check if it's a 2-part exam (JEE_ADVANCED, JEE_MAIN)
50
+ if len(parts) >= 6 and parts[-4] in ("ADVANCED", "MAIN"):
51
+ exam = parts[-5] + "_" + parts[-4]
52
+ model_parts = parts[:-5]
53
+ else:
54
+ exam = parts[-4]
55
+ model_parts = parts[:-4]
56
+
57
+ if exam not in KNOWN_EXAMS:
58
+ return None
59
+
60
+ if not model_parts:
61
+ return None
62
+
63
+ # Reconstruct model name: first underscore -> slash (provider/model)
64
+ model_name = "_".join(model_parts)
65
+ first_underscore = model_name.find("_")
66
+ if first_underscore > 0:
67
+ model_name = model_name[:first_underscore] + "/" + model_name[first_underscore + 1:]
68
+
69
+ return {
70
+ "model": model_name,
71
+ "exam": exam,
72
+ "year": year,
73
+ "timestamp": timestamp,
74
+ }
75
+
76
+
77
+ def load_summary_jsonl(filepath: str) -> list[dict]:
78
+ """Load records from a summary.jsonl file."""
79
+ records = []
80
+ with open(filepath, "r") as f:
81
+ for line in f:
82
+ line = line.strip()
83
+ if line:
84
+ records.append(json.loads(line))
85
+ return records
86
+
87
+
88
+ def extract_max_score_from_md(filepath: str) -> int | None:
89
+ """Extract max possible score from summary.md's Overall Score line.
90
+
91
+ Handles both formats:
92
+ - New: **Overall Score:** **315** / **360**
93
+ - Old: **Overall Score:** **727 / 800**
94
+ """
95
+ try:
96
+ with open(filepath, "r") as f:
97
+ for line in f:
98
+ # New format: **315** / **360**
99
+ match = re.search(r"\*\*Overall Score:\*\*\s+\*\*\d+\*\*\s*/\s*\*\*(\d+)\*\*", line)
100
+ if match:
101
+ return int(match.group(1))
102
+ # Old format: **727 / 800**
103
+ match = re.search(r"\*\*Overall Score:\*\*\s+\*\*\d+\s*/\s*(\d+)\*\*", line)
104
+ if match:
105
+ return int(match.group(1))
106
+ # Oldest format: **322** (Max score is 360)
107
+ match = re.search(r"\(Max score is (\d+)\)", line)
108
+ if match:
109
+ return int(match.group(1))
110
+ except (OSError, ValueError):
111
+ pass
112
+ return None
113
+
114
+
115
+ def compute_stats(records: list[dict]) -> dict:
116
+ """Compute aggregate stats from summary.jsonl records."""
117
+ total_score = sum(r.get("marks_awarded", 0) for r in records)
118
+ correct = sum(1 for r in records if r.get("evaluation_status") in ("correct", "correct_full"))
119
+ partial = sum(1 for r in records if r.get("evaluation_status", "").startswith("partial_"))
120
+ incorrect = sum(1 for r in records if r.get("evaluation_status") in ("incorrect", "incorrect_negative"))
121
+ skipped = sum(1 for r in records if r.get("evaluation_status") == "skipped")
122
+ failures = sum(1 for r in records if r.get("evaluation_status") in (
123
+ "failure_api_or_parse", "failure_unexpected_type", "error_bad_ground_truth"))
124
+
125
+ return {
126
+ "score": total_score,
127
+ "correct": correct,
128
+ "partial": partial,
129
+ "incorrect": incorrect,
130
+ "skipped": skipped,
131
+ "failures": failures,
132
+ "num_questions": len(records),
133
+ }
134
+
135
+
136
+ def load_summary_json(filepath: str) -> dict | None:
137
+ """Load stats from an old-format summary.json file."""
138
+ try:
139
+ with open(filepath, "r") as f:
140
+ data = json.load(f)
141
+ return {
142
+ "score": data.get("overall_score", 0),
143
+ "correct": data.get("overall_correct", data.get("overall_correct_full", 0)),
144
+ "partial": data.get("overall_partial_correct", 0),
145
+ "incorrect": data.get("overall_incorrect", data.get("overall_incorrect_choice", 0)),
146
+ "skipped": data.get("overall_skipped", 0),
147
+ "failures": data.get("overall_api_parse_failures", 0),
148
+ "num_questions": data.get("total_questions_processed", 0),
149
+ }
150
+ except (OSError, json.JSONDecodeError, KeyError):
151
+ return None
152
+
153
+
154
+ def scan_results(results_dir: str, min_questions: int) -> list[dict]:
155
+ """Scan result directories and collect stats."""
156
+ entries = []
157
+
158
+ if not os.path.isdir(results_dir):
159
+ print(f"Results directory not found: {results_dir}", file=sys.stderr)
160
+ return entries
161
+
162
+ for dirname in sorted(os.listdir(results_dir)):
163
+ dirpath = os.path.join(results_dir, dirname)
164
+ if not os.path.isdir(dirpath):
165
+ continue
166
+
167
+ parsed = parse_result_dirname(dirname)
168
+ if not parsed:
169
+ continue
170
+
171
+ # Try summary.jsonl first (new format), then summary.json (old format)
172
+ stats = None
173
+ summary_jsonl_path = os.path.join(dirpath, "summary.jsonl")
174
+ summary_json_path = os.path.join(dirpath, "summary.json")
175
+
176
+ if os.path.exists(summary_jsonl_path):
177
+ records = load_summary_jsonl(summary_jsonl_path)
178
+ if records:
179
+ stats = compute_stats(records)
180
+ elif os.path.exists(summary_json_path):
181
+ stats = load_summary_json(summary_json_path)
182
+
183
+ if not stats or stats.get("num_questions", 0) < min_questions:
184
+ continue
185
+
186
+ # Try to get max score from summary.md
187
+ md_path = os.path.join(dirpath, "summary.md")
188
+ max_score = extract_max_score_from_md(md_path)
189
+
190
+ entry = {
191
+ **parsed,
192
+ **stats,
193
+ "max_score": max_score,
194
+ "result_dir": dirname,
195
+ }
196
+ entries.append(entry)
197
+
198
+ return entries
199
+
200
+
201
+ def generate_markdown(entries: list[dict]) -> str:
202
+ """Generate a Markdown leaderboard table grouped by exam+year."""
203
+ if not entries:
204
+ return "# Benchmark Leaderboard\n\nNo results found.\n"
205
+
206
+ # Group by exam+year
207
+ groups: dict[str, list[dict]] = defaultdict(list)
208
+ for e in entries:
209
+ key = f"{e['exam']}_{e['year']}"
210
+ groups[key].append(e)
211
+
212
+ lines = ["# Benchmark Leaderboard\n"]
213
+
214
+ for group_key in sorted(groups.keys()):
215
+ group_entries = groups[group_key]
216
+ # Sort by score descending
217
+ group_entries.sort(key=lambda x: x["score"], reverse=True)
218
+
219
+ exam_display = group_key.replace("_", " ").replace("JEE ADVANCED", "JEE Advanced").replace("JEE MAIN", "JEE Main")
220
+ lines.append(f"\n## {exam_display}\n")
221
+ lines.append("| Rank | Model | Score | Max | % | Correct | Partial | Incorrect | Skipped | Failures |")
222
+ lines.append("|------|-------|-------|-----|---|---------|---------|-----------|---------|----------|")
223
+
224
+ for rank, e in enumerate(group_entries, 1):
225
+ max_score = e.get("max_score") or "?"
226
+ if isinstance(max_score, int) and max_score > 0:
227
+ pct = f"{e['score'] / max_score * 100:.1f}%"
228
+ else:
229
+ pct = "?"
230
+ lines.append(
231
+ f"| {rank} | {e['model']} | {e['score']} | {max_score} | {pct} "
232
+ f"| {e['correct']} | {e['partial']} | {e['incorrect']} | {e['skipped']} | {e['failures']} |"
233
+ )
234
+
235
+ lines.append("")
236
+ return "\n".join(lines)
237
+
238
+
239
+ def main():
240
+ parser = argparse.ArgumentParser(description="Generate benchmark leaderboard.")
241
+ parser.add_argument(
242
+ "--results-dir",
243
+ type=str,
244
+ default="results",
245
+ help="Path to the results directory (default: results).",
246
+ )
247
+ parser.add_argument(
248
+ "--min-questions",
249
+ type=int,
250
+ default=10,
251
+ help="Minimum questions to include a run (default: 10, filters incomplete runs).",
252
+ )
253
+ parser.add_argument(
254
+ "--output",
255
+ type=str,
256
+ help="Output path for leaderboard.json.",
257
+ )
258
+ args = parser.parse_args()
259
+
260
+ entries = scan_results(args.results_dir, args.min_questions)
261
+
262
+ if not entries:
263
+ print("No valid results found.", file=sys.stderr)
264
+ sys.exit(1)
265
+
266
+ md = generate_markdown(entries)
267
+ print(md)
268
+
269
+ if args.output:
270
+ with open(args.output, "w") as f:
271
+ json.dump(entries, f, indent=2)
272
+ print(f"\nJSON output saved to {args.output}", file=sys.stderr)
273
+
274
+
275
+ if __name__ == "__main__":
276
+ main()
src/__init__.py ADDED
File without changes
src/benchmark_runner.py ADDED
@@ -0,0 +1,923 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import argparse
2
+ import subprocess
3
+ import yaml
4
+ import os
5
+ import json
6
+ import logging
7
+ import datetime # Added for timestamp
8
+ from typing import Dict, Any, List, Set, Tuple # Added for type hinting
9
+ from datasets import Dataset, Features, Value, Image as HFImage
10
+ from tqdm import tqdm
11
+ from PIL import Image as PILImage # Import PIL for type hinting
12
+
13
+ # ANSI escape codes for colors
14
+ GREEN = '\033[92m'
15
+ RED = '\033[91m'
16
+ RESET = '\033[0m'
17
+ YELLOW = '\033[93m' # For skipped
18
+ CYAN = '\033[96m' # For parse failures
19
+ MAGENTA = '\033[95m' # For API failures
20
+
21
+ # Import local modules
22
+ from utils import load_api_key
23
+ from llm_interface import get_openrouter_prediction
24
+ # Import evaluation functions
25
+ from evaluation import calculate_exam_scores, calculate_single_question_score_details
26
+
27
+ # Configure logging
28
+ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
29
+
30
+
31
+ def get_git_sha() -> str | None:
32
+ """Returns the current git commit SHA, or None if not in a git repo."""
33
+ try:
34
+ result = subprocess.run(
35
+ ["git", "rev-parse", "HEAD"],
36
+ capture_output=True, text=True, timeout=5
37
+ )
38
+ if result.returncode == 0:
39
+ return result.stdout.strip()
40
+ except Exception:
41
+ pass
42
+ return None
43
+
44
+
45
+ def get_available_models(config_path: str) -> List[str]:
46
+ """Loads models from the benchmark configuration YAML file."""
47
+ try:
48
+ with open(config_path, 'r') as f:
49
+ config = yaml.safe_load(f)
50
+ models = config.get("openrouter_models", [])
51
+ if not models:
52
+ logging.warning(f"No models found in {config_path} under 'openrouter_models'.")
53
+ return models
54
+ except FileNotFoundError:
55
+ logging.error(f"Configuration file not found at {config_path} for model retrieval.")
56
+ return []
57
+ except yaml.YAMLError as e:
58
+ logging.error(f"Error parsing configuration file {config_path} for model retrieval: {e}")
59
+ return []
60
+ except Exception as e:
61
+ logging.error(f"Unexpected error retrieving models from {config_path}: {e}")
62
+ return []
63
+
64
+ def get_available_exam_details(metadata_path: str) -> Tuple[List[str], List[str]]:
65
+ """Reads metadata.jsonl to get unique exam names and years."""
66
+ exam_names: Set[str] = set()
67
+ exam_years: Set[str] = set()
68
+ try:
69
+ with open(metadata_path, 'r') as f:
70
+ for line in f:
71
+ try:
72
+ data = json.loads(line)
73
+ if 'exam_name' in data:
74
+ exam_names.add(data['exam_name'])
75
+ if 'exam_year' in data:
76
+ exam_years.add(str(data['exam_year']))
77
+ except json.JSONDecodeError:
78
+ logging.warning(f"Skipping malformed JSON line in {metadata_path}: {line.strip()}")
79
+
80
+ sorted_exam_names = sorted(list(exam_names))
81
+ sorted_exam_years = sorted(list(exam_years))
82
+
83
+ if not sorted_exam_names:
84
+ logging.warning(f"No exam names found in {metadata_path}.")
85
+ if not sorted_exam_years:
86
+ logging.warning(f"No exam years found in {metadata_path}.")
87
+
88
+ return sorted_exam_names, sorted_exam_years
89
+ except FileNotFoundError:
90
+ logging.error(f"Metadata file not found at {metadata_path}.")
91
+ return [], []
92
+ except Exception as e:
93
+ logging.error(f"Unexpected error reading or parsing {metadata_path}: {e}")
94
+ return [], []
95
+
96
+ def load_config(config_path: str) -> dict:
97
+ """Loads the benchmark configuration from a YAML file."""
98
+ try:
99
+ with open(config_path, 'r') as f:
100
+ config = yaml.safe_load(f)
101
+ logging.info(f"Configuration loaded from {config_path}")
102
+ return config
103
+ except FileNotFoundError:
104
+ logging.error(f"Configuration file not found at {config_path}")
105
+ raise
106
+ except yaml.YAMLError as e:
107
+ logging.error(f"Error parsing configuration file {config_path}: {e}")
108
+ raise
109
+
110
+ def append_prediction(result: Dict[str, Any], filepath: str):
111
+ """Appends a single prediction result to a JSONL file."""
112
+ # Create a copy to avoid modifying the original dict that might be used elsewhere
113
+ # and remove evaluation-specific fields before saving to predictions.jsonl
114
+ prediction_data = result.copy()
115
+ prediction_data.pop('marks_awarded', None)
116
+ prediction_data.pop('evaluation_status', None)
117
+ prediction_data.pop('predicted_answer', None) # Remove predicted_answer
118
+ prediction_data.pop('ground_truth', None) # Remove ground_truth
119
+ try:
120
+ with open(filepath, 'a') as f:
121
+ json.dump(prediction_data, f)
122
+ f.write('\n')
123
+ except IOError as e:
124
+ logging.error(f"Failed to append prediction to {filepath}: {e}")
125
+ except Exception as e:
126
+ logging.error(f"Unexpected error appending prediction to {filepath}: {e}")
127
+
128
+ def append_summary_detail(result_detail: Dict[str, Any], filepath: str):
129
+ """Appends a single question's summary details (evaluation status, marks, predicted, truth) to a JSONL file."""
130
+ try:
131
+ with open(filepath, 'a') as f:
132
+ json.dump(result_detail, f)
133
+ f.write('\n')
134
+ except IOError as e:
135
+ logging.error(f"Failed to append summary detail to {filepath}: {e}")
136
+ except Exception as e:
137
+ logging.error(f"Unexpected error appending summary detail to {filepath}: {e}")
138
+
139
+
140
+ # Removed save_summary function as summary.json is no longer needed.
141
+
142
+ def generate_markdown_summary(summary: Dict[str, Any], filepath: str):
143
+ """Generates a human-readable Markdown summary from the results dictionary."""
144
+ try:
145
+ md_content = []
146
+ model_name = summary.get("model_name", "N/A")
147
+ exam_name = summary.get("exam_name", "N/A")
148
+ exam_year = summary.get("exam_year", "N/A")
149
+ timestamp = summary.get("timestamp", "N/A")
150
+ total_questions_in_dataset = summary.get("total_questions_in_dataset", 0)
151
+ total_questions_processed_in_run = summary.get("total_questions_processed_in_run", 0)
152
+
153
+ filtered_questions_count = 0
154
+ if total_questions_in_dataset > 0 and total_questions_processed_in_run > 0:
155
+ filtered_questions_count = total_questions_in_dataset - total_questions_processed_in_run
156
+
157
+
158
+ md_content.append(f"# Benchmark Results: {model_name}")
159
+ if exam_name and exam_name not in ["N/A", "All_Exams"]: # Only display if a specific exam was targeted
160
+ md_content.append(f"**Exam Name:** {exam_name}")
161
+ if exam_year and exam_year not in ["N/A", "All_Years"]: # Only display if a specific year was targeted
162
+ md_content.append(f"**Exam Year:** {exam_year}")
163
+ md_content.append(f"**Timestamp:** {timestamp}")
164
+ md_content.append(f"**Total Questions in Dataset:** {total_questions_in_dataset if total_questions_in_dataset > 0 else 'N/A'}")
165
+ if filtered_questions_count > 0:
166
+ md_content.append(f"**Questions Filtered Out:** {filtered_questions_count}")
167
+ md_content.append(f"**Total Questions Processed in this Run:** {total_questions_processed_in_run}")
168
+
169
+ # API usage stats
170
+ total_cost_usd = summary.get("total_cost_usd")
171
+ total_tokens = summary.get("total_tokens")
172
+ avg_latency = summary.get("avg_response_latency_ms")
173
+ median_latency = summary.get("median_response_latency_ms")
174
+ if total_tokens or total_cost_usd or avg_latency:
175
+ md_content.append("")
176
+ md_content.append("### API Usage")
177
+ if summary.get("total_prompt_tokens"):
178
+ md_content.append(f"- **Prompt Tokens:** {summary['total_prompt_tokens']:,}")
179
+ if summary.get("total_completion_tokens"):
180
+ md_content.append(f"- **Completion Tokens:** {summary['total_completion_tokens']:,}")
181
+ if total_tokens:
182
+ md_content.append(f"- **Total Tokens:** {total_tokens:,}")
183
+ if total_cost_usd:
184
+ md_content.append(f"- **Total Cost:** ${total_cost_usd:.4f}")
185
+ if avg_latency:
186
+ md_content.append(f"- **Avg Response Latency:** {avg_latency:,} ms")
187
+ if median_latency:
188
+ md_content.append(f"- **Median Response Latency:** {median_latency:,} ms")
189
+
190
+ md_content.append("\n---\n")
191
+
192
+ # Check if NEET results are present (or any dataset with overall_score and section_breakdown)
193
+ if "overall_score" in summary and "section_breakdown" in summary: # Generic check for score-based summary
194
+ total_processed = summary.get("total_questions_processed", 0)
195
+
196
+ overall_score = summary.get('overall_score', 'N/A')
197
+ total_possible_score = summary.get('total_possible_score_for_processed_questions', 'N/A')
198
+ correct_full_count = summary.get('overall_correct_full', 'N/A')
199
+ partial_correct_count = summary.get('overall_partial_correct', 'N/A')
200
+ incorrect_choice_count = summary.get('overall_incorrect_choice', 'N/A')
201
+ skipped_count = summary.get('overall_skipped', 'N/A')
202
+ failures_count = summary.get('overall_api_parse_failures', 'N/A')
203
+ unmapped_count = summary.get('unmapped_section_questions', 'N/A')
204
+
205
+ md_content.append("## Exam Scoring Results")
206
+ md_content.append(f"**Overall Score:** **{overall_score}** / **{total_possible_score}**")
207
+ md_content.append(f"- **Fully Correct Answers:** {correct_full_count}")
208
+ if partial_correct_count != 'N/A' and partial_correct_count > 0 :
209
+ md_content.append(f"- **Partially Correct Answers:** {partial_correct_count}")
210
+ md_content.append(f"- **Incorrectly Answered (Choice Made):** {incorrect_choice_count}")
211
+ md_content.append(f"- **Skipped Questions:** {skipped_count}")
212
+ md_content.append(f"- **API/Parse Failures:** {failures_count}")
213
+ md_content.append(f"- **Total Questions Processed:** {total_processed}")
214
+ if unmapped_count > 0:
215
+ md_content.append(f"- **Unmapped Section Questions:** {unmapped_count} *(Not included in section breakdown)*")
216
+
217
+ md_content.append("\n### Detailed Score Calculation by Question Type")
218
+ question_type_breakdown = summary.get("question_type_breakdown", {})
219
+ if question_type_breakdown:
220
+ sorted_q_types = sorted(question_type_breakdown.keys())
221
+ for q_type in sorted_q_types:
222
+ stats = question_type_breakdown[q_type]
223
+ q_type_display = q_type.replace('_', ' ').title()
224
+
225
+ correct_count_q = stats.get('correct_full', 0)
226
+ partial_count_q = stats.get('partial_correct', 0)
227
+ incorrect_count_q = stats.get('incorrect_choice', 0)
228
+ skipped_count_q = stats.get('skipped', 0)
229
+ api_fail_count_q = stats.get('api_parse_failures', 0)
230
+ score_q = stats.get('score', 0)
231
+
232
+ breakdown_parts = []
233
+ if correct_count_q > 0:
234
+ breakdown_parts.append(f"{correct_count_q} Correct")
235
+ if partial_count_q > 0:
236
+ breakdown_parts.append(f"{partial_count_q} Partial")
237
+ if incorrect_count_q > 0:
238
+ breakdown_parts.append(f"{incorrect_count_q} Incorrect")
239
+ if skipped_count_q > 0:
240
+ breakdown_parts.append(f"{skipped_count_q} Skipped")
241
+ if api_fail_count_q > 0:
242
+ breakdown_parts.append(f"{api_fail_count_q} API/Parse Fail")
243
+
244
+ breakdown_str = ", ".join(breakdown_parts) if breakdown_parts else "No questions processed"
245
+
246
+ md_content.append(f"**{q_type_display} ({stats.get('count', 0)} questions):** {score_q} marks")
247
+ md_content.append(f" *Breakdown:* {breakdown_str}")
248
+ else:
249
+ md_content.append("No question type breakdown available.")
250
+
251
+ md_content.append("\n### Section Breakdown")
252
+ md_content.append("| Section | Score | Fully Correct | Partially Correct | Incorrect Choice | Skipped | API/Parse Failures |")
253
+ md_content.append("|---------------|-------|---------------|-------------------|------------------|---------|--------------------|")
254
+ section_breakdown = summary.get("section_breakdown", {})
255
+
256
+ sorted_section_names = sorted(section_breakdown.keys())
257
+ if not sorted_section_names and section_breakdown:
258
+ logging.warning("Could not sort section names for Markdown summary; using unsorted.")
259
+ sorted_section_names = list(section_breakdown.keys())
260
+
261
+ for section_name in sorted_section_names:
262
+ stats = section_breakdown.get(section_name, {})
263
+ score = stats.get('score', 'N/A')
264
+ s_correct = stats.get('correct', 'N/A')
265
+ s_partial = stats.get('partial_correct', 'N/A')
266
+ s_incorrect = stats.get('incorrect', 'N/A')
267
+ s_skipped = stats.get('skipped', 'N/A')
268
+ s_failures = stats.get('api_parse_failures', 'N/A')
269
+ display_section_name = section_name.replace('_', ' ')
270
+ md_content.append(f"| {display_section_name:<13} | {score:<5} | {s_correct:<13} | {s_partial:<17} | {s_incorrect:<16} | {s_skipped:<7} | {s_failures:<18} |")
271
+ if not sorted_section_names:
272
+ md_content.append("| No section data available | N/A | N/A | N/A | N/A | N/A | N/A |")
273
+
274
+ # Fallback for simple accuracy (if exam scoring wasn't applicable or failed)
275
+ elif "accuracy_on_parsed" in summary:
276
+ md_content.append("## Simple Accuracy Results (Fallback)")
277
+ md_content.append(f"- **Accuracy (on successfully parsed non-skipped):** {summary.get('accuracy_on_parsed', 'N/A'):.4f}")
278
+ md_content.append(f"- **Total Processed Attempts:** {summary.get('total_processed_attempts', 'N/A')}")
279
+ # Add other relevant simple stats if available
280
+ else:
281
+ md_content.append("## Summary")
282
+ md_content.append("*(No specific Exam Scoring or Accuracy metrics found in summary)*")
283
+
284
+
285
+ with open(filepath, 'w') as f:
286
+ f.write("\n".join(md_content))
287
+ logging.info(f"Markdown summary saved to {filepath}")
288
+
289
+ except IOError as e:
290
+ logging.error(f"Failed to save markdown summary to {filepath}: {e}")
291
+ except Exception as e:
292
+ logging.error(f"Unexpected error generating or saving markdown summary to {filepath}: {e}")
293
+
294
+
295
+ def process_question(
296
+ model_id: str,
297
+ api_key: str,
298
+ config: dict,
299
+ example: dict,
300
+ image: PILImage.Image,
301
+ predictions_path: str,
302
+ summary_details_path: str,
303
+ attempt: int = 1,
304
+ ) -> Dict[str, Any]:
305
+ """Handles a single question: API call, re-prompt on parse failure, scoring, writing to disk.
306
+
307
+ Returns the result_data dict. On API exception, raises so the caller can handle retry queueing.
308
+ """
309
+ question_id = example["question_id"]
310
+ subject = example["subject"]
311
+ exam_name_from_data = example.get("exam_name", "UNKNOWN_EXAM")
312
+ question_type_from_data = example.get("question_type", "MCQ_SINGLE_CORRECT")
313
+ truth = json.loads(example["correct_answer"])
314
+
315
+ result_data = {
316
+ "question_id": question_id,
317
+ "subject": subject,
318
+ "exam_name": exam_name_from_data,
319
+ "question_type": question_type_from_data,
320
+ "ground_truth": truth,
321
+ "predicted_answer": None,
322
+ "raw_response": None,
323
+ "parse_successful": False,
324
+ "api_call_successful": False,
325
+ "error": None,
326
+ "attempt": attempt,
327
+ "previous_raw_response_on_reprompt": None,
328
+ "response_metadata": None,
329
+ }
330
+
331
+ # --- API Call ---
332
+ logging.info(f"Attempting API call for question: {question_id} with model: {model_id}")
333
+ parsed_answer, raw_response, response_metadata = get_openrouter_prediction(
334
+ model_identifier=model_id,
335
+ api_key=api_key,
336
+ image=image,
337
+ exam_name=exam_name_from_data,
338
+ exam_year=str(example.get("exam_year", "UNKNOWN_YEAR")),
339
+ question_type=question_type_from_data,
340
+ max_tokens=config.get("max_tokens", 100),
341
+ request_timeout=config.get("request_timeout", 60),
342
+ temperature=config.get("temperature", 0),
343
+ )
344
+
345
+ api_success = raw_response is not None # False if API returned empty content
346
+ parse_success = parsed_answer is not None
347
+
348
+ # --- Re-prompt Logic ---
349
+ if api_success and not parse_success and raw_response is not None:
350
+ logging.warning(f"Question {question_id}: Initial parse failed. Attempting re-prompt.")
351
+ result_data["previous_raw_response_on_reprompt"] = raw_response
352
+ try:
353
+ parsed_answer_rp, raw_response_rp, rp_metadata = get_openrouter_prediction(
354
+ model_identifier=model_id,
355
+ api_key=api_key,
356
+ previous_raw_response=raw_response,
357
+ question_type=question_type_from_data,
358
+ max_tokens=config.get("max_tokens", 100),
359
+ request_timeout=config.get("request_timeout", 60),
360
+ temperature=config.get("temperature", 0),
361
+ )
362
+ if isinstance(parsed_answer_rp, list):
363
+ parsed_answer_rp = [str(item) for item in parsed_answer_rp]
364
+
365
+ result_data.update({
366
+ "predicted_answer": parsed_answer_rp,
367
+ "raw_response": raw_response_rp,
368
+ "parse_successful": parsed_answer_rp is not None,
369
+ "api_call_successful": True,
370
+ "attempt": attempt + 1,
371
+ "response_metadata": rp_metadata,
372
+ })
373
+ logging.info(f"Question {question_id}: Re-prompt {'succeeded' if result_data['parse_successful'] else 'failed to parse'}.")
374
+ except Exception as e_rp:
375
+ logging.error(f"Re-prompt API call failed for question {question_id}: {e_rp}")
376
+ result_data.update({
377
+ "predicted_answer": None,
378
+ "raw_response": raw_response,
379
+ "parse_successful": False,
380
+ "api_call_successful": True,
381
+ "error": f"Initial parse failed. Re-prompt API call failed: {str(e_rp)}",
382
+ "attempt": attempt,
383
+ "response_metadata": response_metadata,
384
+ })
385
+ else:
386
+ current_error = result_data.get("error")
387
+ if not api_success:
388
+ current_error = "API call returned empty content."
389
+
390
+ if isinstance(parsed_answer, list):
391
+ parsed_answer = [str(item) for item in parsed_answer]
392
+
393
+ result_data.update({
394
+ "predicted_answer": parsed_answer,
395
+ "raw_response": raw_response,
396
+ "parse_successful": parse_success,
397
+ "api_call_successful": api_success,
398
+ "error": current_error,
399
+ "attempt": attempt,
400
+ "response_metadata": response_metadata,
401
+ })
402
+
403
+ # --- Score and write to disk ---
404
+ score_details = calculate_single_question_score_details(result_data)
405
+ result_data["marks_awarded"] = score_details.get("marks_awarded")
406
+ result_data["evaluation_status"] = score_details.get("evaluation_status")
407
+
408
+ metadata = result_data.get("response_metadata") or {}
409
+ append_summary_detail(
410
+ {
411
+ "question_id": question_id,
412
+ "marks_awarded": result_data["marks_awarded"],
413
+ "evaluation_status": result_data["evaluation_status"],
414
+ "predicted_answer": result_data["predicted_answer"],
415
+ "ground_truth": result_data["ground_truth"],
416
+ "attempt": result_data["attempt"],
417
+ "prompt_tokens": metadata.get("prompt_tokens"),
418
+ "completion_tokens": metadata.get("completion_tokens"),
419
+ "cost": metadata.get("cost"),
420
+ "response_latency_ms": metadata.get("response_latency_ms"),
421
+ },
422
+ summary_details_path,
423
+ )
424
+ append_prediction(result_data, predictions_path)
425
+
426
+ return result_data
427
+
428
+
429
+ def log_question_result(result_data: Dict[str, Any], prefix: str = "") -> str:
430
+ """Logs a color-coded result for a single question.
431
+
432
+ Returns a category string: 'correct', 'incorrect', 'skipped', 'parse_fail', or 'api_fail'.
433
+ """
434
+ question_id = result_data["question_id"]
435
+ log_message_prefix = f"{prefix}Question {question_id}:"
436
+ log_message_suffix = f"(Attempt {result_data['attempt']})"
437
+
438
+ if not result_data["api_call_successful"]:
439
+ print(f"{MAGENTA}{log_message_prefix} API Call Failed {log_message_suffix}{RESET}")
440
+ return "api_fail"
441
+
442
+ if not result_data["parse_successful"]:
443
+ print(f"{CYAN}{log_message_prefix} Failed to parse answer {log_message_suffix}{RESET}")
444
+ return "parse_fail"
445
+
446
+ if result_data["predicted_answer"] == "SKIP":
447
+ print(f"{YELLOW}{log_message_prefix} Skipped {log_message_suffix}{RESET}")
448
+ return "skipped"
449
+
450
+ marks_awarded = result_data.get("marks_awarded", 0)
451
+ evaluation_status_value = result_data.get("evaluation_status")
452
+
453
+ is_considered_correct = False
454
+ log_display_status = "N/A"
455
+ status_check_string = ""
456
+
457
+ if evaluation_status_value is True:
458
+ is_considered_correct = True
459
+ log_display_status = "True (Boolean)"
460
+ status_check_string = "CORRECT_TRUE_BOOLEAN"
461
+ elif isinstance(evaluation_status_value, str):
462
+ log_display_status = evaluation_status_value
463
+ status_check_string = evaluation_status_value.strip().upper()
464
+ if "CORRECT" in status_check_string:
465
+ is_considered_correct = True
466
+ elif evaluation_status_value is None:
467
+ log_display_status = "None"
468
+ status_check_string = "NONE_STATUS"
469
+ else:
470
+ log_display_status = str(evaluation_status_value)
471
+ status_check_string = str(evaluation_status_value).strip().upper()
472
+
473
+ known_eval_skip_statuses = ["SKIPPED_BY_EVAL", "SKIPPED"]
474
+
475
+ if is_considered_correct:
476
+ print(f"{GREEN}{log_message_prefix} Correct - Marks: {marks_awarded}, Status: {log_display_status} {log_message_suffix}{RESET}")
477
+ return "correct"
478
+ elif status_check_string in known_eval_skip_statuses:
479
+ print(f"{YELLOW}{log_message_prefix} Skipped by Eval - Marks: {marks_awarded}, Status: {log_display_status} {log_message_suffix}{RESET}")
480
+ return "skipped"
481
+ else:
482
+ print(f"{RED}{log_message_prefix} Incorrect - Marks: {marks_awarded}, Status: {log_display_status} {log_message_suffix}{RESET}")
483
+ return "incorrect"
484
+
485
+
486
+ def load_completed_question_ids(summary_details_path: str) -> set:
487
+ """Reads summary.jsonl and returns a set of question_ids that have already been processed."""
488
+ completed_ids = set()
489
+ if not os.path.exists(summary_details_path):
490
+ return completed_ids
491
+ try:
492
+ with open(summary_details_path, 'r') as f:
493
+ for line in f:
494
+ try:
495
+ data = json.loads(line)
496
+ qid = data.get("question_id")
497
+ if qid:
498
+ completed_ids.add(qid)
499
+ except json.JSONDecodeError:
500
+ continue
501
+ except IOError as e:
502
+ logging.warning(f"Could not read {summary_details_path} for resume: {e}")
503
+ return completed_ids
504
+
505
+
506
+ def run_benchmark(
507
+ config: dict,
508
+ api_key: str,
509
+ model_to_run: str,
510
+ output_dir_override: str | None = None,
511
+ exam_name_choice: str | None = None,
512
+ exam_year_choice: str | None = None,
513
+ question_ids_str: str | None = None,
514
+ resume_dir: str | None = None
515
+ ):
516
+ """Runs the benchmark evaluation loop with incremental saving and retries."""
517
+
518
+ # Determine models to run - now it's a single model
519
+ models_to_run = [model_to_run] # Benchmark will run for the single specified model
520
+ logging.info(f"Target model for this run: {model_to_run}")
521
+
522
+ # Determine base output directory
523
+ base_output_dir = output_dir_override if output_dir_override else config.get("results_base_dir", "results")
524
+ os.makedirs(base_output_dir, exist_ok=True)
525
+
526
+ # Load dataset directly from metadata.jsonl and images/
527
+ metadata_path = config.get("metadata_path", "images/metadata.jsonl")
528
+ images_base_dir = config.get("images_base_dir", "images")
529
+ try:
530
+ records = []
531
+ with open(metadata_path, 'r', encoding='utf-8') as f:
532
+ for line in f:
533
+ row = json.loads(line)
534
+ row["image"] = os.path.join(images_base_dir, row.pop("file_name"))
535
+ row.setdefault("paper_id", None)
536
+ records.append(row)
537
+
538
+ features = Features({
539
+ "image": HFImage(decode=True),
540
+ "question_id": Value("string"),
541
+ "exam_name": Value("string"),
542
+ "exam_year": Value("int32"),
543
+ "subject": Value("string"),
544
+ "question_type": Value("string"),
545
+ "correct_answer": Value("string"),
546
+ "paper_id": Value("int64"),
547
+ })
548
+ dataset = Dataset.from_list(records, features=features)
549
+ logging.info(f"Dataset loaded successfully from {metadata_path}. Original number of questions: {len(dataset)}")
550
+ except Exception as e:
551
+ logging.error(f"Failed to load dataset from '{metadata_path}': {e}")
552
+ logging.error("Ensure 'metadata.jsonl' exists and image paths are valid.")
553
+ return
554
+
555
+ # Filter dataset based on choices
556
+ original_dataset_size = len(dataset)
557
+
558
+ # Filter by exam_name
559
+ if exam_name_choice and exam_name_choice.lower() != "all":
560
+ logging.info(f"Filtering dataset for exam_name: '{exam_name_choice}'")
561
+ dataset = dataset.filter(lambda example: example.get('exam_name') == exam_name_choice)
562
+ logging.info(f"Dataset size after exam_name filter: {len(dataset)} questions.")
563
+
564
+ # Filter by exam_year
565
+ if exam_year_choice and exam_year_choice.lower() != "all":
566
+ try:
567
+ filter_year_int = int(exam_year_choice)
568
+ logging.info(f"Filtering dataset for exam_year: {filter_year_int}")
569
+ dataset = dataset.filter(lambda example: example.get('exam_year') == filter_year_int)
570
+ logging.info(f"Dataset size after exam_year filter: {len(dataset)} questions.")
571
+ except ValueError:
572
+ logging.error(f"Invalid exam_year provided: '{exam_year_choice}'. Must be an integer or 'all'. Year filtering skipped.")
573
+
574
+ # Filter by specific question IDs if provided
575
+ if question_ids_str:
576
+ try:
577
+ target_question_ids = {q_id.strip() for q_id in question_ids_str.split(',') if q_id.strip()}
578
+ if target_question_ids:
579
+ logging.info(f"Filtering dataset for specific question IDs: {target_question_ids}")
580
+ dataset = dataset.filter(lambda example: example.get('question_id') in target_question_ids)
581
+ logging.info(f"Dataset size after question_id filter: {len(dataset)} questions.")
582
+ else:
583
+ logging.warning("Empty or invalid question_ids string provided. No question ID filtering applied.")
584
+ except Exception as e:
585
+ logging.error(f"Error processing question_ids_str '{question_ids_str}': {e}. No question ID filtering applied.")
586
+
587
+ if len(dataset) < original_dataset_size:
588
+ logging.info(f"Final dataset size after all filters: {len(dataset)} (originally {original_dataset_size}).")
589
+
590
+ if len(dataset) == 0:
591
+ logging.warning("No questions to process after filtering. Skipping model benchmark.")
592
+ return
593
+
594
+ # --- Main Loop: Iterate through models ---
595
+ for model_id in models_to_run:
596
+ logging.info(f"--- Starting benchmark for model: {model_id} ---")
597
+
598
+ # Set up output directory (resume existing or create new)
599
+ if resume_dir:
600
+ model_output_dir = resume_dir
601
+ timestamp = os.path.basename(resume_dir).rsplit('_', 2)[-2] + '_' + os.path.basename(resume_dir).rsplit('_', 1)[-1] if '_' in os.path.basename(resume_dir) else datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
602
+ else:
603
+ timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
604
+ safe_model_name = model_id.replace('/', '_')
605
+ dir_name_parts = [safe_model_name]
606
+
607
+ current_exam_name_for_dir = exam_name_choice if exam_name_choice and exam_name_choice.lower() != "all" else "AllExams"
608
+ current_exam_year_for_dir = exam_year_choice if exam_year_choice and exam_year_choice.lower() != "all" else "AllYears"
609
+
610
+ if current_exam_name_for_dir != "AllExams":
611
+ dir_name_parts.append(current_exam_name_for_dir.replace('/', '_'))
612
+ if current_exam_year_for_dir != "AllYears":
613
+ dir_name_parts.append(str(current_exam_year_for_dir))
614
+
615
+ dir_name_parts.append(timestamp)
616
+
617
+ model_output_dir_name = "_".join(filter(None, dir_name_parts))
618
+ model_output_dir = os.path.join(base_output_dir, model_output_dir_name)
619
+
620
+ os.makedirs(model_output_dir, exist_ok=True)
621
+ predictions_path = os.path.join(model_output_dir, "predictions.jsonl")
622
+ summary_details_path = os.path.join(model_output_dir, "summary.jsonl")
623
+ markdown_summary_path = os.path.join(model_output_dir, "summary.md")
624
+ logging.info(f"Results for {model_id} will be saved to: {model_output_dir}")
625
+
626
+ # Resume: skip already-completed questions
627
+ if resume_dir:
628
+ completed_ids = load_completed_question_ids(summary_details_path)
629
+ if completed_ids:
630
+ logging.info(f"Resuming: found {len(completed_ids)} already-completed questions. Skipping them.")
631
+ dataset = dataset.filter(lambda example: example.get('question_id') not in completed_ids)
632
+ logging.info(f"Remaining questions to process: {len(dataset)}")
633
+ if len(dataset) == 0:
634
+ logging.info("All questions already completed. Nothing to resume.")
635
+ return
636
+
637
+ current_total_questions = len(dataset)
638
+ logging.info(f"Processing {current_total_questions} questions for model: {model_id}")
639
+
640
+ model_results = [] # Stores results in memory for final calculation
641
+ failed_questions_data = [] # Stores data needed to retry failed questions
642
+
643
+ # Counters for tqdm postfix
644
+ initial_correct_count = 0
645
+ initial_incorrect_count = 0
646
+ initial_skipped_count = 0
647
+ initial_parse_fail_count = 0
648
+ initial_api_fail_count = 0
649
+
650
+ # --- Initial Pass: Iterate through questions ---
651
+ pbar_initial = tqdm(dataset, desc=f"Processing {model_id} (Initial Pass)", total=current_total_questions)
652
+ for example in pbar_initial:
653
+ try:
654
+ result_data = process_question(
655
+ model_id=model_id, api_key=api_key, config=config,
656
+ example=example, image=example["image"],
657
+ predictions_path=predictions_path, summary_details_path=summary_details_path,
658
+ attempt=1,
659
+ )
660
+ model_results.append(result_data)
661
+ category = log_question_result(result_data)
662
+ except Exception as e:
663
+ logging.error(f"Initial API call failed for question {example['question_id']} (Attempt 1): {e}")
664
+ failed_questions_data.append(example)
665
+ category = "api_fail"
666
+
667
+ if category == "correct":
668
+ initial_correct_count += 1
669
+ elif category == "incorrect":
670
+ initial_incorrect_count += 1
671
+ elif category == "skipped":
672
+ initial_skipped_count += 1
673
+ elif category == "parse_fail":
674
+ initial_parse_fail_count += 1
675
+ elif category == "api_fail":
676
+ initial_api_fail_count += 1
677
+ pbar_initial.set_postfix_str(f"✓:{initial_correct_count} ✗:{initial_incorrect_count} S:{initial_skipped_count} P!:{initial_parse_fail_count} A!:{initial_api_fail_count}")
678
+
679
+ pbar_initial.close()
680
+
681
+ # --- Retry Pass for questions with initial API failures ---
682
+ if failed_questions_data:
683
+ logging.info(f"--- Retrying {len(failed_questions_data)} questions with initial API failures for model: {model_id} ---")
684
+
685
+ retry_correct_count = 0
686
+ retry_incorrect_count = 0
687
+ retry_skipped_count = 0
688
+ retry_parse_fail_count = 0
689
+ retry_api_fail_count = 0
690
+
691
+ pbar_retry = tqdm(failed_questions_data, desc=f"Processing {model_id} (API Retry Pass)", total=len(failed_questions_data))
692
+ for example_retry in pbar_retry:
693
+ try:
694
+ result_data_retry = process_question(
695
+ model_id=model_id, api_key=api_key, config=config,
696
+ example=example_retry, image=example_retry["image"],
697
+ predictions_path=predictions_path, summary_details_path=summary_details_path,
698
+ attempt=2,
699
+ )
700
+ model_results.append(result_data_retry)
701
+ category = log_question_result(result_data_retry, prefix="(Retry) ")
702
+ except Exception as e_retry_api:
703
+ logging.error(f"API call failed permanently for question {example_retry['question_id']} (Attempt 2 API Retry): {e_retry_api}")
704
+ # Score and write the failure so it appears in output files
705
+ fail_data = {
706
+ "question_id": example_retry["question_id"],
707
+ "subject": example_retry["subject"],
708
+ "exam_name": example_retry.get("exam_name", "UNKNOWN_EXAM"),
709
+ "question_type": example_retry.get("question_type", "MCQ_SINGLE_CORRECT"),
710
+ "ground_truth": json.loads(example_retry["correct_answer"]),
711
+ "predicted_answer": None, "raw_response": None,
712
+ "parse_successful": False, "api_call_successful": False,
713
+ "error": f"Initial API fail. Retry API call also failed: {str(e_retry_api)}",
714
+ "attempt": 2, "previous_raw_response_on_reprompt": None,
715
+ }
716
+ score_details = calculate_single_question_score_details(fail_data)
717
+ fail_data["marks_awarded"] = score_details.get("marks_awarded")
718
+ fail_data["evaluation_status"] = score_details.get("evaluation_status")
719
+ append_summary_detail(
720
+ {"question_id": fail_data["question_id"], "marks_awarded": fail_data["marks_awarded"],
721
+ "evaluation_status": fail_data["evaluation_status"], "predicted_answer": None,
722
+ "ground_truth": fail_data["ground_truth"], "attempt": 2},
723
+ summary_details_path,
724
+ )
725
+ append_prediction(fail_data, predictions_path)
726
+ model_results.append(fail_data)
727
+ category = "api_fail"
728
+
729
+ if category == "correct":
730
+ retry_correct_count += 1
731
+ elif category == "incorrect":
732
+ retry_incorrect_count += 1
733
+ elif category == "skipped":
734
+ retry_skipped_count += 1
735
+ elif category == "parse_fail":
736
+ retry_parse_fail_count += 1
737
+ elif category == "api_fail":
738
+ retry_api_fail_count += 1
739
+ pbar_retry.set_postfix_str(f"✓:{retry_correct_count} ✗:{retry_incorrect_count} S:{retry_skipped_count} P!:{retry_parse_fail_count} A!:{retry_api_fail_count}")
740
+ pbar_retry.close()
741
+
742
+ # --- Final Evaluation for the current model ---
743
+ logging.info(f"--- Calculating final results for model: {model_id} ---")
744
+
745
+ # Always use calculate_exam_scores now
746
+ evaluation_summary = calculate_exam_scores(model_results) # model_results modified in-place
747
+
748
+ # Use the actual choices for the summary, defaulting to "All" if not specified or "all"
749
+ summary_exam_name_display = exam_name_choice if exam_name_choice and exam_name_choice.lower() != "all" else "All_Exams"
750
+ summary_exam_year_display = exam_year_choice if exam_year_choice and exam_year_choice.lower() != "all" else "All_Years"
751
+
752
+ # Aggregate response metadata across all questions
753
+ total_prompt_tokens = 0
754
+ total_completion_tokens = 0
755
+ total_cost = 0.0
756
+ latencies = []
757
+ for r in model_results:
758
+ meta = r.get("response_metadata") or {}
759
+ if meta.get("prompt_tokens"):
760
+ total_prompt_tokens += meta["prompt_tokens"]
761
+ if meta.get("completion_tokens"):
762
+ total_completion_tokens += meta["completion_tokens"]
763
+ if meta.get("cost"):
764
+ total_cost += meta["cost"]
765
+ if meta.get("response_latency_ms"):
766
+ latencies.append(meta["response_latency_ms"])
767
+
768
+ summary = {
769
+ "model_name": model_id, # This is model_to_run
770
+ "exam_name": summary_exam_name_display,
771
+ "exam_year": summary_exam_year_display,
772
+ "question_ids_filter": question_ids_str if question_ids_str else "None", # Add question ID filter info
773
+ "timestamp": timestamp,
774
+ "git_sha": get_git_sha(),
775
+ "temperature": config.get("temperature", 0),
776
+ "max_tokens": config.get("max_tokens", 100),
777
+ "total_questions_in_dataset": original_dataset_size, # Total before any filtering
778
+ "total_questions_processed_in_run": len(dataset), # Total after filtering for this run
779
+ "total_prompt_tokens": total_prompt_tokens,
780
+ "total_completion_tokens": total_completion_tokens,
781
+ "total_tokens": total_prompt_tokens + total_completion_tokens,
782
+ "total_cost_usd": round(total_cost, 6),
783
+ "avg_response_latency_ms": round(sum(latencies) / len(latencies)) if latencies else None,
784
+ "median_response_latency_ms": round(sorted(latencies)[len(latencies) // 2]) if latencies else None,
785
+ **evaluation_summary
786
+ }
787
+ logging.info(f"Overall Score: {summary.get('overall_score')}")
788
+ logging.info(f"Full Correct: {summary.get('overall_correct_full')}, Partial Correct: {summary.get('overall_partial_correct')}, Incorrect Choice: {summary.get('overall_incorrect_choice')}, Skipped: {summary.get('overall_skipped')}, API/Parse Failures: {summary.get('overall_api_parse_failures')}")
789
+
790
+ logging.info(f"--- Results Summary for model: {model_id} ---")
791
+ logging.info(json.dumps(summary, indent=2, sort_keys=True))
792
+ logging.info("-------------------------------------")
793
+
794
+ # The model_results list was modified in-place by calculate_exam_scores
795
+ # to include evaluation_status and marks_awarded.
796
+ # predictions.jsonl is now written incrementally without evaluation details.
797
+ # No need to overwrite predictions.jsonl here.
798
+
799
+
800
+ # Save final summary (Markdown) for the current model
801
+ # The summary.json file is no longer generated as per user request.
802
+ generate_markdown_summary(summary, markdown_summary_path) # Call the new function
803
+
804
+ logging.info("Benchmark run completed.")
805
+
806
+
807
+ if __name__ == "__main__":
808
+ # Get available choices for arguments
809
+ # Assuming benchmark_config.yaml is in a 'configs' directory relative to script or a fixed path
810
+ default_config_path = "configs/benchmark_config.yaml"
811
+ default_metadata_path = "images/metadata.jsonl"
812
+
813
+ available_models = get_available_models(default_config_path)
814
+ available_exam_names, available_exam_years = get_available_exam_details(default_metadata_path)
815
+
816
+ # Add "all" option for exams and years
817
+ exam_name_choices = ["all"] + available_exam_names
818
+ exam_year_choices = ["all"] + available_exam_years
819
+
820
+ parser = argparse.ArgumentParser(description="Run JEE/NEET LLM Benchmark.")
821
+ parser.add_argument(
822
+ "--config",
823
+ type=str,
824
+ default=default_config_path,
825
+ help=f"Path to the benchmark configuration YAML file (default: {default_config_path})."
826
+ )
827
+ parser.add_argument(
828
+ "--model", # Changed from --models
829
+ type=str,
830
+ required=True if available_models else False, # Required if models are available
831
+ choices=available_models if available_models else None,
832
+ help="Select the model to run." + (f" Available: {', '.join(available_models)}." if available_models else " (No models found in config)")
833
+ )
834
+ parser.add_argument(
835
+ "--output_dir",
836
+ type=str,
837
+ help="Override the base output directory specified in the config file."
838
+ )
839
+ parser.add_argument(
840
+ "--exam_name",
841
+ type=str,
842
+ default="all",
843
+ choices=exam_name_choices if exam_name_choices else ["all"],
844
+ help="Select the exam name to run, or 'all' for all exams." + (f" Available: {', '.join(available_exam_names)}." if available_exam_names else "")
845
+ )
846
+ parser.add_argument(
847
+ "--exam_year",
848
+ type=str,
849
+ default="all",
850
+ choices=exam_year_choices if exam_year_choices else ["all"],
851
+ help="Select the exam year to run, or 'all' for all years." + (f" Available: {', '.join(available_exam_years)}." if available_exam_years else "")
852
+ )
853
+ parser.add_argument(
854
+ "--question_ids",
855
+ type=str,
856
+ default=None,
857
+ help="Optional: Comma-separated list of specific question IDs to run (e.g., ID1,ID2,ID3)."
858
+ )
859
+ parser.add_argument(
860
+ "--resume",
861
+ type=str,
862
+ default=None,
863
+ help="Optional: Path to an existing results directory to resume an interrupted run."
864
+ )
865
+ parser.add_argument(
866
+ "--temperature",
867
+ type=float,
868
+ default=None,
869
+ help="Override sampling temperature (default: from config, typically 0 for deterministic output)."
870
+ )
871
+ parser.add_argument(
872
+ "--num_runs",
873
+ type=int,
874
+ default=1,
875
+ help="Number of independent runs per model (default: 1). Use 3+ for publication-grade variance analysis."
876
+ )
877
+ args = parser.parse_args()
878
+
879
+ # Dynamically update config path if user provides a different one
880
+ if args.config != default_config_path:
881
+ logging.info(f"User provided config path: {args.config}. Re-fetching models if necessary.")
882
+ # If models were not found with default, or if user specified a different config, try to load models from it.
883
+ if not available_models or args.model not in available_models:
884
+ user_config_models = get_available_models(args.config)
885
+ if args.model not in user_config_models:
886
+ logging.error(f"Selected model '{args.model}' not found in the specified config '{args.config}'. Exiting.")
887
+ exit(1) # Or handle more gracefully
888
+ # Potentially update choices if parser allowed any string due to no initial models
889
+ # This is complex with argparse after parsing. For now, we rely on the initial check or error out.
890
+
891
+ try:
892
+ # Load API key first - fail fast if not set
893
+ api_key = load_api_key()
894
+ # Load configuration using the (potentially user-overridden) config path
895
+ config = load_config(args.config)
896
+
897
+ # Apply CLI temperature override
898
+ if args.temperature is not None:
899
+ config["temperature"] = args.temperature
900
+
901
+ # Ensure the selected model is in the config
902
+ if args.model not in config.get("openrouter_models", []):
903
+ logging.error(f"The model '{args.model}' is not listed in '{args.config}'. Please check the model name or the config file.")
904
+ exit(1)
905
+
906
+ # Run the benchmark (potentially multiple runs)
907
+ for run_num in range(1, args.num_runs + 1):
908
+ if args.num_runs > 1:
909
+ logging.info(f"=== Starting run {run_num}/{args.num_runs} ===")
910
+ run_benchmark(
911
+ config=config,
912
+ api_key=api_key,
913
+ model_to_run=args.model,
914
+ output_dir_override=args.output_dir,
915
+ exam_name_choice=args.exam_name,
916
+ exam_year_choice=args.exam_year,
917
+ question_ids_str=args.question_ids,
918
+ resume_dir=args.resume if run_num == 1 else None, # Only resume on first run
919
+ )
920
+ except (ValueError, FileNotFoundError, yaml.YAMLError) as e:
921
+ logging.error(f"Setup failed: {e}")
922
+ except Exception as e:
923
+ logging.error(f"An unexpected error occurred during benchmark execution: {e}", exc_info=True)
src/evaluation.py ADDED
@@ -0,0 +1,415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ import re
3
+ from typing import List, Optional, Union, Dict, Any
4
+
5
+ # Configure logging
6
+ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
7
+
8
+
9
+ def get_subject_as_section(subject: str, question_num_for_log: int) -> Optional[str]:
10
+ """
11
+ Returns the subject name directly as the section identifier.
12
+ question_num_for_log is only used for logging context if subject is invalid.
13
+ """
14
+ if subject and isinstance(subject, str) and subject.strip():
15
+ return subject.strip()
16
+ else:
17
+ logging.warning(f"Invalid or missing subject ('{subject}') for question_num '{question_num_for_log}'. Cannot determine section.")
18
+ return None
19
+
20
+ def is_within_range(predicted_value_str: str, lower_bound_str: str, upper_bound_str: str) -> bool:
21
+ """
22
+ Checks if a predicted numerical value (as a string) falls within a specified range.
23
+ The comparison is inclusive.
24
+ """
25
+ try:
26
+ predicted_value = float(predicted_value_str)
27
+ lower_bound = float(lower_bound_str)
28
+ upper_bound = float(upper_bound_str)
29
+ except ValueError:
30
+ logging.debug(f"Could not convert predicted value '{predicted_value_str}' or bounds ('{lower_bound_str}', '{upper_bound_str}') to numbers.")
31
+ return False
32
+
33
+ return lower_bound <= predicted_value <= upper_bound
34
+
35
+
36
+ def calculate_single_question_score_details(result_item: Dict[str, Any]) -> Dict[str, Any]:
37
+ """
38
+ Calculates marks_awarded and evaluation_status for a single question result.
39
+
40
+ Args:
41
+ result_item (Dict[str, Any]): A dictionary for a single question, must contain:
42
+ 'question_id' (str)
43
+ 'exam_name' (str)
44
+ 'question_type' (str)
45
+ 'ground_truth' (List[str] | str) # Changed to string
46
+ 'predicted_answer' (List[str] | str | None) # Changed to string
47
+ 'api_call_successful' (bool)
48
+
49
+ Returns:
50
+ Dict[str, Any]: A dictionary with 'marks_awarded' (int) and 'evaluation_status' (str).
51
+ """
52
+ question_id = result_item.get("question_id", "UNKNOWN_QID") # Provide default for logging
53
+ exam_name = result_item.get("exam_name", "").upper()
54
+ question_type = result_item.get("question_type", "").upper()
55
+ pred = result_item.get("predicted_answer")
56
+ truth = result_item.get("ground_truth")
57
+ api_success = result_item.get("api_call_successful", False)
58
+
59
+ current_score_change = 0
60
+ evaluation_status = "unknown"
61
+
62
+ # Ensure truth is a set of uppercase strings for consistent processing.
63
+ # Ground truth from metadata.jsonl is expected to be a list of strings.
64
+ # e.g., ["1"], ["A"], ["12.75"], ["A", "C"]
65
+ # For integer ranges, it will be like [["0.7", "0.8"]]
66
+ truth_processed: List[Union[str, List[str]]] = []
67
+ if isinstance(truth, list):
68
+ for t_item in truth:
69
+ if isinstance(t_item, str):
70
+ truth_processed.append(t_item.upper())
71
+ elif isinstance(t_item, list) and len(t_item) == 2 and all(isinstance(x, str) for x in t_item):
72
+ truth_processed.append([x.upper() for x in t_item]) # Store range as list of uppercase strings
73
+ else:
74
+ logging.error(f"Invalid item in ground_truth list for {question_id}: {t_item}. Skipping.")
75
+ elif isinstance(truth, str):
76
+ truth_processed.append(truth.upper())
77
+ else:
78
+ logging.error(f"Invalid ground_truth format for {question_id}: {truth} (type: {type(truth)}). Assigning 0 marks.")
79
+ return {"marks_awarded": 0, "evaluation_status": "error_bad_ground_truth"}
80
+
81
+
82
+ if not api_success or pred is None: # pred is None means our internal parsing failed
83
+ evaluation_status = "failure_api_or_parse"
84
+ current_score_change = 0 # No penalty: parse/API failure is not a deliberate wrong choice
85
+ elif isinstance(pred, str) and pred.upper() == "SKIP": # Standardize SKIP comparison
86
+ current_score_change = 0
87
+ evaluation_status = "skipped"
88
+ elif isinstance(pred, list) and all(isinstance(p, str) for p in pred):
89
+ pred_set = {p.upper() for p in pred} # Convert to uppercase strings
90
+
91
+ # Handle MCQ_SINGLE_CORRECT first, as it has special logic for multiple truths.
92
+ # The parser (`parse_llm_answer`) returns `pred` as `list[str]` with one element for valid single answers.
93
+ if question_type == "MCQ_SINGLE_CORRECT":
94
+ # A prediction is correct if its single element is present in the truth_set.
95
+ # This accommodates metadata entries where `correct_answer` for an MCQ_SINGLE_CORRECT
96
+ # might list multiple acceptable options (e.g., if a question had two official correct answers).
97
+ is_correct = False
98
+ if len(pred_set) == 1: # Ensure prediction is indeed a single option
99
+ single_pred_answer = list(pred_set)[0] # Get the single predicted option
100
+ # Check against all processed truths (which are single strings for MCQ)
101
+ if single_pred_answer in truth_processed:
102
+ is_correct = True
103
+
104
+ if is_correct:
105
+ evaluation_status = "correct"
106
+ if exam_name == "NEET": current_score_change = 4
107
+ elif exam_name == "JEE_MAIN": current_score_change = 4
108
+ elif exam_name == "JEE_ADVANCED": current_score_change = 3
109
+ else: current_score_change = 1 # Default positive score for unknown exam
110
+ else:
111
+ evaluation_status = "incorrect"
112
+ if exam_name == "NEET": current_score_change = -1
113
+ elif exam_name == "JEE_MAIN": current_score_change = -1
114
+ elif exam_name == "JEE_ADVANCED": current_score_change = -1
115
+ else: current_score_change = 0 # Default no penalty
116
+
117
+ elif exam_name == "JEE_MAIN" and question_type == "INTEGER": # Integer answers are now strings in a list e.g. ["14"]
118
+ # For JEE_MAIN INTEGER, we expect truth_processed to contain single strings
119
+ is_correct = False
120
+ if len(pred_set) == 1:
121
+ predicted_answer_str = list(pred_set)[0]
122
+ if predicted_answer_str in truth_processed: # Check against single string truths
123
+ is_correct = True
124
+
125
+ if is_correct:
126
+ current_score_change = 4; evaluation_status = "correct"
127
+ else:
128
+ current_score_change = 0; evaluation_status = "incorrect"
129
+
130
+ elif exam_name == "JEE_ADVANCED":
131
+ # Note: MCQ_SINGLE_CORRECT for JEE_ADVANCED is handled by the common block above
132
+ if question_type == "INTEGER":
133
+ is_correct = False
134
+ if len(pred_set) == 1:
135
+ predicted_answer_str = list(pred_set)[0] # Get the single predicted string
136
+
137
+ # Iterate through each ground truth entry in the 'truth_processed' list
138
+ for gt_entry in truth_processed:
139
+ if isinstance(gt_entry, list) and len(gt_entry) == 2: # This is a range [lower, upper]
140
+ lower_bound_str, upper_bound_str = gt_entry[0], gt_entry[1]
141
+ if is_within_range(predicted_answer_str, lower_bound_str, upper_bound_str):
142
+ is_correct = True
143
+ break # Found a matching range, no need to check others
144
+ elif isinstance(gt_entry, str): # This is an exact integer match
145
+ if predicted_answer_str == gt_entry: # gt_entry is already uppercase
146
+ is_correct = True
147
+ break # Found an exact match, no need to check others
148
+
149
+ if is_correct:
150
+ current_score_change = 4; evaluation_status = "correct"
151
+ else:
152
+ current_score_change = 0; evaluation_status = "incorrect"
153
+ elif question_type == "MCQ_MULTIPLE_CORRECT":
154
+ # For MCQ_MULTIPLE_CORRECT, truth_processed contains single strings
155
+ truth_set_mcq = set(truth_processed) # Convert to set for intersection operations
156
+
157
+ num_correct_options_in_truth = len(truth_set_mcq)
158
+ num_chosen_options = len(pred_set)
159
+ correct_chosen_options = pred_set.intersection(truth_set_mcq)
160
+ incorrect_chosen_options = pred_set.difference(truth_set_mcq)
161
+ num_correct_chosen = len(correct_chosen_options)
162
+ num_incorrect_chosen = len(incorrect_chosen_options)
163
+
164
+ if num_incorrect_chosen > 0:
165
+ current_score_change = -2; evaluation_status = "incorrect_negative"
166
+ elif num_correct_chosen == num_correct_options_in_truth and num_chosen_options == num_correct_options_in_truth:
167
+ current_score_change = 4; evaluation_status = "correct_full"
168
+ elif num_correct_options_in_truth == 4 and num_correct_chosen == 3 and num_chosen_options == 3:
169
+ current_score_change = 3; evaluation_status = "partial_3_of_4"
170
+ elif num_correct_options_in_truth >= 3 and num_correct_chosen == 2 and num_chosen_options == 2:
171
+ current_score_change = 2; evaluation_status = "partial_2_of_3_plus"
172
+ elif num_correct_options_in_truth >= 2 and num_correct_chosen == 1 and num_chosen_options == 1:
173
+ current_score_change = 1; evaluation_status = "partial_1_of_2_plus"
174
+ else:
175
+ current_score_change = 0; evaluation_status = "no_marks_no_penalty"
176
+ else:
177
+ logging.warning(f"Unknown exam_name/question_type combination for scoring: {exam_name}/{question_type} for QID {question_id}. Assigning 0 marks.")
178
+ current_score_change = 0
179
+ evaluation_status = "unknown_exam_type"
180
+ else:
181
+ logging.error(f"Unexpected prediction type for {question_id}: {pred}. Treating as API/Parse Failure.")
182
+ current_score_change = -1 # Default penalty
183
+ evaluation_status = "failure_unexpected_type"
184
+
185
+ return {"marks_awarded": current_score_change, "evaluation_status": evaluation_status}
186
+
187
+
188
+ def calculate_max_score_for_question(exam_name: str, question_type: str) -> int:
189
+ """
190
+ Returns the maximum possible score for a given exam and question type.
191
+ """
192
+ exam_name = exam_name.upper()
193
+ question_type = question_type.upper()
194
+
195
+ if exam_name == "NEET" and question_type == "MCQ_SINGLE_CORRECT":
196
+ return 4
197
+ elif exam_name == "JEE_MAIN":
198
+ if question_type == "MCQ_SINGLE_CORRECT":
199
+ return 4
200
+ elif question_type == "INTEGER":
201
+ return 4
202
+ elif exam_name == "JEE_ADVANCED":
203
+ if question_type == "MCQ_SINGLE_CORRECT":
204
+ return 3
205
+ elif question_type == "INTEGER":
206
+ return 4
207
+ elif question_type == "MCQ_MULTIPLE_CORRECT":
208
+ return 4 # Max score for multiple correct is 4
209
+ return 0 # Default for unknown types
210
+
211
+
212
+ def calculate_exam_scores(results: List[Dict[str, Any]]) -> Dict[str, Any]:
213
+ """
214
+ Calculates exam scores based on exam_name and question_type, providing section-wise breakdown
215
+ and detailed question type statistics.
216
+
217
+ Args:
218
+ results (List[Dict[str, Any]]): A list of result dictionaries. Each dict must contain:
219
+ 'question_id' (str)
220
+ 'subject' (str)
221
+ 'exam_name' (str) e.g., "NEET", "JEE_MAIN", "JEE_ADVANCED"
222
+ 'question_type' (str) e.g., "MCQ_SINGLE_CORRECT", "MCQ_MULTIPLE_CORRECT", "INTEGER"
223
+ 'ground_truth' (List[str] | str): Correct answer(s). For INTEGER, it's a single str.
224
+ 'predicted_answer' (List[str] | str | None): Model's prediction.
225
+ 'api_call_successful' (bool): Whether the API call succeeded.
226
+ This list will be modified in-place to add 'evaluation_status' and 'marks_awarded' by calling
227
+ calculate_single_question_score_details for each item.
228
+ Returns:
229
+ Dict[str, Any]: A dictionary containing overall and section-wise scores and counts,
230
+ plus question type breakdowns and total possible score.
231
+ """
232
+ if not results:
233
+ return {"error": "No results provided."}
234
+
235
+ overall_stats = {
236
+ "score": 0,
237
+ "correct": 0,
238
+ "incorrect": 0,
239
+ "skipped": 0,
240
+ "api_parse_failures": 0,
241
+ "partial_correct": 0,
242
+ "total_possible_score": 0 # New field
243
+ }
244
+
245
+ # Initialize question type breakdown
246
+ question_type_breakdown: Dict[str, Dict[str, Any]] = {}
247
+
248
+ valid_subjects_from_data = [r.get("subject") for r in results if r.get("subject") and isinstance(r.get("subject"), str) and r.get("subject").strip()]
249
+ if not valid_subjects_from_data and results:
250
+ logging.warning("No valid subjects found in results data to initialize section_stats.")
251
+
252
+ unique_subjects = sorted(list(set(s.strip() for s in valid_subjects_from_data)))
253
+ section_stats = {
254
+ subj: {"score": 0, "correct": 0, "incorrect": 0, "skipped": 0, "api_parse_failures": 0, "partial_correct": 0}
255
+ for subj in unique_subjects
256
+ }
257
+ if not unique_subjects and results:
258
+ logging.warning("section_stats is empty because no unique, valid subjects were found.")
259
+
260
+ unmapped_section_questions = 0
261
+
262
+ for result in results:
263
+ question_id = result.get("question_id") # For logging within loop
264
+ subject = result.get("subject") # For section mapping
265
+ exam_name = result.get("exam_name", "").upper()
266
+ question_type = result.get("question_type", "").upper()
267
+
268
+ # Calculate score details for the single question
269
+ score_details = calculate_single_question_score_details(result)
270
+ current_score_change = score_details.get("marks_awarded", 0)
271
+ evaluation_status = score_details.get("evaluation_status", "unknown_error_in_scoring")
272
+
273
+ # Update the result dictionary in-place (as original function did)
274
+ result['evaluation_status'] = evaluation_status
275
+ result['marks_awarded'] = current_score_change
276
+
277
+ # Accumulate total possible score
278
+ overall_stats["total_possible_score"] += calculate_max_score_for_question(exam_name, question_type)
279
+
280
+ # Determine boolean flags based on evaluation_status for aggregation
281
+ is_correct_full = evaluation_status in ["correct", "correct_full"]
282
+ is_partial_correct = evaluation_status.startswith("partial_")
283
+ is_incorrect_choice = evaluation_status in ["incorrect", "incorrect_negative"]
284
+ is_skipped = evaluation_status == "skipped"
285
+ is_api_parse_failure = evaluation_status in ["failure_api_or_parse", "failure_unexpected_type", "error_bad_ground_truth"]
286
+
287
+
288
+ overall_stats["score"] += current_score_change
289
+ if is_correct_full: overall_stats["correct"] += 1
290
+ if is_incorrect_choice: overall_stats["incorrect"] += 1
291
+ if is_skipped: overall_stats["skipped"] += 1
292
+ if is_api_parse_failure: overall_stats["api_parse_failures"] += 1
293
+ if is_partial_correct: overall_stats["partial_correct"] +=1
294
+
295
+ # Aggregate by question type
296
+ if question_type not in question_type_breakdown:
297
+ question_type_breakdown[question_type] = {
298
+ "count": 0,
299
+ "score": 0,
300
+ "correct_full": 0,
301
+ "partial_correct": 0,
302
+ "incorrect_choice": 0,
303
+ "skipped": 0,
304
+ "api_parse_failures": 0,
305
+ "max_score_per_question": calculate_max_score_for_question(exam_name, question_type)
306
+ }
307
+
308
+ q_type_stats = question_type_breakdown[question_type]
309
+ q_type_stats["count"] += 1
310
+ q_type_stats["score"] += current_score_change
311
+ if is_correct_full: q_type_stats["correct_full"] += 1
312
+ if is_incorrect_choice: q_type_stats["incorrect_choice"] += 1
313
+ if is_skipped: q_type_stats["skipped"] += 1
314
+ if is_api_parse_failure: q_type_stats["api_parse_failures"] += 1
315
+ if is_partial_correct: q_type_stats["partial_correct"] += 1
316
+
317
+ section = None
318
+ if subject:
319
+ question_num_for_log = -1 # Placeholder, as QID might not have number
320
+ if question_id:
321
+ match_num = re.search(r'_(\d+)$', question_id)
322
+ if match_num:
323
+ try: question_num_for_log = int(match_num.group(1))
324
+ except ValueError: pass
325
+ section = get_subject_as_section(subject, question_num_for_log)
326
+
327
+ if section and section in section_stats:
328
+ section_stats[section]["score"] += current_score_change
329
+ if is_correct_full: section_stats[section]["correct"] += 1
330
+ if is_incorrect_choice: section_stats[section]["incorrect"] += 1
331
+ if is_skipped: section_stats[section]["skipped"] += 1
332
+ if is_api_parse_failure: section_stats[section]["api_parse_failures"] += 1
333
+ if is_partial_correct: section_stats[section]["partial_correct"] +=1
334
+ elif section is None and not is_api_parse_failure : # only count as unmapped if not already an API/parse failure (which might lack subject)
335
+ unmapped_section_questions += 1
336
+ # logging.warning(f"Could not map question to section: ID={question_id}, Subject={subject}") # Already logged by get_subject_as_section if subject is bad
337
+
338
+ logging.info(f"Exam Score Calculation Complete. Overall Score: {overall_stats['score']}")
339
+ if unmapped_section_questions > 0:
340
+ logging.warning(f"{unmapped_section_questions} questions could not be mapped to a section.")
341
+
342
+ return {
343
+ "overall_score": overall_stats["score"],
344
+ "overall_correct_full": overall_stats["correct"],
345
+ "overall_partial_correct": overall_stats["partial_correct"],
346
+ "overall_incorrect_choice": overall_stats["incorrect"],
347
+ "overall_skipped": overall_stats["skipped"],
348
+ "overall_api_parse_failures": overall_stats["api_parse_failures"],
349
+ "total_questions_processed": len(results),
350
+ "total_possible_score_for_processed_questions": overall_stats["total_possible_score"], # New field
351
+ "unmapped_section_questions": unmapped_section_questions,
352
+ "section_breakdown": section_stats,
353
+ "question_type_breakdown": question_type_breakdown # New field
354
+ }
355
+
356
+
357
+ # Example Usage (for testing)
358
+ if __name__ == '__main__':
359
+ print("Running evaluation tests...")
360
+
361
+ # --- Test calculate_exam_scores (now with strings) ---
362
+ print("\n--- Testing calculate_exam_scores ---")
363
+ test_results_exam = [
364
+ # NEET - Answers as strings "1", "2", "A", "B" etc.
365
+ {"question_id": "N001", "subject": "Physics", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["1"], "predicted_answer": ["1"], "api_call_successful": True}, # Correct +4
366
+ {"question_id": "N002", "subject": "Physics", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["D"], "predicted_answer": ["B"], "api_call_successful": True}, # Incorrect -1
367
+ {"question_id": "N003", "subject": "Chemistry", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["4"], "predicted_answer": "SKIP", "api_call_successful": True}, # Skipped 0
368
+ {"question_id": "N004", "subject": "Chemistry", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["C"], "predicted_answer": None, "api_call_successful": False}, # API Fail -1
369
+ {"question_id": "N005", "subject": "Botany", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["A"], "predicted_answer": None, "api_call_successful": True}, # Parse Fail -1
370
+
371
+ # JEE Main - MCQ - Answers as strings "1", "2", "A", "B" etc.
372
+ {"question_id": "JM001", "subject": "Maths", "exam_name": "JEE_MAIN", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["2"], "predicted_answer": ["2"], "api_call_successful": True}, # Correct +4
373
+ {"question_id": "JM002", "subject": "Maths", "exam_name": "JEE_MAIN", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["C"], "predicted_answer": ["a"], "api_call_successful": True}, # Incorrect -1 (C vs a)
374
+ # JEE Main - Integer - Answers as strings e.g., "5", "10"
375
+ {"question_id": "JM003", "subject": "Physics", "exam_name": "JEE_MAIN", "question_type": "INTEGER", "ground_truth": ["5"], "predicted_answer": ["5"], "api_call_successful": True}, # Correct +4
376
+ {"question_id": "JM004", "subject": "Physics", "exam_name": "JEE_MAIN", "question_type": "INTEGER", "ground_truth": ["10"], "predicted_answer": ["8"], "api_call_successful": True}, # Incorrect 0
377
+ {"question_id": "JM005", "subject": "Chemistry", "exam_name": "JEE_MAIN", "question_type": "INTEGER", "ground_truth": ["7"], "predicted_answer": None, "api_call_successful": True}, # Parse Fail 0
378
+
379
+ # JEE Advanced - MCQ Single Correct - Answers as strings "A", "B" etc.
380
+ {"question_id": "JA001", "subject": "Maths", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["A"], "predicted_answer": ["a"], "api_call_successful": True}, # Correct +3 (case-insensitive)
381
+ {"question_id": "JA002", "subject": "Maths", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["B"], "predicted_answer": ["C"], "api_call_successful": True}, # Incorrect -1
382
+ # JEE Advanced - Integer - Answers as strings e.g., "12", "0"
383
+ {"question_id": "JA003", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "ground_truth": ["12"], "predicted_answer": ["12"], "api_call_successful": True}, # Correct +4
384
+ {"question_id": "JA004", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "ground_truth": ["0"], "predicted_answer": ["1"], "api_call_successful": True}, # Incorrect 0
385
+ # JEE Advanced - MCQ Multiple Correct - Answers as strings "A", "C" etc.
386
+ {"question_id": "JA005", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": ["a", "c"], "api_call_successful": True}, # All Correct +4
387
+ {"question_id": "JA006", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "B", "C"], "predicted_answer": ["a", "b"], "api_call_successful": True}, # Partial +2 (3 correct, 2 chosen)
388
+ {"question_id": "JA007", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "B", "C", "D"], "predicted_answer": ["a", "b", "c"], "api_call_successful": True}, # Partial +3 (4 correct, 3 chosen)
389
+ {"question_id": "JA008", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "B"], "predicted_answer": ["a"], "api_call_successful": True}, # Partial +1 (2 correct, 1 chosen)
390
+ {"question_id": "JA009", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": ["a", "b"], "api_call_successful": True}, # Incorrect option chosen -2
391
+ {"question_id": "JA010", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": ["b", "d"], "api_call_successful": True}, # All incorrect options chosen -2
392
+ {"question_id": "JA011", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": "SKIP", "api_call_successful": True}, # Skipped 0
393
+ {"question_id": "JA012", "subject": "Maths", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A"], "predicted_answer": ["a"], "api_call_successful": True}, # Single correct in multi-choice, full marks +4
394
+ {"question_id": "JA013", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A","B","C"], "predicted_answer": ["a","d"], "api_call_successful": True}, # One correct, one incorrect -> -2
395
+ ]
396
+
397
+ exam_summary = calculate_exam_scores(test_results_exam)
398
+ print("\nExam Score Summary:")
399
+ import json
400
+ print(json.dumps(exam_summary, indent=2, sort_keys=True))
401
+
402
+ # Basic assertions - can be expanded
403
+ assert exam_summary["overall_score"] == (4-1+0+0+0) + (4-1) + (4+0+0) + (3-1) + (4+0) + (4+2+3+1-2-2+0+4-2)
404
+ assert exam_summary["overall_correct_full"] == 7
405
+ assert exam_summary["overall_partial_correct"] == 3
406
+ assert exam_summary["overall_incorrect_choice"] == 8
407
+ assert exam_summary["overall_skipped"] == 2
408
+ assert exam_summary["overall_api_parse_failures"] == 3 # N004, N005, JM005
409
+
410
+ assert exam_summary["section_breakdown"]["Physics"]["score"] == (4-1) + (4+0) + (4+0) - 2 # N001,N002 + JM003,JM004 + JA003,JA004 + JA013
411
+ assert exam_summary["section_breakdown"]["Chemistry"]["score"] == (0+0) + (0) + (4+2+3+1-2-2+0) # N003,N004 + JM005 + JA005-JA011
412
+ assert exam_summary["section_breakdown"]["Botany"]["score"] == 0 # N005 (parse fail = 0 penalty)
413
+ assert exam_summary["section_breakdown"]["Maths"]["score"] == (4-1) + (3-1) + 4 # JM001,JM002 + JA001,JA002 + JA012
414
+
415
+ print("\nEvaluation tests completed.")
src/llm_interface.py ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import base64
2
+ import requests
3
+ import time
4
+ import logging
5
+ from io import BytesIO
6
+ from PIL import Image
7
+ from tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type
8
+
9
+ from utils import parse_llm_answer
10
+ from prompts import (
11
+ INITIAL_PROMPT_TEMPLATE,
12
+ REPROMPT_PROMPT_TEMPLATE,
13
+ get_answer_format_instruction,
14
+ get_example_instruction,
15
+ get_specific_instructions_reprompt,
16
+ get_reprompt_example_instruction
17
+ )
18
+
19
+ # Configure logging
20
+ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
21
+
22
+ # OpenRouter API endpoint
23
+ OPENROUTER_API_ENDPOINT = "https://openrouter.ai/api/v1/chat/completions"
24
+
25
+ # Define exceptions for retry logic
26
+ RETRYABLE_EXCEPTIONS = (
27
+ requests.exceptions.Timeout,
28
+ requests.exceptions.ConnectionError,
29
+ requests.exceptions.RequestException # Catch broader request errors for retries
30
+ )
31
+
32
+ # Define status codes that warrant a retry
33
+ RETRYABLE_STATUS_CODES = {429, 500, 502, 503, 504}
34
+
35
+ # Retry decorator configuration
36
+ retry_config = dict(
37
+ stop=stop_after_attempt(3), # Retry up to 3 times
38
+ wait=wait_exponential(multiplier=1, min=2, max=10), # Exponential backoff: 2s, 4s, 8s...
39
+ retry=(retry_if_exception_type(RETRYABLE_EXCEPTIONS)) # Retry on specific exceptions
40
+ # We will handle status code retries manually within the function for more control
41
+ )
42
+
43
+ def encode_image_to_base64(image: Image.Image) -> str:
44
+ """Encodes a PIL Image object to a base64 string."""
45
+ buffered = BytesIO()
46
+ # Ensure image is in RGB format for broad compatibility
47
+ if image.mode != 'RGB':
48
+ image = image.convert('RGB')
49
+ image.save(buffered, format="JPEG") # Save as JPEG for potentially smaller size
50
+ img_str = base64.b64encode(buffered.getvalue()).decode('utf-8')
51
+ return img_str
52
+
53
+ def construct_reprompt_prompt(previous_raw_response: str, question_type: str) -> list:
54
+ """Constructs the message list for a re-prompt API call based on question_type."""
55
+ specific_instructions = get_specific_instructions_reprompt(question_type)
56
+ reprompt_example_instruction = get_reprompt_example_instruction(question_type)
57
+
58
+ prompt_text = REPROMPT_PROMPT_TEMPLATE.format(
59
+ previous_raw_response=previous_raw_response,
60
+ question_type=question_type,
61
+ specific_instructions=specific_instructions,
62
+ reprompt_example_instruction=reprompt_example_instruction
63
+ )
64
+ messages = [{"role": "user", "content": prompt_text}]
65
+ return messages
66
+
67
+
68
+ def construct_initial_prompt(base64_image: str, exam_name: str, exam_year: str, question_type: str) -> list:
69
+ """Constructs the initial message list with image for the OpenRouter API call, tailored by question_type."""
70
+
71
+ answer_format_instruction = get_answer_format_instruction(question_type)
72
+ example_instruction = get_example_instruction(question_type)
73
+
74
+ prompt_text = INITIAL_PROMPT_TEMPLATE.format(
75
+ exam_name=exam_name,
76
+ exam_year=exam_year,
77
+ question_type=question_type,
78
+ answer_format_instruction=answer_format_instruction,
79
+ example_instruction=example_instruction
80
+ )
81
+
82
+ messages = [
83
+ {
84
+ "role": "user",
85
+ "content": [
86
+ {"type": "text", "text": prompt_text},
87
+ {
88
+ "type": "image_url",
89
+ "image_url": {
90
+ "url": f"data:image/jpeg;base64,{base64_image}"
91
+ }
92
+ }
93
+ ]
94
+ }
95
+ ]
96
+ return messages
97
+
98
+ @retry(**retry_config)
99
+ def get_openrouter_prediction(
100
+ model_identifier: str,
101
+ api_key: str,
102
+ image: Image.Image | None = None, # Image is now optional
103
+ previous_raw_response: str | None = None, # Added for re-prompting
104
+ exam_name: str | None = None,
105
+ exam_year: str | None = None,
106
+ question_type: str = "MCQ_SINGLE_CORRECT", # New parameter with default
107
+ max_tokens: int = 100,
108
+ request_timeout: int = 60,
109
+ temperature: float = 0.0,
110
+ ) -> tuple[list[str] | str | None, str | None, dict | None]:
111
+ """
112
+ Gets a prediction from an OpenRouter model. Handles initial image prompts and text-only re-prompts.
113
+
114
+ Args:
115
+ model_identifier (str): The OpenRouter model identifier (e.g., "openai/gpt-4o").
116
+ api_key (str): The OpenRouter API key.
117
+ image (Image.Image | None): The question image (for initial prompt). Default None.
118
+ previous_raw_response (str | None): The raw response from a previous failed parse attempt (for re-prompt). Default None.
119
+ exam_name (str | None): The name of the exam (e.g., "NEET", "JEE"). Required if 'image' is provided for initial prompt.
120
+ exam_year (str | None): The year of the exam. Required if 'image' is provided for initial prompt.
121
+ question_type (str): Type of question, e.g., "MCQ_SINGLE_CORRECT", "MCQ_MULTIPLE_CORRECT", "INTEGER".
122
+ max_tokens (int): Max tokens for the response.
123
+ request_timeout (int): Timeout for the API request in seconds.
124
+ temperature (float): Sampling temperature. 0.0 for deterministic output.
125
+
126
+ Returns:
127
+ tuple[list[str] | str | None, str | None, dict | None]: A tuple containing:
128
+ - The parsed answer as a list of strings, the string "SKIP", or None if failed.
129
+ - The raw response text from the LLM (or None if API call failed).
130
+ - Response metadata dict (tokens, latency, model version, cost) or None.
131
+
132
+ Raises:
133
+ ValueError: If arguments are inconsistent (e.g., image provided without exam details for initial prompt).
134
+ requests.exceptions.RequestException: If the API call fails after retries.
135
+ """
136
+ logging.info(f"Requesting prediction from model: {model_identifier} for question_type: {question_type}")
137
+
138
+ if image is not None and previous_raw_response is None:
139
+ # Initial prompt with image
140
+ if not exam_name or not exam_year: # exam_name and exam_year are crucial for initial prompt context
141
+ raise ValueError("'exam_name' and 'exam_year' must be provided when 'image' is specified for an initial prompt.")
142
+ logging.debug(f"Constructing initial prompt with image for {exam_name} {exam_year}, type: {question_type}.")
143
+ base64_image = encode_image_to_base64(image)
144
+ messages = construct_initial_prompt(base64_image, exam_name, exam_year, question_type)
145
+ elif image is None and previous_raw_response is not None:
146
+ # Re-prompt based on previous response
147
+ logging.debug(f"Constructing re-prompt based on previous response for type: {question_type}.")
148
+ messages = construct_reprompt_prompt(previous_raw_response, question_type)
149
+ else:
150
+ # This condition means either both image and previous_raw_response are None, or both are provided.
151
+ # The latter (both provided) is ambiguous for which prompt to use.
152
+ # The former (both None) means no input to act on.
153
+ raise ValueError("Provide 'image' (with 'exam_name' and 'exam_year') for an initial call, OR 'previous_raw_response' for a re-prompt. Not neither or both.")
154
+
155
+
156
+ try:
157
+ headers = {
158
+ "Authorization": f"Bearer {api_key}",
159
+ "Content-Type": "application/json"
160
+ }
161
+
162
+ data = {
163
+ "model": model_identifier,
164
+ "messages": messages,
165
+ "max_tokens": max_tokens,
166
+ "temperature": temperature,
167
+ "usage": {"include": True},
168
+ }
169
+
170
+ request_start_time = time.time()
171
+ response = requests.post(
172
+ OPENROUTER_API_ENDPOINT,
173
+ headers=headers,
174
+ json=data,
175
+ timeout=request_timeout
176
+ )
177
+ response_latency_ms = round((time.time() - request_start_time) * 1000)
178
+
179
+ if response.status_code in RETRYABLE_STATUS_CODES:
180
+ logging.warning(f"Received retryable status code {response.status_code} from {model_identifier} for {question_type}. Retrying might occur.")
181
+ response.raise_for_status()
182
+
183
+ if not response.ok:
184
+ logging.error(f"API Error for model {model_identifier} ({question_type}): Status {response.status_code} - {response.text}")
185
+ return None, None, None
186
+
187
+ response_json = response.json()
188
+ raw_response_text = response_json.get("choices", [{}])[0].get("message", {}).get("content")
189
+
190
+ # Extract response metadata
191
+ usage = response_json.get("usage", {})
192
+ response_metadata = {
193
+ "generation_id": response_json.get("id"),
194
+ "prompt_tokens": usage.get("prompt_tokens"),
195
+ "completion_tokens": usage.get("completion_tokens"),
196
+ "total_tokens": usage.get("total_tokens"),
197
+ "cost": usage.get("cost"),
198
+ "response_latency_ms": response_latency_ms,
199
+ "model_version": response_json.get("model"),
200
+ "temperature": temperature,
201
+ }
202
+
203
+ if not raw_response_text:
204
+ logging.warning(f"Empty response content received from model: {model_identifier} for {question_type}")
205
+ return None, None, response_metadata
206
+
207
+ logging.info(f"Raw response received from {model_identifier} ({question_type}): '{raw_response_text[:100]}...'")
208
+ # Pass question_type to parse_llm_answer
209
+ parsed_answer = parse_llm_answer(raw_response_text, question_type=question_type)
210
+
211
+ if parsed_answer is None:
212
+ logging.warning(f"Failed to parse answer from model {model_identifier} for {question_type}.")
213
+
214
+ return parsed_answer, raw_response_text, response_metadata
215
+
216
+ except requests.exceptions.Timeout as e:
217
+ logging.error(f"Request timed out for model {model_identifier} ({question_type}): {e}")
218
+ raise
219
+ except requests.exceptions.RequestException as e:
220
+ logging.error(f"Request failed for model {model_identifier} ({question_type}): {e}")
221
+ raise
222
+ except Exception as e:
223
+ logging.error(f"An unexpected error occurred for model {model_identifier} ({question_type}): {e}")
224
+ return None, None, None
225
+
226
+ # Example Usage (requires a valid API key in .env and Pillow/requests/tenacity installed)
227
+ if __name__ == '__main__':
228
+ from src.utils import load_api_key
229
+ try:
230
+ dummy_image = Image.new('RGB', (60, 30), color = 'black')
231
+ api_key = load_api_key()
232
+ test_model = "anthropic/claude-3-haiku"
233
+
234
+ print(f"\n--- Testing with model: {test_model} ---")
235
+
236
+ # Test Case 1: Initial call - MCQ_SINGLE_CORRECT
237
+ print("\nTest Case 1: Initial - MCQ_SINGLE_CORRECT")
238
+ parsed_ans_1, raw_resp_1, meta_1 = get_openrouter_prediction(
239
+ model_identifier=test_model, api_key=api_key, image=dummy_image,
240
+ exam_name="DUMMY_EXAM", exam_year="2024", question_type="MCQ_SINGLE_CORRECT"
241
+ )
242
+ print(f"Parsed: {parsed_ans_1}, Raw: {raw_resp_1[:60] if raw_resp_1 else None}...")
243
+ print(f"Metadata: {meta_1}")
244
+
245
+ # Test Case 2: Initial call - MCQ_MULTIPLE_CORRECT
246
+ print("\nTest Case 2: Initial - MCQ_MULTIPLE_CORRECT")
247
+ parsed_ans_2, raw_resp_2, meta_2 = get_openrouter_prediction(
248
+ model_identifier=test_model, api_key=api_key, image=dummy_image,
249
+ exam_name="DUMMY_EXAM", exam_year="2024", question_type="MCQ_MULTIPLE_CORRECT"
250
+ )
251
+ print(f"Parsed: {parsed_ans_2}, Raw: {raw_resp_2[:60] if raw_resp_2 else None}...")
252
+
253
+ # Test Case 3: Initial call - INTEGER
254
+ print("\nTest Case 3: Initial - INTEGER")
255
+ parsed_ans_3, raw_resp_3, meta_3 = get_openrouter_prediction(
256
+ model_identifier=test_model, api_key=api_key, image=dummy_image,
257
+ exam_name="DUMMY_EXAM", exam_year="2024", question_type="INTEGER"
258
+ )
259
+ print(f"Parsed: {parsed_ans_3}, Raw: {raw_resp_3[:60] if raw_resp_3 else None}...")
260
+
261
+
262
+ # Test Case 4: Re-prompt - MCQ_SINGLE_CORRECT (simulating bad initial response)
263
+ print("\nTest Case 4: Re-prompt - MCQ_SINGLE_CORRECT")
264
+ bad_initial_resp_mcq_single = "<answer>1 2</answer> This is some extra text."
265
+ reprompt_ans_4, reprompt_raw_4, meta_4 = get_openrouter_prediction(
266
+ model_identifier=test_model, api_key=api_key,
267
+ previous_raw_response=bad_initial_resp_mcq_single, question_type="MCQ_SINGLE_CORRECT"
268
+ )
269
+ print(f"Parsed: {reprompt_ans_4}, Raw: {reprompt_raw_4[:60] if reprompt_raw_4 else None}...")
270
+
271
+ # Test Case 5: Re-prompt - MCQ_MULTIPLE_CORRECT (simulating bad initial response)
272
+ print("\nTest Case 5: Re-prompt - MCQ_MULTIPLE_CORRECT")
273
+ bad_initial_resp_mcq_multi = "The answer is <answer>option 1 and 4</answer> because reasons."
274
+ reprompt_ans_5, reprompt_raw_5, meta_5 = get_openrouter_prediction(
275
+ model_identifier=test_model, api_key=api_key,
276
+ previous_raw_response=bad_initial_resp_mcq_multi, question_type="MCQ_MULTIPLE_CORRECT"
277
+ )
278
+ print(f"Parsed: {reprompt_ans_5}, Raw: {reprompt_raw_5[:60] if reprompt_raw_5 else None}...")
279
+
280
+ except ValueError as e:
281
+ print(f"Setup or Argument Error: {e}")
282
+ except Exception as e:
283
+ print(f"Runtime Error during example execution: {e}")
src/prompts.py ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # System prompts for LLM interaction
2
+
3
+ # --- Initial Prompt Components ---
4
+
5
+ ANSWER_FORMAT_INSTRUCTIONS = {
6
+ "MCQ_SINGLE_CORRECT": "Pick the single correct option (e.g., A, B, 1, 2).",
7
+ "INTEGER": "Find the numerical answer (integer or decimal).",
8
+ "MCQ_MULTIPLE_CORRECT": "Pick all correct options (e.g., A,C or 1,3), comma-separated.",
9
+ "DEFAULT": "Answer based on the question's format."
10
+ }
11
+
12
+ EXAMPLE_INSTRUCTIONS = {
13
+ "MCQ_SINGLE_CORRECT": "- <answer>A</answer>\n- <answer>2</answer>",
14
+ "INTEGER": "- <answer>5</answer>\n- <answer>12.75</answer>",
15
+ "MCQ_MULTIPLE_CORRECT": "- <answer>A,C</answer>\n- <answer>1,3</answer>\n- <answer>B</answer>",
16
+ "DEFAULT": "- <answer>Your Answer</answer>"
17
+ }
18
+
19
+ INITIAL_PROMPT_TEMPLATE = """Look at this {exam_name} {exam_year} exam question ({question_type}).
20
+
21
+ {answer_format_instruction}
22
+
23
+ Respond with ONLY an <answer> tag. No other text.
24
+
25
+ {example_instruction}
26
+ - Unsure: <answer>SKIP</answer>"""
27
+
28
+
29
+ # --- Reprompt Components ---
30
+
31
+ SPECIFIC_INSTRUCTIONS_REPROMPT = {
32
+ "MCQ_SINGLE_CORRECT": "provide the correct option (e.g., A or 2)",
33
+ "INTEGER": "provide the numerical answer",
34
+ "MCQ_MULTIPLE_CORRECT": "provide all correct options comma-separated (e.g., A,C)",
35
+ "DEFAULT": "provide the answer"
36
+ }
37
+
38
+ REPROMPT_EXAMPLE_INSTRUCTIONS = {
39
+ "MCQ_SINGLE_CORRECT": "<answer>A</answer>",
40
+ "MCQ_MULTIPLE_CORRECT": "<answer>A,C</answer>",
41
+ "INTEGER": "<answer>42</answer>",
42
+ "DEFAULT": "<answer>Your Answer</answer>",
43
+ }
44
+
45
+ REPROMPT_PROMPT_TEMPLATE = """Your previous response was not in the correct format.
46
+
47
+ Previous response:
48
+ {previous_raw_response}
49
+
50
+ This is a '{question_type}' question. Please {specific_instructions} in an <answer> tag.
51
+
52
+ Example: {reprompt_example_instruction}
53
+ Unsure: <answer>SKIP</answer>
54
+
55
+ Respond with ONLY the <answer> tag. No other text."""
56
+
57
+ # --- Helper functions to get instructions ---
58
+
59
+ def get_answer_format_instruction(question_type: str) -> str:
60
+ return ANSWER_FORMAT_INSTRUCTIONS.get(question_type, ANSWER_FORMAT_INSTRUCTIONS["DEFAULT"])
61
+
62
+ def get_example_instruction(question_type: str) -> str:
63
+ return EXAMPLE_INSTRUCTIONS.get(question_type, EXAMPLE_INSTRUCTIONS["DEFAULT"])
64
+
65
+ def get_specific_instructions_reprompt(question_type: str) -> str:
66
+ return SPECIFIC_INSTRUCTIONS_REPROMPT.get(question_type, SPECIFIC_INSTRUCTIONS_REPROMPT["DEFAULT"])
67
+
68
+ def get_reprompt_example_instruction(question_type: str) -> str:
69
+ return REPROMPT_EXAMPLE_INSTRUCTIONS.get(question_type, REPROMPT_EXAMPLE_INSTRUCTIONS["DEFAULT"])
src/utils.py ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import re
3
+ from dotenv import load_dotenv
4
+ import logging
5
+
6
+ logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
7
+
8
+ def load_api_key(key_name="OPENROUTER_API_KEY"):
9
+ """
10
+ Loads the specified API key from environment variables.
11
+ Loads .env file first if it exists.
12
+
13
+ Args:
14
+ key_name (str): The name of the environment variable holding the API key.
15
+
16
+ Returns:
17
+ str: The API key.
18
+
19
+ Raises:
20
+ ValueError: If the API key environment variable is not set.
21
+ """
22
+ load_dotenv() # Load environment variables from .env file if it exists
23
+ api_key = os.getenv(key_name)
24
+ if not api_key:
25
+ raise ValueError(
26
+ f"'{key_name}' environment variable not set. Please create a .env file or set the variable."
27
+ )
28
+ return api_key
29
+
30
+
31
+ def parse_llm_answer(response_text: str, question_type: str = "MCQ_SINGLE_CORRECT") -> list[str] | str | None:
32
+ """
33
+ Parses the LLM response text to extract answers within <answer> tags.
34
+ The parsing logic adapts based on the question_type.
35
+
36
+ Handles:
37
+ - MCQ_SINGLE_CORRECT: Single option identifier (integer like "1", "2" or letter like "A", "B").
38
+ - INTEGER: Single numerical value, which can be an integer or a decimal (e.g., "5", "12.75", "0.5").
39
+ - MCQ_MULTIPLE_CORRECT: Multiple option identifiers (integers or letters), comma-separated.
40
+ - The specific string "SKIP" for skipped questions (case-insensitive content within tags).
41
+ - Potential newlines and varied spacing within the tags.
42
+
43
+ Args:
44
+ response_text (str): The raw text response from the LLM.
45
+ question_type (str): The type of question, e.g., "MCQ_SINGLE_CORRECT",
46
+ "MCQ_MULTIPLE_CORRECT", "INTEGER".
47
+ Defaults to "MCQ_SINGLE_CORRECT".
48
+
49
+ Returns:
50
+ list[str] | str | None:
51
+ - A list containing string answer(s) if found and valid.
52
+ (e.g., ["1"], ["A"], ["12.75"], ["A", "C"])
53
+ - The string "SKIP" if the response indicates a skip.
54
+ - None if parsing fails (no tag, invalid content, type mismatch, etc.).
55
+ """
56
+ if not response_text:
57
+ return None
58
+
59
+ # Check for exact SKIP response first (case-insensitive for the tag and content)
60
+ # Using regex to be more flexible with whitespace around SKIP
61
+ skip_match = re.search(r"<answer>\s*SKIP\s*</answer>", response_text, re.IGNORECASE)
62
+ if skip_match:
63
+ logging.info(f"Parsed answer as SKIP for question_type: {question_type}.")
64
+ return "SKIP"
65
+
66
+ match = re.search(r"<answer>(.*?)</answer>", response_text, re.DOTALL | re.IGNORECASE)
67
+
68
+ if not match:
69
+ logging.warning(f"Could not find <answer> tag in response for question_type: {question_type} in response: '{response_text[:200]}...'")
70
+ return None
71
+
72
+ extracted_content = match.group(1).strip()
73
+ if not extracted_content:
74
+ logging.warning(f"Found <answer> tag but content is empty for question_type: {question_type}.")
75
+ return None
76
+
77
+ potential_answers_str_list = [item.strip() for item in extracted_content.split(',')]
78
+ parsed_answers_final = []
79
+
80
+ for ans_str_raw in potential_answers_str_list:
81
+ ans_str = ans_str_raw.strip()
82
+ if not ans_str: # Skip empty strings that might result from "1, ,2" or trailing commas
83
+ continue
84
+
85
+ if question_type == "INTEGER":
86
+ try:
87
+ # Try to parse as float to validate it's a number (integer or decimal).
88
+ # The value is kept as a string to preserve original formatting (e.g., "0.50", "5.0")
89
+ # for exact string comparison with ground truth if needed, and for consistent type handling.
90
+ float(ans_str)
91
+ parsed_answers_final.append(ans_str)
92
+ except ValueError:
93
+ logging.warning(f"Could not parse '{ans_str}' as a valid number (integer or decimal) for INTEGER type. Full content: '{extracted_content}'")
94
+ return None # If any part is not a valid number for INTEGER type, fail parsing.
95
+
96
+ elif question_type in ["MCQ_SINGLE_CORRECT", "MCQ_MULTIPLE_CORRECT"]:
97
+ # For MCQs, accept single-digit numbers (1-9) or letters A-D.
98
+ if re.fullmatch(r"[1-9]", ans_str): # Single digit options
99
+ parsed_answers_final.append(ans_str)
100
+ elif re.fullmatch(r"[a-dA-D]", ans_str): # Letter options A-D
101
+ parsed_answers_final.append(ans_str.upper())
102
+ else:
103
+ logging.warning(f"Could not parse '{ans_str}' as a valid MCQ option (expected 1-9 or A-D). Full content: '{extracted_content}'")
104
+ return None
105
+ else: # Should not happen if question_type is validated before calling
106
+ logging.error(f"Unknown question_type '{question_type}' encountered in parse_llm_answer logic.")
107
+ return None
108
+
109
+
110
+ if not parsed_answers_final: # If list is empty after processing (e.g. content was just commas)
111
+ logging.warning(f"No valid answer items found after parsing content: '{extracted_content}' for question_type: {question_type}.")
112
+ return None
113
+
114
+ # Apply rules based on question_type for number of answers
115
+ if question_type in ["MCQ_SINGLE_CORRECT", "INTEGER"]:
116
+ if len(parsed_answers_final) == 1:
117
+ return parsed_answers_final # Returns list[str] with one element
118
+ else:
119
+ logging.warning(f"Expected single answer for {question_type}, but found {len(parsed_answers_final)} items: {parsed_answers_final}. Content: '{extracted_content}'")
120
+ return None
121
+ elif question_type == "MCQ_MULTIPLE_CORRECT":
122
+ # For multiple correct, any number of valid items is acceptable.
123
+ # Return them sorted and unique.
124
+ return sorted(list(set(parsed_answers_final)))
125
+ else:
126
+ # This case should ideally be caught by earlier checks or input validation.
127
+ logging.error(f"Unknown question_type '{question_type}' provided to parse_llm_answer at final stage.")
128
+ return None
129
+
130
+ # Example Usage (for testing)
131
+ if __name__ == '__main__':
132
+ test_cases = [
133
+ # MCQ_SINGLE_CORRECT (can be number or letter)
134
+ {"resp": "<answer>2</answer>", "type": "MCQ_SINGLE_CORRECT", "expected": ["2"]},
135
+ {"resp": "<answer>B</answer>", "type": "MCQ_SINGLE_CORRECT", "expected": ["B"]},
136
+ {"resp": "<answer> c </answer>", "type": "MCQ_SINGLE_CORRECT", "expected": ["C"]},
137
+ {"resp": "<answer>1,3</answer>", "type": "MCQ_SINGLE_CORRECT", "expected": None}, # Fail: multiple for single
138
+ {"resp": "<answer>A,C</answer>", "type": "MCQ_SINGLE_CORRECT", "expected": None}, # Fail: multiple for single
139
+ {"resp": "<answer>X</answer>", "type": "MCQ_SINGLE_CORRECT", "expected": None}, # Fail: not A-D
140
+ {"resp": "<answer>5</answer>", "type": "MCQ_SINGLE_CORRECT", "expected": ["5"]}, # Accept single digits 1-9
141
+
142
+ # INTEGER (can be int or decimal string)
143
+ {"resp": "<answer>42</answer>", "type": "INTEGER", "expected": ["42"]},
144
+ {"resp": "<answer>0</answer>", "type": "INTEGER", "expected": ["0"]},
145
+ {"resp": "<answer>12.75</answer>", "type": "INTEGER", "expected": ["12.75"]},
146
+ {"resp": "<answer>0.5</answer>", "type": "INTEGER", "expected": ["0.5"]},
147
+ {"resp": "<answer>-5</answer>", "type": "INTEGER", "expected": ["-5"]}, # Assuming negative integers are valid if problem allows
148
+ {"resp": "<answer>5.00</answer>", "type": "INTEGER", "expected": ["5.00"]},
149
+ {"resp": "<answer>abc</answer>", "type": "INTEGER", "expected": None}, # Fail: not a number
150
+ {"resp": "<answer>1,2</answer>", "type": "INTEGER", "expected": None}, # Fail: multiple for single int
151
+
152
+ # MCQ_MULTIPLE_CORRECT (can be numbers or letters, mixed is not typical but parser allows if items are valid individually)
153
+ {"resp": "<answer>1,3</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["1", "3"]},
154
+ {"resp": "<answer>A,C</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["A", "C"]},
155
+ {"resp": "<answer> b , d </answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["B", "D"]},
156
+ {"resp": "<answer>2</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["2"]}, # Single is valid
157
+ {"resp": "<answer>D</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["D"]}, # Single is valid
158
+ {"resp": "<answer>1,C,3</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["1", "3", "C"]}, # Mixed, sorted
159
+ {"resp": "<answer>C,1,A,1</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["1", "A", "C"]}, # Unique and sorted
160
+ {"resp": "<answer>1,X,3</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": None}, # Fail: X not in A-D
161
+
162
+ # SKIP and general failures
163
+ {"resp": "<ANSWER>SKIP</ANSWER>", "type": "MCQ_SINGLE_CORRECT", "expected": "SKIP"},
164
+ {"resp": " <answer> SKIP </answer> ", "type": "INTEGER", "expected": "SKIP"},
165
+ {"resp": "No answer tag here.", "type": "MCQ_SINGLE_CORRECT", "expected": None},
166
+ {"resp": "<answer></answer>", "type": "MCQ_SINGLE_CORRECT", "expected": None},
167
+ {"resp": "<answer> </answer>", "type": "MCQ_SINGLE_CORRECT", "expected": None},
168
+ {"resp": None, "type": "MCQ_SINGLE_CORRECT", "expected": None},
169
+ {"resp": "", "type": "MCQ_SINGLE_CORRECT", "expected": None},
170
+ {"resp": "<answer>5</answer>", "type": "UNKNOWN_TYPE", "expected": None}, # Unknown type
171
+ {"resp": "<answer>1,,2</answer>", "type": "MCQ_MULTIPLE_CORRECT", "expected": ["1", "2"]}, # Handles empty item from double comma
172
+ ]
173
+
174
+ print("\n--- Testing parse_llm_answer (revised) ---")
175
+ all_passed = True
176
+ for i, case in enumerate(test_cases):
177
+ parsed = parse_llm_answer(case["resp"], case["type"])
178
+ if parsed == case["expected"]:
179
+ print(f"Test {i+1} PASSED: Response: '{str(case['resp'])[:50]}...', Type: {case['type']} -> Parsed: {parsed}")
180
+ else:
181
+ print(f"Test {i+1} FAILED: Response: '{str(case['resp'])[:50]}...', Type: {case['type']} -> Parsed: {parsed} (Expected: {case['expected']})")
182
+ all_passed = False
183
+
184
+ if all_passed:
185
+ print("\nAll revised parse_llm_answer tests passed!")
186
+ else:
187
+ print("\nSome revised parse_llm_answer tests FAILED.")
188
+
189
+ # Test API key loading (will raise error if .env or env var not set)
190
+ # try:
191
+ # key = load_api_key()
192
+ # print(f"\nAPI Key loaded successfully (partially hidden): {key[:4]}...{key[-4:]}")
193
+ # except ValueError as e:
194
+ # print(f"\nError loading API key: {e}")
tests/__init__.py ADDED
File without changes
tests/test_evaluation.py ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Tests for src/evaluation.py - scoring and evaluation functions."""
2
+
3
+ import sys
4
+ import os
5
+
6
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
7
+
8
+ import pytest
9
+ from evaluation import (
10
+ calculate_single_question_score_details,
11
+ calculate_exam_scores,
12
+ calculate_max_score_for_question,
13
+ is_within_range,
14
+ )
15
+
16
+
17
+ # --- calculate_single_question_score_details ---
18
+
19
+ class TestSingleQuestionScoring:
20
+ """Tests for individual question scoring across exam types."""
21
+
22
+ # NEET MCQ
23
+ def test_neet_correct(self):
24
+ result = calculate_single_question_score_details({
25
+ "question_id": "N001", "exam_name": "NEET",
26
+ "question_type": "MCQ_SINGLE_CORRECT",
27
+ "ground_truth": ["1"], "predicted_answer": ["1"],
28
+ "api_call_successful": True,
29
+ })
30
+ assert result["marks_awarded"] == 4
31
+ assert result["evaluation_status"] == "correct"
32
+
33
+ def test_neet_incorrect(self):
34
+ result = calculate_single_question_score_details({
35
+ "question_id": "N002", "exam_name": "NEET",
36
+ "question_type": "MCQ_SINGLE_CORRECT",
37
+ "ground_truth": ["D"], "predicted_answer": ["B"],
38
+ "api_call_successful": True,
39
+ })
40
+ assert result["marks_awarded"] == -1
41
+ assert result["evaluation_status"] == "incorrect"
42
+
43
+ def test_neet_skipped(self):
44
+ result = calculate_single_question_score_details({
45
+ "question_id": "N003", "exam_name": "NEET",
46
+ "question_type": "MCQ_SINGLE_CORRECT",
47
+ "ground_truth": ["4"], "predicted_answer": "SKIP",
48
+ "api_call_successful": True,
49
+ })
50
+ assert result["marks_awarded"] == 0
51
+ assert result["evaluation_status"] == "skipped"
52
+
53
+ def test_api_failure_no_penalty(self):
54
+ """API/parse failures should score 0, not -1."""
55
+ result = calculate_single_question_score_details({
56
+ "question_id": "N004", "exam_name": "NEET",
57
+ "question_type": "MCQ_SINGLE_CORRECT",
58
+ "ground_truth": ["C"], "predicted_answer": None,
59
+ "api_call_successful": False,
60
+ })
61
+ assert result["marks_awarded"] == 0
62
+ assert result["evaluation_status"] == "failure_api_or_parse"
63
+
64
+ def test_parse_failure_no_penalty(self):
65
+ """Parse failure (api_success=True but pred=None) should score 0."""
66
+ result = calculate_single_question_score_details({
67
+ "question_id": "N005", "exam_name": "NEET",
68
+ "question_type": "MCQ_SINGLE_CORRECT",
69
+ "ground_truth": ["A"], "predicted_answer": None,
70
+ "api_call_successful": True,
71
+ })
72
+ assert result["marks_awarded"] == 0
73
+ assert result["evaluation_status"] == "failure_api_or_parse"
74
+
75
+ # JEE Main
76
+ def test_jee_main_mcq_correct(self):
77
+ result = calculate_single_question_score_details({
78
+ "question_id": "JM001", "exam_name": "JEE_MAIN",
79
+ "question_type": "MCQ_SINGLE_CORRECT",
80
+ "ground_truth": ["2"], "predicted_answer": ["2"],
81
+ "api_call_successful": True,
82
+ })
83
+ assert result["marks_awarded"] == 4
84
+
85
+ def test_jee_main_integer_correct(self):
86
+ result = calculate_single_question_score_details({
87
+ "question_id": "JM003", "exam_name": "JEE_MAIN",
88
+ "question_type": "INTEGER",
89
+ "ground_truth": ["5"], "predicted_answer": ["5"],
90
+ "api_call_successful": True,
91
+ })
92
+ assert result["marks_awarded"] == 4
93
+
94
+ def test_jee_main_integer_incorrect_no_penalty(self):
95
+ result = calculate_single_question_score_details({
96
+ "question_id": "JM004", "exam_name": "JEE_MAIN",
97
+ "question_type": "INTEGER",
98
+ "ground_truth": ["10"], "predicted_answer": ["8"],
99
+ "api_call_successful": True,
100
+ })
101
+ assert result["marks_awarded"] == 0
102
+
103
+ # JEE Advanced
104
+ def test_jee_advanced_mcq_single_correct(self):
105
+ result = calculate_single_question_score_details({
106
+ "question_id": "JA001", "exam_name": "JEE_ADVANCED",
107
+ "question_type": "MCQ_SINGLE_CORRECT",
108
+ "ground_truth": ["A"], "predicted_answer": ["a"],
109
+ "api_call_successful": True,
110
+ })
111
+ assert result["marks_awarded"] == 3 # JEE Advanced MCQ single = +3
112
+
113
+ def test_jee_advanced_mcq_multiple_all_correct(self):
114
+ result = calculate_single_question_score_details({
115
+ "question_id": "JA005", "exam_name": "JEE_ADVANCED",
116
+ "question_type": "MCQ_MULTIPLE_CORRECT",
117
+ "ground_truth": ["A", "C"], "predicted_answer": ["a", "c"],
118
+ "api_call_successful": True,
119
+ })
120
+ assert result["marks_awarded"] == 4
121
+ assert result["evaluation_status"] == "correct_full"
122
+
123
+ def test_jee_advanced_mcq_multiple_partial_2_of_3(self):
124
+ result = calculate_single_question_score_details({
125
+ "question_id": "JA006", "exam_name": "JEE_ADVANCED",
126
+ "question_type": "MCQ_MULTIPLE_CORRECT",
127
+ "ground_truth": ["A", "B", "C"], "predicted_answer": ["a", "b"],
128
+ "api_call_successful": True,
129
+ })
130
+ assert result["marks_awarded"] == 2
131
+ assert result["evaluation_status"] == "partial_2_of_3_plus"
132
+
133
+ def test_jee_advanced_mcq_multiple_partial_3_of_4(self):
134
+ result = calculate_single_question_score_details({
135
+ "question_id": "JA007", "exam_name": "JEE_ADVANCED",
136
+ "question_type": "MCQ_MULTIPLE_CORRECT",
137
+ "ground_truth": ["A", "B", "C", "D"], "predicted_answer": ["a", "b", "c"],
138
+ "api_call_successful": True,
139
+ })
140
+ assert result["marks_awarded"] == 3
141
+ assert result["evaluation_status"] == "partial_3_of_4"
142
+
143
+ def test_jee_advanced_mcq_multiple_partial_1_of_2(self):
144
+ result = calculate_single_question_score_details({
145
+ "question_id": "JA008", "exam_name": "JEE_ADVANCED",
146
+ "question_type": "MCQ_MULTIPLE_CORRECT",
147
+ "ground_truth": ["A", "B"], "predicted_answer": ["a"],
148
+ "api_call_successful": True,
149
+ })
150
+ assert result["marks_awarded"] == 1
151
+ assert result["evaluation_status"] == "partial_1_of_2_plus"
152
+
153
+ def test_jee_advanced_mcq_multiple_incorrect_chosen(self):
154
+ result = calculate_single_question_score_details({
155
+ "question_id": "JA009", "exam_name": "JEE_ADVANCED",
156
+ "question_type": "MCQ_MULTIPLE_CORRECT",
157
+ "ground_truth": ["A", "C"], "predicted_answer": ["a", "b"],
158
+ "api_call_successful": True,
159
+ })
160
+ assert result["marks_awarded"] == -2
161
+ assert result["evaluation_status"] == "incorrect_negative"
162
+
163
+ def test_jee_advanced_integer_with_range(self):
164
+ result = calculate_single_question_score_details({
165
+ "question_id": "JA_RANGE", "exam_name": "JEE_ADVANCED",
166
+ "question_type": "INTEGER",
167
+ "ground_truth": [["0.7", "0.8"]],
168
+ "predicted_answer": ["0.75"],
169
+ "api_call_successful": True,
170
+ })
171
+ assert result["marks_awarded"] == 4
172
+ assert result["evaluation_status"] == "correct"
173
+
174
+ def test_jee_advanced_integer_outside_range(self):
175
+ result = calculate_single_question_score_details({
176
+ "question_id": "JA_RANGE2", "exam_name": "JEE_ADVANCED",
177
+ "question_type": "INTEGER",
178
+ "ground_truth": [["0.7", "0.8"]],
179
+ "predicted_answer": ["0.9"],
180
+ "api_call_successful": True,
181
+ })
182
+ assert result["marks_awarded"] == 0
183
+ assert result["evaluation_status"] == "incorrect"
184
+
185
+
186
+ # --- is_within_range ---
187
+
188
+ class TestIsWithinRange:
189
+ def test_within_range(self):
190
+ assert is_within_range("0.75", "0.7", "0.8") is True
191
+
192
+ def test_at_lower_bound(self):
193
+ assert is_within_range("0.7", "0.7", "0.8") is True
194
+
195
+ def test_at_upper_bound(self):
196
+ assert is_within_range("0.8", "0.7", "0.8") is True
197
+
198
+ def test_below_range(self):
199
+ assert is_within_range("0.5", "0.7", "0.8") is False
200
+
201
+ def test_above_range(self):
202
+ assert is_within_range("0.9", "0.7", "0.8") is False
203
+
204
+ def test_invalid_value(self):
205
+ assert is_within_range("abc", "0.7", "0.8") is False
206
+
207
+
208
+ # --- calculate_max_score_for_question ---
209
+
210
+ class TestMaxScore:
211
+ def test_neet_mcq(self):
212
+ assert calculate_max_score_for_question("NEET", "MCQ_SINGLE_CORRECT") == 4
213
+
214
+ def test_jee_main_mcq(self):
215
+ assert calculate_max_score_for_question("JEE_MAIN", "MCQ_SINGLE_CORRECT") == 4
216
+
217
+ def test_jee_main_integer(self):
218
+ assert calculate_max_score_for_question("JEE_MAIN", "INTEGER") == 4
219
+
220
+ def test_jee_advanced_mcq_single(self):
221
+ assert calculate_max_score_for_question("JEE_ADVANCED", "MCQ_SINGLE_CORRECT") == 3
222
+
223
+ def test_jee_advanced_mcq_multiple(self):
224
+ assert calculate_max_score_for_question("JEE_ADVANCED", "MCQ_MULTIPLE_CORRECT") == 4
225
+
226
+ def test_jee_advanced_integer(self):
227
+ assert calculate_max_score_for_question("JEE_ADVANCED", "INTEGER") == 4
228
+
229
+ def test_unknown(self):
230
+ assert calculate_max_score_for_question("UNKNOWN", "UNKNOWN") == 0
231
+
232
+
233
+ # --- calculate_exam_scores (integration) ---
234
+
235
+ class TestExamScoresIntegration:
236
+ """Integration test using the full test dataset from evaluation.py __main__."""
237
+
238
+ @pytest.fixture
239
+ def test_results(self):
240
+ return [
241
+ {"question_id": "N001", "subject": "Physics", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["1"], "predicted_answer": ["1"], "api_call_successful": True},
242
+ {"question_id": "N002", "subject": "Physics", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["D"], "predicted_answer": ["B"], "api_call_successful": True},
243
+ {"question_id": "N003", "subject": "Chemistry", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["4"], "predicted_answer": "SKIP", "api_call_successful": True},
244
+ {"question_id": "N004", "subject": "Chemistry", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["C"], "predicted_answer": None, "api_call_successful": False},
245
+ {"question_id": "N005", "subject": "Botany", "exam_name": "NEET", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["A"], "predicted_answer": None, "api_call_successful": True},
246
+ {"question_id": "JM001", "subject": "Maths", "exam_name": "JEE_MAIN", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["2"], "predicted_answer": ["2"], "api_call_successful": True},
247
+ {"question_id": "JM002", "subject": "Maths", "exam_name": "JEE_MAIN", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["C"], "predicted_answer": ["a"], "api_call_successful": True},
248
+ {"question_id": "JM003", "subject": "Physics", "exam_name": "JEE_MAIN", "question_type": "INTEGER", "ground_truth": ["5"], "predicted_answer": ["5"], "api_call_successful": True},
249
+ {"question_id": "JM004", "subject": "Physics", "exam_name": "JEE_MAIN", "question_type": "INTEGER", "ground_truth": ["10"], "predicted_answer": ["8"], "api_call_successful": True},
250
+ {"question_id": "JM005", "subject": "Chemistry", "exam_name": "JEE_MAIN", "question_type": "INTEGER", "ground_truth": ["7"], "predicted_answer": None, "api_call_successful": True},
251
+ {"question_id": "JA001", "subject": "Maths", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["A"], "predicted_answer": ["a"], "api_call_successful": True},
252
+ {"question_id": "JA002", "subject": "Maths", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_SINGLE_CORRECT", "ground_truth": ["B"], "predicted_answer": ["C"], "api_call_successful": True},
253
+ {"question_id": "JA003", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "ground_truth": ["12"], "predicted_answer": ["12"], "api_call_successful": True},
254
+ {"question_id": "JA004", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "INTEGER", "ground_truth": ["0"], "predicted_answer": ["1"], "api_call_successful": True},
255
+ {"question_id": "JA005", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": ["a", "c"], "api_call_successful": True},
256
+ {"question_id": "JA006", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "B", "C"], "predicted_answer": ["a", "b"], "api_call_successful": True},
257
+ {"question_id": "JA007", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "B", "C", "D"], "predicted_answer": ["a", "b", "c"], "api_call_successful": True},
258
+ {"question_id": "JA008", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "B"], "predicted_answer": ["a"], "api_call_successful": True},
259
+ {"question_id": "JA009", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": ["a", "b"], "api_call_successful": True},
260
+ {"question_id": "JA010", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": ["b", "d"], "api_call_successful": True},
261
+ {"question_id": "JA011", "subject": "Chemistry", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "C"], "predicted_answer": "SKIP", "api_call_successful": True},
262
+ {"question_id": "JA012", "subject": "Maths", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A"], "predicted_answer": ["a"], "api_call_successful": True},
263
+ {"question_id": "JA013", "subject": "Physics", "exam_name": "JEE_ADVANCED", "question_type": "MCQ_MULTIPLE_CORRECT", "ground_truth": ["A", "B", "C"], "predicted_answer": ["a", "d"], "api_call_successful": True},
264
+ ]
265
+
266
+ def test_overall_score(self, test_results):
267
+ summary = calculate_exam_scores(test_results)
268
+ # NEET: 4-1+0+0+0=3, JEE Main MCQ: 4-1=3, JEE Main INT: 4+0+0=4,
269
+ # JEE Adv MCQ Single: 3-1=2, JEE Adv INT: 4+0=4,
270
+ # JEE Adv MCQ Multi: 4+2+3+1-2-2+0+4-2=8 => Total=24
271
+ assert summary["overall_score"] == 24
272
+
273
+ def test_overall_counts(self, test_results):
274
+ summary = calculate_exam_scores(test_results)
275
+ assert summary["overall_correct_full"] == 7
276
+ assert summary["overall_partial_correct"] == 3
277
+ assert summary["overall_incorrect_choice"] == 8
278
+ assert summary["overall_skipped"] == 2
279
+ assert summary["overall_api_parse_failures"] == 3
280
+
281
+ def test_section_scores(self, test_results):
282
+ summary = calculate_exam_scores(test_results)
283
+ sections = summary["section_breakdown"]
284
+ assert sections["Physics"]["score"] == 9 # (4-1)+(4+0)+(4+0)-2
285
+ assert sections["Chemistry"]["score"] == 6 # (0+0)+(0)+(4+2+3+1-2-2+0)
286
+ assert sections["Botany"]["score"] == 0 # parse fail = 0
287
+ assert sections["Maths"]["score"] == 9 # (4-1)+(3-1)+4
288
+
289
+ def test_empty_results(self):
290
+ summary = calculate_exam_scores([])
291
+ assert "error" in summary
tests/test_utils.py ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Tests for src/utils.py - parse_llm_answer function."""
2
+
3
+ import sys
4
+ import os
5
+
6
+ # Add src to path so we can import utils directly
7
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
8
+
9
+ import pytest
10
+ from utils import parse_llm_answer
11
+
12
+
13
+ # --- MCQ_SINGLE_CORRECT ---
14
+
15
+ class TestMCQSingleCorrect:
16
+ def test_numeric_option(self):
17
+ assert parse_llm_answer("<answer>2</answer>", "MCQ_SINGLE_CORRECT") == ["2"]
18
+
19
+ def test_letter_option(self):
20
+ assert parse_llm_answer("<answer>B</answer>", "MCQ_SINGLE_CORRECT") == ["B"]
21
+
22
+ def test_lowercase_letter_uppercased(self):
23
+ assert parse_llm_answer("<answer> c </answer>", "MCQ_SINGLE_CORRECT") == ["C"]
24
+
25
+ def test_multiple_numeric_rejected(self):
26
+ assert parse_llm_answer("<answer>1,3</answer>", "MCQ_SINGLE_CORRECT") is None
27
+
28
+ def test_multiple_letter_rejected(self):
29
+ assert parse_llm_answer("<answer>A,C</answer>", "MCQ_SINGLE_CORRECT") is None
30
+
31
+ def test_invalid_letter_rejected(self):
32
+ """Letters beyond A-D should be rejected."""
33
+ assert parse_llm_answer("<answer>X</answer>", "MCQ_SINGLE_CORRECT") is None
34
+
35
+ def test_single_digit_5_accepted(self):
36
+ """Single digits 1-9 are accepted as valid options."""
37
+ assert parse_llm_answer("<answer>5</answer>", "MCQ_SINGLE_CORRECT") == ["5"]
38
+
39
+ def test_multi_digit_rejected(self):
40
+ """Multi-digit numbers like 99 should be rejected."""
41
+ assert parse_llm_answer("<answer>99</answer>", "MCQ_SINGLE_CORRECT") is None
42
+
43
+ def test_zero_rejected(self):
44
+ """0 is not a valid MCQ option."""
45
+ assert parse_llm_answer("<answer>0</answer>", "MCQ_SINGLE_CORRECT") is None
46
+
47
+
48
+ # --- INTEGER ---
49
+
50
+ class TestInteger:
51
+ def test_positive_integer(self):
52
+ assert parse_llm_answer("<answer>42</answer>", "INTEGER") == ["42"]
53
+
54
+ def test_zero(self):
55
+ assert parse_llm_answer("<answer>0</answer>", "INTEGER") == ["0"]
56
+
57
+ def test_decimal(self):
58
+ assert parse_llm_answer("<answer>12.75</answer>", "INTEGER") == ["12.75"]
59
+
60
+ def test_small_decimal(self):
61
+ assert parse_llm_answer("<answer>0.5</answer>", "INTEGER") == ["0.5"]
62
+
63
+ def test_negative_integer(self):
64
+ assert parse_llm_answer("<answer>-5</answer>", "INTEGER") == ["-5"]
65
+
66
+ def test_trailing_zeros(self):
67
+ assert parse_llm_answer("<answer>5.00</answer>", "INTEGER") == ["5.00"]
68
+
69
+ def test_text_rejected(self):
70
+ assert parse_llm_answer("<answer>abc</answer>", "INTEGER") is None
71
+
72
+ def test_multiple_values_rejected(self):
73
+ assert parse_llm_answer("<answer>1,2</answer>", "INTEGER") is None
74
+
75
+
76
+ # --- MCQ_MULTIPLE_CORRECT ---
77
+
78
+ class TestMCQMultipleCorrect:
79
+ def test_two_numeric_options(self):
80
+ assert parse_llm_answer("<answer>1,3</answer>", "MCQ_MULTIPLE_CORRECT") == ["1", "3"]
81
+
82
+ def test_two_letter_options(self):
83
+ assert parse_llm_answer("<answer>A,C</answer>", "MCQ_MULTIPLE_CORRECT") == ["A", "C"]
84
+
85
+ def test_lowercase_uppercased_with_spaces(self):
86
+ assert parse_llm_answer("<answer> b , d </answer>", "MCQ_MULTIPLE_CORRECT") == ["B", "D"]
87
+
88
+ def test_single_numeric_valid(self):
89
+ assert parse_llm_answer("<answer>2</answer>", "MCQ_MULTIPLE_CORRECT") == ["2"]
90
+
91
+ def test_single_letter_valid(self):
92
+ assert parse_llm_answer("<answer>D</answer>", "MCQ_MULTIPLE_CORRECT") == ["D"]
93
+
94
+ def test_mixed_sorted(self):
95
+ assert parse_llm_answer("<answer>1,C,3</answer>", "MCQ_MULTIPLE_CORRECT") == ["1", "3", "C"]
96
+
97
+ def test_duplicates_removed(self):
98
+ assert parse_llm_answer("<answer>C,1,A,1</answer>", "MCQ_MULTIPLE_CORRECT") == ["1", "A", "C"]
99
+
100
+ def test_invalid_letter_rejected(self):
101
+ """X is not in A-D, so entire parse fails."""
102
+ assert parse_llm_answer("<answer>1,X,3</answer>", "MCQ_MULTIPLE_CORRECT") is None
103
+
104
+ def test_double_comma_handled(self):
105
+ assert parse_llm_answer("<answer>1,,2</answer>", "MCQ_MULTIPLE_CORRECT") == ["1", "2"]
106
+
107
+
108
+ # --- SKIP and edge cases ---
109
+
110
+ class TestSkipAndEdgeCases:
111
+ def test_skip_uppercase_tag(self):
112
+ assert parse_llm_answer("<ANSWER>SKIP</ANSWER>", "MCQ_SINGLE_CORRECT") == "SKIP"
113
+
114
+ def test_skip_with_whitespace(self):
115
+ assert parse_llm_answer(" <answer> SKIP </answer> ", "INTEGER") == "SKIP"
116
+
117
+ def test_no_tag(self):
118
+ assert parse_llm_answer("No answer tag here.", "MCQ_SINGLE_CORRECT") is None
119
+
120
+ def test_empty_tag(self):
121
+ assert parse_llm_answer("<answer></answer>", "MCQ_SINGLE_CORRECT") is None
122
+
123
+ def test_whitespace_only_tag(self):
124
+ assert parse_llm_answer("<answer> </answer>", "MCQ_SINGLE_CORRECT") is None
125
+
126
+ def test_none_input(self):
127
+ assert parse_llm_answer(None, "MCQ_SINGLE_CORRECT") is None
128
+
129
+ def test_empty_string_input(self):
130
+ assert parse_llm_answer("", "MCQ_SINGLE_CORRECT") is None
131
+
132
+ def test_unknown_type(self):
133
+ assert parse_llm_answer("<answer>5</answer>", "UNKNOWN_TYPE") is None
uv.lock ADDED
The diff for this file is too large to render. See raw diff