Pipeline Architecture
End-to-end request lifecycle of the GENIE.AI RAG pipeline, from query to grounded, translated response.
GENIE.AI answers user questions strictly from an indexed knowledge base rather than from model memory. The Retrieval-Augmented Generation (RAG) pipeline turns each query into a grounded, cite-able answer through five stages: embedding, hybrid retrieval, reranking, generation, and optional translation.
This section documents the pipeline that runs in the OPEA overlay
(genie-ai-overlay/), its configuration knobs, and the model-selection
trade-offs for each stage.
Query → Backend (BFF) → ChatQnA → Embedding → Retriever (ArangoDB) → Reranker → LLM → [Translation] → Response
Every stage emits OpenTelemetry spans, propagated across service boundaries with
the W3C traceparent header, so a single query can be traced end to end in
Grafana. See Observability.
End-to-end request lifecycle of the GENIE.AI RAG pipeline, from query to grounded, translated response.
Hybrid dense-vector + lexical (BM25) retrieval over ArangoDB, optional knowledge-graph traversal, reciprocal-rank fusion, and label filtering.
Cross-encoder reranking strategies, score calibration, and how the user-facing confidence score is derived.
LLM system prompt, abstention behaviour, self-confidence scoring, and optional streaming translation.
The data-labelling strategy for GENIE.AI: per-chunk LLM labelling, label filtering, and contextual retrieval.
On-by-default per-chunk or per-document context prefix that improves retrieval precision by embedding chunks with their source context.
Selecting and configuring models for GENIE.AI (LLM, embedding, reranker, translation) across GPU profiles.