0

TrialQATrain

Fresh

TrialQATrain is a training environment that tests question answering and retrieval for clinical trials.

Type
RL Env
Runtime
ORS
License
unknown
Size
1000 tasks
Published
Mar 2026

Cite

Notes

Only stored in your browser.

TrialQATrain

OpenReward Environment

Description

TrialQATrain is an ORS training environment for clinical trial question answering, in a similar style to the TrialQA dataset from EdisonScientific/labbench2. Agents are given questions about specific details from clinical trials (eligibility criteria, endpoints, dosing, study design) and must use web search to find and verify answers.

Capabilities

  • Researching clinical trial details using web search
  • Extracting specific information from trial eligibility criteria
  • Understanding trial endpoints and outcome measures
  • Identifying dosing regimens and study arm structures
  • Multi-hop reasoning across trial documents

Compute Requirements

No special compute requirements. The environment uses external web search and does not require a sandbox.

License

MIT

Tasks

The environment contains 1,000 training tasks covering:

Therapeutic Domains:

  • Oncology (180 questions)
  • Cardiology (140 questions)
  • Infectious Disease (120 questions)
  • Neurology (110 questions)
  • Metabolic/Endocrine (100 questions)
  • Immunology/Autoimmune (90 questions)
  • Respiratory (80 questions)
  • Psychiatry (70 questions)
  • Rare Diseases (60 questions)
  • Other (50 questions)

Reward Structure

This is a sparse, verifiable reward environment. The reward is computed at task completion when the agent submits an answer:

  • Reward 1.0: Agent's answer is semantically equivalent to the correct answer
  • Reward 0.0: Agent's answer is incorrect or incomplete

Grading is performed by an LLM judge that compares the agent's answer against the reference answer and key passage from the trial.

Data

Ground truth data consists of question-answer pairs derived from ClinicalTrials.gov trial records.

Tools

Agents are given tools for research: web_search for clinical trial information via Tavily, and web_fetch for full page content (including clinicaltrials.gov). Grading runs through a hidden @terminal tool: replying with a plain message ends the rollout, and the message text is graded against the expected answer.

Search and fetch come from the OpenReward SDK's WebToolset, so the provider is configuration on the environment server rather than code here:

OPENREWARD_SEARCH_BACKENDBackendNeeds
unset (default)backsearch — GR's backdated corpus, bounded to an as_of cutoffOPENREWARD_API_KEY, or api_key in session secrets
tavilyTavily — live webTAVILY_API_KEY, or tavily_api_key in session secrets

Time Horizon

TrialQATrain is a multi-turn environment requiring web search and information retrieval. Agents typically need to search for clinical trials, fetch detailed trial pages from ClinicalTrials.gov, extract relevant information, and submit verified answers.

[Statistics on average tool calls here]

Environment Difficulty

[Statistics on environment difficulty here]

Other Environment Requirements

This environment requires two API keys:

  • openai_api_key: For LLM-based answer grading
  • tavily_api_key: For web search and URL fetching

Pass these via the secrets parameter when creating a session.

Safety

TrialQATrain focuses on factual information retrieval from public clinical trial records. The environment does not involve medical decision-making or patient data. Agents are evaluated on accuracy of information extraction, not medical advice.

Citations

@article{Laurent2024LABBench,
  title={LAB-Bench: Measuring Capabilities of Language Models for Biology Research},
  author={Laurent, Jon M. and Janizek, Joseph D. and Ruzo, Michael and Hinks, Michaela M. and Hammerling, Michael J. and Narayanan, Siddharth and Ponnapati, Manvitha and White, Andrew D. and Rodriques, Samuel G.},
  journal={arXiv preprint arXiv:2407.10362},
  year={2024},
  url={https://arxiv.org/abs/2407.10362}
}