Complete, runnable examples that demonstrate real-world usage patterns. Each example shows a different level of customization.
Minimal RAG →
Beginner — The simplest possible RAG pipeline using default adapters.
Document Q&A →
Intermediate — Structured Q&A with custom adapters and JSON output parsing.
Multi-Source Analysis →
Advanced — Cross-referencing multiple sources with domain-specific adapters.
Running Examples
All examples require the same local services (see Prerequisites):
# Start Qdrant, embedding server, and LLM server, then:
cargo run -p example-minimal-rag
cargo run -p example-document-qa
cargo run -p example-intelligence-analysis
Progression
| Example | Custom Adapters | Output Type | Complexity |
|---|---|---|---|
| Minimal RAG | None (all defaults) | String | ★☆☆ |
| Document Q&A | EvidenceFormatter, PromptBuilder | QAAnswer (JSON) | ★★☆ |
| Multi-Source Analysis | All three | IntelSummary (JSON) | ★★★ |