This directory contains interactive Jupyter notebooks demonstrating various Mellea features.
General introduction to Mellea with basic examples.
Interactive tutorial on composing generative functions.
Working with contexts and context management.
Using document MObjects for text processing.
Domain-specific example (possibly academic/research use case).
Interactive walkthrough of the instruct-validate-repair paradigm.
Deploying Mellea programs as services.
Model Context Protocol integration examples.
Configuring model options and parameters.
Building a sentiment classification system.
Email generation with requirements.
Working with table data structures.
# Install Jupyter if needed
uv pip install jupyter
# Start Jupyter
jupyter notebook docs/examples/notebooks/
# Or use JupyterLab
jupyter lab docs/examples/notebooks/- Interactive Learning: Experiment with code in real-time
- Visualization: See results immediately
- Documentation: Combine code, output, and explanations
- Experimentation: Try different parameters and approaches
- Sharing: Easy to share complete examples with outputs
Most notebooks have corresponding Python files in the tutorial/ directory for non-interactive use.
- Run cells in order for proper context building
- Restart kernel if you encounter state issues
- Use
Shift+Enterto run cells - Check cell outputs for errors before proceeding
- See
tutorial/for Python script versions - See individual example directories for more details on each topic