RAG (retrieval-augmented generation) is an architecture pattern, not a single product: before the LLM generates an answer, a retriever finds relevant chunks from a knowledge base (wikis, tickets, PDFs, databases) and injects them into the prompt as context. The objective is grounded responses—fewer hallucinations on company facts, answers that reflect documents updated yesterday, and traceability to sources—without running full fine-tuning every time content changes. A typical pipeline embeds queries and documents with an embedding model, stores vectors in a search index, retrieves top-k passages, optionally reranks them, then calls the LLM with a system prompt plus retrieved text. RAG is the dominant enterprise pattern for private AI assistants and support bots.
Architecturally, RAG adds CPU and I/O work around GPU inference: embedding batches, index lookups, and prompt assembly happen on the host or separate services, while the LLM still runs on GPU with a longer prefill (large context from retrieved chunks). Repeated identical system prompts and document prefixes make prefix caching and KV-aware routing (llm-d, vLLM) valuable—many users ask different questions over the same knowledge base header. Compared with stuffing an entire corpus into context, RAG trades retrieval latency for bounded prompt size and lower cost. Poor chunking, stale indexes, or wrong embeddings fail at the retrieval layer even when the LLM is capable; ops concerns include PII in indexes, access control per tenant, and refresh pipelines when documents change.
Red Hat supports RAG through OpenShift AI and partner ecosystems: GPU-backed inference for the generator, optional NIM embedding microservices, storage (Ceph, object stores) for corpora, and OpenShift for deploying vector databases and ingestion jobs. RHEL AI and InstructLab address model quality and alignment; RAG addresses knowledge freshness. Reference designs describe secure multi-tenant RAG (namespace isolation, OAuth/SSO, network policies) on OpenShift with RHEL GPU nodes. Operators combine open stacks (LangChain-style orchestration, open vector DBs) with Red Hat platform primitives rather than a single bundled “RAG appliance.”
Additional Information#
- What is retrieval-augmented generation? (Apr 15, 2026)
