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

ExampleCustom AdaptersOutput TypeComplexity
Minimal RAGNone (all defaults)String★☆☆
Document Q&AEvidenceFormatter, PromptBuilderQAAnswer (JSON)★★☆
Multi-Source AnalysisAll threeIntelSummary (JSON)★★★