The production request path
Every hop between the user and the model, and the ones a demo skips.
flowchart LR
U([User question]) --> G[Gateway<br/>auth, rate limit, tenant]
G --> O{Intent}
O -->|meaning| R[Hybrid search<br/>keyword + vector]
O -->|count or report| S[SQL or filters]
O -->|chat| D[Direct generation]
R --> F[Rerank and filter]
S --> F
D --> F
F --> B{Token budget}
B -->|within| M[Generate answer]
B -->|over| C[Trim context] --> M
M --> V[Validate output] --> A([Answer with citations])
M -.-> T[(Telemetry<br/>traces, cost)]- An API gateway in front of every model call: auth, rate limits, tenant ID, cost attribution. Must-have.
- Output validated before the user sees anything: schema, citations, policy.