Examples in this section
All example categories
The repository contains many more runnable examples than the four documented above. Every category has its ownREADME.md and one or more .py files ready
to run.
Core concepts
Data and documents
Agents and tools
Extensibility
Safety and validation
Integration and deployment
Performance and advanced sampling
Multimodal
Observability
Experimental
Getting started and tutorials
Running the examples
All examples are in thedocs/examples/ directory of the repository. Unless
otherwise noted, run them with:
/// script block and can be
run with uv run instead:
start_session() with no arguments connects to a local
Ollama instance running IBM Granite 4 Micro
(granite4.1:3b). Make sure Ollama is running before you execute any example.