Datasets:
Update dataset card
Browse files831 unmodified lines83283383483583683783813 unmodified lines85285385485585685785836 unmodified lines89589689789889990090190290328 unmodified lines932933934935936937938831 unmodified lines## Evaluating an LLM via APIThese short **zero-shot** examples ask an LLM five questions through an OpenAI-compatible API and report **exact-match accuracy**: an answer counts as correct only if the model gives exactly the labels in `correct_answer`, so multiple-answer questions need all their labels. The first example uses text-only questions; the second sends the question images as well. Click a heading to show or hide its code. These are quick starts, not the full evaluation protocol used in the paper.```bashpip install datasets openai13 unmodified lines)MODEL = "gpt-4.1-mini"# 2. Load five test questionsquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_only__text_options", split="test")questions = questions.select(range(5))36 unmodified lines)MODEL = "gpt-4.1-mini"# 2. Load five test questions that include imagesquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_images__text_options", split="test")questions = questions.select(range(5))def image_to_url(image):# The API receives each image as a base64 data URL28 unmodified lines</details>To try another model, change `MODEL`; to use another provider, change `api_key` and `base_url`. Change `range(5)` to evaluate more questions. Configurations with tables or image answer options need those added to the prompt in the same way. API calls may cost money.## Citation831 unmodified lines83283383483583683783813 unmodified lines85285385485585685785836 unmodified lines89589689789889990090190228 unmodified lines931932933934935936937831 unmodified lines## Evaluating an LLM via APIThese short **zero-shot** examples ask an LLM questions through an OpenAI-compatible API and report **exact-match accuracy**: an answer counts as correct only if the model gives exactly the labels in `correct_answer`, so multiple-answer questions need all their labels. The first example uses text-only questions; the second sends the question images as well.```bashpip install datasets openai13 unmodified lines)MODEL = "gpt-4.1-mini"# 2. Load test questionsquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_only__text_options", split="test")questions = questions.select(range(5))36 unmodified lines)MODEL = "gpt-4.1-mini"# 2. Load test questionsquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_images__text_options", split="test")def image_to_url(image):# The API receives each image as a base64 data URL28 unmodified lines</details>To try another model, change `MODEL`; to use another provider, change `api_key` and `base_url`.## Citation
README.md+4-5