Tutorials
Step-by-step guides for learning PersonaGym.
Tutorial Overview
These tutorials will guide you through the key concepts and workflows of PersonaGym.
Tutorial |
Description |
Duration |
|---|---|---|
Core concepts and first pipeline run |
~15 min |
|
Deep dive into persona system |
~20 min |
|
Query generation and conversations |
~25 min |
|
Distractor system configuration |
~20 min |
|
Custom configurations and scaling |
~30 min |
Prerequisites
Before starting the tutorials:
Install PersonaGym following the Installation Guide
Configure API keys in
.envorconfig.yamlVerify installation with a test run:
python run.py --num-personas 1
What You’ll Learn
By completing these tutorials, you will:
Understand the 6-stage pipeline architecture
Configure personas with custom dimensions
Generate and adapt queries to personas
Simulate multi-turn conversations
Apply semantic noise for model robustness
Export training data for downstream use
Scale up generation efficiently
Example Notebooks
For interactive learning, check out the Jupyter notebooks in the notebooks/ directory (if available).
Getting Help
If you encounter issues:
Check the Troubleshooting section
Review the API Reference
Open an issue on GitHub
Let’s Get Started!
Begin with Tutorial 1: Basics to understand the core concepts.