Note: pipeline

Context

The pipeline module (src/attune_rag/pipeline.py) is a lightweight, LLM-agnostic RAG pipeline. It coordinates four optional components — a corpus, a retriever, a query expander, and a reranker — to retrieve grounding context, assemble a prompt, and optionally call an LLM, all in a single method call.

Content

Two public types form the core of the module:

The prompt_variant parameter selects from the named templates in PROMPT_VARIANTS. The default variant is 'citation'.

Source files

Tags: pipeline, orchestration, rag, result