Tutorials and examples for building AI agents, ML pipelines, and data workflows with Flyte 2.
| Example | Description |
|---|---|
| LangGraph ReAct Agent | Build a ReAct agent with LangGraph + OpenAI on Flyte |
| Stable Diffusion | Generate images from text prompts with SDXL Turbo on GPU |
| DuckDB ETL | Extract and transform data with DuckDB SQL |
| Fraud Detection with Feast | Real-time fraud scoring with Feast feature store + XGBoost |
| Tutorial | What you'll learn |
|---|---|
| Flyte Basics | Flyte 2 fundamentals — tasks, pipelines, error handling, TaskEnvironment, ReusePolicy, map() |
| LangGraph ReAct Agent | Build a ReAct agent with tools in a single file |
| Stable Diffusion | GPU inference with Flyte reports |
| Image Classifier | Fine-tune ResNet18 on HuggingFace dataset with PyTorch |
| DuckDB ETL | Data pipeline with DuckDB SQL and Flyte reports |
| Snowflake ETL | ETL pipeline with the Snowflake connector |
| Flyte Local Dev | Local dev features — TUI, caching, reports, tracing, serving (no cluster needed) |
| Fraud Detection with Feast | Fraud scoring pipeline with Feast feature store, XGBoost, and real-time serving |
| Tutorial | Description |
|---|---|
| LangGraph ReAct Agent | Single-file ReAct agent with LangGraph |
| Planner Multi-Agent System | Scalable planner multi-agent system |
| ReAct Multi-Agent System | Adaptive ReAct multi-agent system |
| Reflection Multi-Agent System | Self-improving reflection agents |
| Debate Multi-Agent System | Multi-agent debate pattern |
| Manager Multi-Agent System | Manager-worker agent delegation |
| Sequential Multi-Agent System | Sequential agent pipeline |
| LangGraph Tutorial | In-depth LangGraph integration with Flyte |
| Tutorial | Description |
|---|---|
| MCP Recipe Assistant | Build and deploy a recipe assistant MCP server on Union |
| Tutorial | Description |
|---|---|
| Fraud Detection with Feast | Fraud scoring pipeline with Feast feature store, XGBoost, and real-time serving |
| Stable Diffusion | Image generation with SDXL Turbo |
| Image Classifier | Fine-tune ResNet18 on Beans dataset |
| Tutorial | Description |
|---|---|
| DuckDB ETL | SQL-based data pipeline with DuckDB |
| Snowflake ETL | ETL with Snowflake connector |
# Clone the repository
git clone https://github.com/unionai/workshops
cd workshops
# Navigate to any tutorial
cd tutorials/starter-examples/langgraph-react-agent
# Create virtual environment and install dependencies
uv venv .venv --python 3.11
source .venv/bin/activate
uv pip install -r requirements.txtflyte create config \
--endpoint <your-endpoint> \
--auth-type headless \
--builder remote \
--domain development \
--project flytesnacksDon't have a cluster? Request access at flyte.org.
Remote:
uv run flyte run langgraph_react_agent.py agent --request "What is 12 * 7 plus 3?"Local:
uv run flyte run --local langgraph_react_agent.py agent --request "What is 12 * 7 plus 3?"Local with TUI:
uv pip install textual
uv run flyte run --local --tui langgraph_react_agent.py agent --request "What is 12 * 7 plus 3?"Start TUI dashboard:
uv run flyte start tui