Enterprise Generative Search — Azure and Open Source  ·  View 02 of 41  ·  Context and scope

High-Level Architecture

The shape of a request in one picture: understand, plan, retrieve, rank, generate, assure.

Editable source SVG draw.io All views
Ask Web and Mobile UI streamed answers Answer API OpenAPI, SSE Search Gateway FastAPI on AKS Understand Query Understanding intent, entities, filters Entitlement Resolver Entra group set Conversation State PostgreSQL Plan Query Planner LangGraph Retrieval Policy per source and class Budget Governor tokens, hops, time Retrieve Hybrid Index Azure AI Search Structured Retrieval governed SQL views Knowledge Graph Apache AGE Answer Cache Redis, ACL-keyed Rank Fusion reciprocal rank Cross-Encoder Rerank bge-reranker-v2-m3 Evidence Selection diversity and authority Generate Context Builder fenced, budgeted Model Gateway LiteLLM proxy Synthesiser structured answer Assure Grounding Verifier claim-level NLI Injection and Safety Filter Prompt Shields Answer with Citations or search fallback cache probe replan High-Level Architecture — Ask to Assured Answer Application we own Interface / broker Security / platform Data store Decision point synchronous failure / alternate Ingestion is view 16. Identity, observability, evaluation and cost control are acts 6 and 7. v 1.0 · owner Data and AI Global Practice

Decisions

  • Query planning, retrieval, generation and verification are four separable stages with typed contracts between them. They fail independently, are measured independently, and can be replaced independently.
  • The model is invoked twice at most on the common path — once to synthesise, once to verify — and never to decide what it may retrieve.
  • Verification can send the request back to the planner. That single backward edge is the whole difference between a RAG demo and a system that can be trusted with a wrong retrieval.

The alternative considered

  • A single agent loop with tools, letting the model search, read and answer as it sees fit. Simpler to build, and it was rejected: it makes latency unbounded, cost unpredictable, and the authorisation boundary a matter of prompt wording.
  • Chosen instead: the model proposes retrieval, a facade executes it under policy, and the budget governor decides when the loop stops.

Numbers

  • Time to first token 1.2 s P50, 2.5 s P95. Complete answer 6 s P95 explanatory, 18 s P95 agentic.
  • Retrieval budget 450 ms P95 across all four backends; cross-encoder reranking 110 ms for 50 candidates.
  • 99.9% availability for generative answers, 99.95% for the classic search fallback, which has fewer dependencies by design.