Examples demonstrating Retrieval-Augmented Generation (RAG) patterns in Mellea. For a step-by-step guide to building a full pipeline, see the Build a RAG Pipeline how-to.
| File | Description |
|---|---|
simple_rag_with_filter.py |
Two-stage pipeline: FAISS semantic search followed by a @generative relevance filter, then grounded answer generation with grounding_context. Requires faiss-cpu and sentence-transformers. |
mellea_pdf.py |
Document-grounded question answering using W3C's WCAG 1.0 checklist PDF. Requires docling. |