Enterprise Generative Search — Azure and Open Source  ·  View 11 of 41  ·  Structure

Query Understanding

How a sentence becomes a typed, authorised, replayable plan.

Editable source SVG draw.io All views
Receive Raw ask text, voice or image Language detect fastText, 14 languages PII scrub on the query Presidio Interpret Class and intent 6 classes, view 04 Entities and filters product, date, org Temporal scope as-of resolution Contextualise Coreference resolve from turn history Conversation state PostgreSQL, 30 turns Scope chips shown to the user Authorise On-behalf-of token Entra OBO Group set expansion cached 60 s ACL fingerprint SHA-256, cache key Rewrite Query rewrite Qwen3-8B on vLLM Multi-query expansion up to 4 variants Domain synonyms curated, not learned Emit QueryPlan object typed, logged, replayable Cache probe exact then semantic Low confidence exit clarify or list confidence below 0.45 Query Understanding — From a Sentence to an Executable Plan Application we own Security / platform Decision point Data store Risk / gap failure / alternate Authorisation is resolved here, before any retrieval, because the group set is an input to both the query filter and the cache key. v 1.0 · owner Data and AI Global Practice

Decisions

  • Authorisation is resolved here, before retrieval, because the group set is an input to both the index filter and the cache key. Resolving it later would make the cache unsafe and the filter a post-processing step.
  • Query rewriting uses a small open-weight model, not the synthesis model. Rewriting is a 90 ms task on the critical path of every query, and paying frontier prices for it is the commonest cost mistake in this pattern.
  • Domain synonyms are curated, not learned. A learned synonym table silently changes retrieval behaviour with no review and no rollback.

The low-confidence exit

  • Below 0.45 classification confidence the request leaves the pipeline and returns a clarification or a ranked result list. It costs nothing and is right more often than a guess.
  • The exit rate is a watched metric: a rise usually means the corpus has a gap rather than that the classifier has degraded.

Assumptions

  • Conversation state is capped at 30 turns and 30 days. Longer memory was rejected as a privacy surface with little measured benefit.
  • Fourteen languages are detected; retrieval is multilingual through BGE-M3, but answers are generated in the language of the question.