Rewrite drops negation
Detect: Subquery semantics conflict with the original exclusion.
Recover: Preserve hard constraints in structured fields and reject the rewrite.
Turn complex or underspecified questions into bounded retrieval plans while preserving the original intent and evidence requirements.
Query deconstruction separates a compound question into answerable subquestions. Query expansion adds useful synonyms, abbreviations, or alternative phrasing to improve recall. They solve different problems: decomposition organizes dependencies, while expansion broadens the wording used to search. Both should remain traceable to the original request.
Unconstrained rewriting can change a date, erase a negation, invent an entity, or multiply searches without improving evidence. A retrieval planner should preserve hard constraints, cap fan-out, and distinguish exploratory terms from factual premises. The final answer must reconcile sub-results rather than concatenate potentially conflicting fragments.
A prototype logs original questions and rewrites so an evaluator can identify intent drift.
Production validates entities and constraints, caps subqueries, and tracks which evidence answers each original requirement.
At scale, cache safe expansions, allocate retrieval budgets by uncertainty, and evaluate multi-hop questions separately from simple lookups.
Extracts entities, dates, comparison dimensions, and hard constraints.
Chooses decomposition, expansion, or an unchanged query.
Caps subqueries, parallelism, and total retrieval cost.
Maps each requirement to retrieved supporting or conflicting passages.
Checks that the final response covers the original question without unsupported bridging claims.
flowchart TD
Q["Compare two retention policies"] --> P["Constraint-preserving planner"]
P --> A["Policy A retention and exceptions"]
P --> B["Policy B retention and exceptions"]
A --> E["Evidence matrix"]
B --> E
E --> C["Resolve dates and contradictions"]
C --> S["Answer original comparison"]Identify exact names, time periods, exclusions, and requested comparisons.
Decompose only when separate evidence needs exist; expand terminology when wording is the main obstacle.
Check that each query retains relevant constraints and contributes a distinct evidence objective.
Run independent queries in parallel and dependent queries only after needed entities resolve.
Deduplicate passages and record missing or contradictory support by requirement.
Synthesize against the initial question and disclose unresolved portions explicitly.
Records management · Illustrative enterprise scenario, not a reported customer outcome.
A records team asks how two approved regional policies differ for the same document class.
One broad query retrieves general policy summaries but misses exceptions and effective dates.
Build a comparison with separate support for each region and exception.
A planner creates bounded region-specific queries and an evidence matrix keyed by retention, exceptions, and date.
If a rewrite changes the document class, constraint validation rejects it before retrieval.
Measure requirement coverage, rewrite drift, and search fan-out; more queries are useful only when they close identifiable evidence gaps.
| Decision | Benefit | Cost |
|---|---|---|
| More expansions | Improve vocabulary coverage. | Increase irrelevant candidates and retrieval cost. |
| Explicit decomposition | Makes missing evidence visible. | Adds planning latency and reconciliation complexity. |
| Parallel subqueries | Reduce independent lookup time. | Can create burst load and redundant searches. |
Detect: Subquery semantics conflict with the original exclusion.
Recover: Preserve hard constraints in structured fields and reject the rewrite.
Detect: Search results follow an unsupported name.
Recover: Validate entity references against the request or retrieved evidence.
Use transformation only when evaluation shows benefit.
Set depth, subquery, and token budgets.
Reconcile sources and effective dates before synthesis.