Orchestration · Software component

RAG Query Orchestrator

Software componentOrchestrationOrchestration & Toolsarc:RAGQueryOrchestrator

A stateless query-time service that sequences cache lookup, retrieval, reranking, context assembly and grounded generation for each RAG request, recording per-stage timing, token usage and cache status.

Responsibility. Coordinates the per-request retrieval-augmented generation pipeline.

Also known as: RAG service, Production RAG service, Retrieval service, Query endpoint, Decomposed RAG pipeline, Hybrid RAG pipeline

reads; writesreads; writesemits telemetry toemits telemetry toorchestratesorchestratesdeployed oninvokesis routed to byis routed to byis monitored byorchestratesis scaled byorchestratesis routed to byemits telemetry tois cached byorchestratesDistributed Response Cache: reads; writesDistributed Response CacheSemantic Cache: reads; writesSemantic CacheMetrics Collector: emits telemetry toMetrics CollectorTrace Collector: emits telemetry toTrace CollectorAnswer Synthesizer: orchestratesAnswer SynthesizerRetriever: orchestratesRetrieverContainer Orchestrator: deployed onContainer OrchestratorText Embedding Service: invokesText Embedding ServiceIntent Router: is routed to byIntent RouterLoad Balancer: is routed to byLoad BalancerSLO Monitor: is monitored bySLO MonitorReranker: orchestratesRerankerAutoscaler: is scaled byAutoscalerContext Assembler: orchestratesContext AssemblerCanary Rollout Controller: is routed to byCanary Rollout ControllerLog Aggregator: emits telemetry toLog AggregatorResponse Cache: is cached byResponse CacheMulti-Hop Answer Synthesizer: orchestratesMulti-Hop Answer Synthes…+11 more (see relationships)
Direct neighbourhood (hover for relationship types)

Relationships

deployed on structural

exposes structural

invokes dependency

is cached by dependency

reads dependency

writes dependency

emits telemetry to dynamic

is routed to by dynamic

is constrained by control

is orchestrated by control

is scaled by control

orchestrates control

is monitored by assurance

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Layered production RAG architectureCache-first architectureStateless service for horizontal scalingRequest-ID log correlationPersistent client connection pooling
Technologies
FastAPIPydanticAsyncOpenAI clientWeaviate client
Quality attributes
Performance efficiency (ISO/IEC 25010)Reliability (ISO/IEC 25010 | NIST AI RMF: valid and reliable)Cost efficiencyMaintainability (ISO/IEC 25010)
Risks mitigated
Connection exhaustion from per-request database connectionsAccepting traffic before dependencies are availableUndiagnosable latency without per-stage timing

Sources

  1. Ch6.5: T. Nguyen, "Production RAG Systems," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 6.5. ISBN: 9798244538229.
  2. Ch6.6: T. Nguyen, "Query Decomposition and Adaptive Retrieval," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 6.6. ISBN: 9798244538229.
  3. Ch10.1: T. Nguyen, "Conversational UI," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 10.1. ISBN: 9798244538229.