BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions

Reading comprehension dataset that queries for complex, non-factoid information, and require difficult entailment-like inference to solve.

Overview

BoolQ is a benchmark containing natural questions that have simple yes/no answers.

Usage

Installation

Install with pip install inspect-evals, or uv sync from a checkout of this repository.

Running evaluations

uv run inspect eval inspect_evals/boolq --model openai/gpt-5-nano

You can also import tasks as normal Python objects and run them from python:

from inspect_ai import eval
from inspect_evals.boolq import boolq
eval(boolq)

Drop uv run if you manage dependencies yourself. Log viewing (inspect view) and default-model setup are documented in the Inspect Evals README.

Options

You can control a variety of options from the command line. For example:

uv run inspect eval inspect_evals/boolq --limit 10 --sample-shuffle
uv run inspect eval inspect_evals/boolq --max-connections 10
uv run inspect eval inspect_evals/boolq --temperature 0.5

See uv run inspect eval --help for all available options.

Parameters

boolq

  • shuffle (bool): (default: True)

Dataset

BoolQ is a question answering dataset for yes/no questions containing 3,270 samples. Each sample is a triplet of question, passage, answer.

Here is an example from the dataset (after processing by Inspect):

question: is harry potter and the escape from gringotts a roller coaster ride

passage: Harry Potter and the Escape from Gringotts is an indoor steel roller coaster at Universal Studios Florida, a theme park located within the Universal Orlando Resort. Similar to dark rides, the roller coaster utilizes special effects in a controlled-lighting environment and also employs motion-based 3-D projection of both animation and live-action sequences to enhance the experience. The ride, which is themed to the Gringotts Wizarding Bank, became the flagship attraction for the expanded Wizarding World of Harry Potter when it opened on July 8, 2014

Scoring

A simple accuracy is calculated over the datapoints.

Changelog

[2-A] - 2026-02-16

  • Migrate version to new scheme. See #907.

[1.0.1] - 2025-12-18

  • Adds backoff policy for functions that connect to huggingface servers.