OpenViSTAI · Agents · Blockchain · Crypto
Menu
Research Agents

Medresearcher R1

Medresearcher R1 is an open-source Python framework for generating medical-domain question-answer datasets and multi-turn reasoning trajectories to train and evaluate specialized AI reasoning models.

Independent OpenViST project profile, based on linked sources.

Medresearcher R1 — Knowledge-graph-based question generation and reasoning-path creation
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when building a medical-domain training-data workflow that needs knowledge-informed QA generation followed by trajectory synthesis and evaluation.

Who it is for

  • AI researchers creating training data for medical-domain reasoning models
  • Developers exploring knowledge-informed QA and trajectory synthesis workflows

Documented uses

  • Generate multi-hop medical question-answer pairs from knowledge graphs
  • Create reasoning paths and multi-turn trajectories for model training
  • Review generated QA quality and evaluate reasoning datasets
Before you choose

Requirements & limits

  • Requires Python 3.10 or later.
  • The trajectory pipeline requires model-provider configuration; the documented read tool requires an OpenRouter API key.
  • The Apache-2.0 license is specified in the repository metadata.
  • The repository includes an open QA dataset as an alternative to generating QA pairs from a seed file.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the Python environment and generate QA pairs

Prepare the repository environment and run the documented batch QA-generation stage.

Before you start

  • Python 3.10 or later
  • The Medresearcher R1 repository and its requirements file
  • A seed CSV such as the documented demo_medical.csv

Steps

  1. Create and activate a Python virtual environment, or create and activate the documented conda environment.

  2. Install dependencies with pip install -r requirements.txt.

  3. Set up the environment values using env.example as shown in the README.

  4. From KnowledgeGraphConstruction, run batch_qa_cli.py with the seed CSV, an output JSONL path and the documented max-iterations option.

Expected outcome

The batch-generation command writes QA data to the chosen JSONL output path.

Guide limitations

  • This covers QA generation only; it does not run the later trajectory-generation and postprocessing pipeline.
  • The repository also documents using its open QA dataset instead of generating a new one.
Source-based practical guide

Configure the trajectory-generation pipeline

Set the documented model and dataset parameters needed before launching trajectory generation.

Before you start

  • A prepared Python environment with repository requirements installed
  • QA data in JSONL format
  • A model provider’s API base and model name
  • An API key for the read tool via the required environment variable; the README specifies OpenRouter

Steps

  1. Set environment values using env.example as described in the README.

  2. Edit TrajectoryGenerationPipeline/src/trajectory_generation/config.json.

  3. Set llm_config.api_key_env, llm_config.api_base, generation.model and generation.dataset to the relevant provider, model and JSONL dataset values.

  4. Follow the repository’s next-stage instructions to launch trajectory generation and postprocessing.

Expected outcome

The documented configuration points the trajectory pipeline to a model provider and JSONL dataset; the README identifies trajectory generation and postprocessing as the following stage.

Guide limitations

  • The provided documentation does not specify all launch and postprocessing commands in the material available here.
  • The read tool requires an OpenRouter API key.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
11 November 2026
Original website title
AQ-MedAI/MedResearcher-R1 · Official homepage title · retained in its source language