Expand description
RAG retrieval pipeline (CH-11 rag-hardening): decomposition → per-subquery search → dedup/fuse → verification → audit event.
Ties together super::decomposition::QueryDecomposer and
super::verification::verify around a caller-supplied
RetrievalBackend, so this module has zero direct dependency on the
persistence layer or the embedding model. That’s the seam plan.md asks
for: extracting RAG to a separate Knowledge Service later means moving
this pipeline behind an MCP boundary and swapping the backend
implementation — the pipeline logic itself does not change.
Structs§
- RagRetrieval
Config - Behavior knobs for the retrieval pipeline.
- RagRetrieval
Pipeline - Decomposition → search → dedup → verification → audit pipeline.
Traits§
- Retrieval
Backend - Executes a single sub-query search against whatever backs actual retrieval (embedding + vector/graph search). Implemented by callers — this crate has no opinion on persistence or embedding models.