Welcome to the AI21 Maestro Workshop! This hands-on workshop will guide you through building production-grade AI applications using AI21's Maestro platform.
Get your development environment configured and verify your API credentials.
Learn how to enforce complex constraints and prevent hallucinations using Maestro's Generate → Validate → Fix cycle. Build a travel booking data extractor that reliably follows strict "no inference" rules.
Key Topics:
- Validated Output fundamentals
- Requirements definition and scoring
- Budget tier selection
- Hallucination prevention
- Production-grade data extraction
Build conversational AI that answers questions grounded in your own documents using Maestro's RAG Engine. Create a technical troubleshooting assistant with semantic search and source citations.
Key Topics:
- Retrieval-Augmented Generation (RAG)
- File Library and document indexing
- Multi-turn conversations
- Grounded responses with source citations
- Semantic search capabilities
Integrate AI with your existing systems using the Model Context Protocol. Build a remote MCP server for employee management that Maestro can query through natural language.
Key Topics:
- Model Context Protocol (MCP) architecture
- Remote MCP server development
- Tool discovery and dynamic invocation
- Multi-tool query handling
- Security and authentication best practices
Apply everything you've learned to build a complete AI application combining MVO, RAG, and MCP.
- Python 3.12 or higher
- uv - A fast Python package installer and resolver
If you don't have uv installed, you can install it with:
curl -LsSf https://astral.sh/uv/install.sh | shOr on macOS with Homebrew:
brew install uv-
Clone the repository (if you haven't already):
git clone <repository-url> cd Maestro-Testing
-
Initialize the project:
./init.sh
This script will:
- Check if
uvis installed - Create a virtual environment in
.venv(if it doesn't exist) - Install all dependencies from
pyproject.toml
- Check if
-
Activate the virtual environment:
source .venv/bin/activate -
Start coding! 🚀
ai21-maestro-workshop/
├── .venv/ # Virtual environment (created by init.sh)
├── modules/ # Workshop modules
│ ├── module_00_setup/ # Setup and configuration
│ │ ├── setup.ipynb
│ │ └── README.md
│ ├── module_01_mvo/ # Maestro Validated Output
│ │ ├── mvo.ipynb
│ │ └── README.md
│ ├── module_02_rag/ # RAG with File Search
│ │ ├── rag.ipynb
│ │ ├── README.md
│ │ └── SYSTEM AIR CONDITIONER.pdf
│ ├── module_03_mcp/ # MCP Servers
│ │ ├── mcp.ipynb
│ │ ├── mcp_server.py
│ │ └── README.md
│ └── module_04_use_case/ # Final use case implementation
├── pyproject.toml # Project dependencies and configuration
├── uv.lock # Dependency lock file
├── init.sh # Project initialization script
└── README.md # This file
uv syncuv add <package-name>uv remove <package-name># Make sure virtual environment is activated
source .venv/bin/activate
python your_script.py- AI21 Studio Docs – API reference, guides, and tutorials.
- AI21 Blog – product updates and deep dives.
- AI21 SDK Repo – the latest info on the Python SDK.