Skip to main content

Module pipeline

Module pipeline 

Source
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§

RagRetrievalConfig
Behavior knobs for the retrieval pipeline.
RagRetrievalPipeline
Decomposition → search → dedup → verification → audit pipeline.

Traits§

RetrievalBackend
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.