This tutorial series teaches you, in a step-by-step manner, how to use MLflow's open source platform for building, tracking, tracing, prompt registry and optimization, evaluating, and debugging GenAI applications.
Watch the full overview: Mastering GenAI Development with MLflow
| Notebook | Title | Description | Video Tutorial |
|---|---|---|---|
| 1.1 | Setup and Introduction |
|
Watch Tutorial |
| 1.2 | Experiment Tracking for LLMs |
|
Watch Tutorial |
| 1.3 | Introduction to Tracing |
|
Watch Tutorial |
| 1.4 | Manual Tracing and Advanced Observability |
|
Watch Tutorial |
| 1.5 | Prompt Management |
|
Watch Tutorial |
| 1.6 | Framework Integrations |
|
Watch Tutorial |
| 1.7 | Evaluating Agents |
|
Watch Tutorial |
| 1.8 | Prompt Optimization with GEPA |
|
Watch tutorial |
| 1.9 | Complete RAG Application |
|
Coming Soon... |
| 1.10 | Multi-Agent Supervisor Pattern |
|
Coming Soon... |
| 1.11 | LangGraph Deep Agents |
|
Coming Soon... |
| 1.12 | CrewAI Multi-Agent Orchestration |
|
Coming Soon... |
After completing this tutorial, you will be able to:
- β Set up MLflow for GenAI development
- β Track LLM experiments systematically
- β Implement comprehensive tracing
- β Debug GenAI applications effectively
- β Manage prompts with version control
- β Build RAG systems
- β Cost tracking and optimization
- β Performance analysis and debugging
- β Multi-framework integration
- β Hierarchical trace creation
- β Custom span instrumentation
- β Agent workflow tracing
This project uses UV for dependency management.
- Install UV (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh- Install Dependencies
uv sync- Configure API Keys
Create a
.envfile in the tutorials directory:
OPENAI_API_KEY=your-api-key-here
MLFLOW_TRACKING_URI=http://localhost:5000
- Start Jupyter
uv run jupyter notebook- Start MLflow UI (in a separate terminal)
uv run mlflow ui --port 5000- Open Browser Navigate to http://localhost:5000
- Python 3.10+
- UV package manager
- OpenAI API key (or Databricks Workspace)
- Basic understanding of Python and LLMs
By the end of all tutorials, you will:
- β Understand MLflow's core GenAI components
- β Track and trace LLM experiments systematically
- β Implement comprehensive tracing for observability
- β Debug GenAI applications using trace visualizations and MLflow Assistant
- β Manage prompts with version control and Prompt Registery
- β Evaluate an agent using MLflow predefined judges, custom and integrated judges from DeepEval and RAGAS
- β Build end-to-end RAG applications
- β Build and evaluate multi-agent orchestration systems
mlflow-genai-tutorial-1/
βββ 01_setup_and_introduction.ipynb
βββ 02_experiment_tracking.ipynb
βββ 03_introduction_to_tracing.ipynb
βββ 04_manual_tracing_advanced.ipynb
βββ 05_prompt_management.ipynb
βββ 06_framework_integrations.ipynb
βββ 07_evaluating_agents.ipynb
βββ 08_prompt_optimization.ipynb
βββ 09_complete_rag_application.ipynb
βββ 10_multi_agent_supervisor.ipynb
βββ 11_deep_agents_langgraph.ipynb
βββ 12_crewai_multi_agent.ipynb
βββ .env (create this yourself and use the template env_template)
βββ README.md
- Keep the MLflow UI open while working through notebooks
- Experiment with different parameter values
- Compare runs in the UI to understand trade-offs
- Tag runs for easy organization
- Track costs from the beginning
Issue: MLflow UI won't start
# Try a different port
uv run mlflow ui --port 5001Issue: API key not recognized
# Restart Jupyter kernel after adding to .env
# Or set manually:
import os
os.environ["OPENAI_API_KEY"] = "your-key"Issue: Module not found
# Sync dependencies with UV
uv sync
# Or install specific package
uv add mlflow openai python-dotenvThis tutorial series is provided as educational content for learning MLflow's GenAI capabilities.
- Found an issue? Open a GitHub issue
- Have suggestions? Submit a pull request
- Want to share? Tag us on social media
- Questions? Check the MLflow community
Authors: Jules (Databricks Developer Relations) + Claude Code Date: Feburary 2026 MLflow Version: 3.9.0+

