Skip to content

Follow-up questions in AI analytics: testing scope drift

Updated 5 min readFor analytics engineers and evaluators of conversational analytics

Follow-up questions go wrong through scope drift, where a turn changes or drops a filter, period, currency or population the person expected to carry over, and the result still looks plausible. Test it by writing the scope down as explicit fields, changing one field per turn, and comparing each answer with a reference built under the same conditions. The system should restate what changed, ask when a follow-up has two readings, start fresh on a new topic, and re-check the user’s access on every turn.

Why single-question tests miss this

Most evaluation sets are lists of standalone questions. Real use is not. People ask for pipeline by region, then say "now last quarter", then "just enterprise", then "what about Europe?". By the fourth turn, the question exists partly in the words and partly in an assumed state that nobody can see.

Conversational text-to-SQL has been studied as its own problem for years. CoSQL, an EMNLP 2019 corpus of about 3,000 dialogues over 200 databases, was collected with a SQL expert playing the system, who could query, ask for clarification on ambiguous requests or say a question could not be answered. Even the research framing treats a conversation as more than a chain of queries. Most pilots still grade a chain.

Make the scope explicit, then watch it move

Write the state down as fields. The exercise is small, it makes drift visible, and it doubles as a design for what the product should track. The figure traces a synthetic four-turn conversation. The highlighted turn is where a reasonable-sounding follow-up loses a filter.

Silent changes are the dangerous kind. The answer at turn 3 might be perfectly accurate for all segments in EMEA, and a person who said "what about Europe?" expecting Enterprise to stay on would have no signal that it did not. An isolated check of that query would pass.

Pipeline by regionThis quarter, all segmentsNow last quarterPeriod changes; rest holdsJust enterpriseAdds a segment filterWhat about Europe?Enterprise silently droppedRestate and askKeep the enterprise filter?Pipeline by regionThis quarter, all segmentsNow last quarterPeriod changes; rest holdsJust enterpriseAdds a segment filterWhat about Europe?Enterprise silently droppedRestate and askKeep the enterprise filter?
A single dropped filter still returns a plausible number. Restating scope on each turn is what lets a person catch it.

Carry state as data

Build or buy, I’d want the state as structured data that code can compare. State that lives only as earlier messages in a prompt leaves nothing able to check what changed. A structured version lets you compute a difference between turns and show it, and it gives your tests something to assert against. The sample below is a generic illustration of the idea.

{
  "turn": 3,
  "measure": "open_pipeline",
  "definition_version": 4,
  "period": "last_fiscal_quarter",
  "filters": { "segment": "Enterprise" },
  "group_by": ["region"],
  "currency": "USD",
  "source": "salesforce",
  "asked_as": "current signed-in user"
}

turn 4 proposed changes:
  filters.region: added "Europe"
  filters.segment: REMOVED  <-- ask or restate
  group_by: ["region"] -> ["country"]  <-- two changes; state both

A four-turn test, graded per turn

Use one workflow your report owner knows well, and have them produce a reference for each turn in advance. Grading the final narrative alone hides where the sequence broke, so score every transition. The cases below deliberately include the follow-ups most likely to go wrong.

Record the result per turn as held, changed as intended, changed silently or asked. Silent changes are the count to bring to the review, because a reader had no way to catch them.

  • Totals as a cheap checkIf a regrouped follow-up’s parts do not sum to the previous total, and no filter was intended to change, scope has moved or a join has fanned out. This catches problems without a full reference.
  • Run each sequence twiceModels are not perfectly repeatable, so a sequence that passes once may not pass again. Keep repeat results and don’t assume a single pass settles it.
Turn typeExampleExpected behavior
Change one field"Now last quarter"Only the period changes, and matches its reference
Regroup"By product instead"Measure, period and filters hold; totals still reconcile
Add a filter"Just enterprise"Filter is added, others retained, and shown
Ambiguous reference"What about Europe?"Clear statement of the reading, or one question
Pronoun"Why did that one drop?"Names which entity and period it took 'that one' to mean
Source change"Compare to the warehouse"Says the source and any definition changed
New topic"Show receivables over 90 days"Starts clean, with no pipeline filters attached

Knowing when to forget

Continuity has a failure mode too. After several sales follow-ups, a question about receivables should not inherit a segment filter that only made sense for pipeline, and a persistent filter here will produce a confident, wrong finance number. The trouble is that the words give little signal: "and in Europe?" continues a thread, while "how are receivables in Europe?" probably does not.

I’d lean on the measure. When the measure changes to something in a different domain, treat earlier filters as not carried and say so, or ask. Show a clear new-question marker so people can see a fresh start. It also helps to give people an explicit reset, since sometimes the fastest fix is starting clean. Put one new-question example next to your follow-up sequence in the test set, so you test forgetting along with remembering.

Authority is not part of the conversation’s memory

Scope carries forward. Permission must not. Each follow-up should be evaluated against the user’s current access, as if it were the first question. Test a sequence that starts with an authorized view, then asks for a restricted region, and read the whole reply: summaries and refusal text can leak what a filter hid, particularly if a model has earlier turns in its context.

Remember that follow-ups may reuse earlier results for speed. If a system re-aggregates a stored result from a previous turn, check what happens when a role was revoked in between, and who else can open that thread. Likewise, a shared conversation should not hand one person’s results to another. Information someone received legitimately before a role change is a separate matter, handled by your retention and sharing policy.

Show scope with little clutter

Repeating every assumption in every sentence makes answers unreadable, and hiding them makes review impossible. I’d use a compact scope line near the result, with only what differs from the previous turn called out, and detail one click away. When the source or definition changes, say so outright, because a live CRM query and a warehouse metric may differ in freshness and calculation, and a person should not have to infer that transition.

A simple check: screenshot the answer at turn four, and show it to a colleague who did not see the earlier turns. If they cannot state the population, period and currency, then neither can anyone reading it in a deck next month.

Running this on Nexatron

Nexatron answers each question as the signed-in user. We show Read as on the answer, so you can see how the words were interpreted, edit that and Re-run. For this test, open the trust panel on each turn, along with the generated SQL or SOQL, and compare Filters applied against what you expected.

Have your report owner verify each transition. A pass is a sequence in which someone reading turn four can tell what is in the number without scrolling up.

Bring three business questions

Explore your sources, definitions, and review criteria with our team. Please keep credentials and sensitive records out of the inquiry.