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
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.
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
Create and activate a Python virtual environment, or create and activate the documented conda environment.
Install dependencies with pip install -r requirements.txt.
Set up the environment values using env.example as shown in the README.
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.
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
Set environment values using env.example as described in the README.
Edit TrajectoryGenerationPipeline/src/trajectory_generation/config.json.
Set llm_config.api_key_env, llm_config.api_base, generation.model and generation.dataset to the relevant provider, model and JSONL dataset values.
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.
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

