Skip to content

Evaluation conditions, baselines and latency

Conditions

Each encounter can carry an evaluation condition (app/encounter/conditions.py), passed explicitly on start or, with EVAL_CONDITION_ASSIGNMENT=balanced, assigned by a deterministic hash of learner and case:

Condition Effect
expressive_audio Normal behaviour: emotion, pace variation, within-response pauses
neutral_audio Same voice and the same facts, but an even neutral tone: no emotion notes, fixed pace and temperature, no inserted pauses or fillers
text No audio: spoken replies and live voice are refused

The condition and how it was assigned are recorded on the encounter and on every Sarvam turn. This supports the paper's matched comparison of expressive, neutral and text conditions and false emotional attribution checks.

Baselines

python3 -m app.compare sends identical probes for each case to:

  • controlled: this system (interpreter, policy, levels);
  • scripted: a deterministic scripted patient that returns the whole authored fact on a trigger match;
  • prompt_only (--prompt-baseline, needs keys): a strong patient-prompt baseline where the model sees every patient-known fact and answers freely.

Metrics per case and system: assessor_leak (hidden truth or diagnosis terms the patient does not know), over_disclosure (a deeper level in reply to a first question), clinical_register (units or note shorthand) and off_target_answers (a different fact than the one asked) and refusals (no answer to a fact or unscripted question). With improvisation the controlled system has 0 refusals against 138 for the scripted baseline. On the bundled cases the controlled system has 0 leaks and 0 over-disclosures against 120 over-disclosures for the scripted baseline. Substring metrics under-count paraphrased model output, so a zero for a model baseline is a floor.

Per-stage latency

Practice history's evaluation report includes stage_latency, with p50/p95 per stage, each from its own measurement and never summed:

Stage Source
transcription Recorded-turn speech-to-text call duration (Gemini or Sarvam)
turn_end_to_first_audio Gemini Live: last learner transcript to first patient audio
planning Interpreter call (request/response path) or the answer tool round trip (Gemini Live)
realization Patient-wording call (Gemini or Sarvam)
synthesis Text-to-speech call duration (Gemini or Sarvam)
cancellation Gemini Live: interruption received to cancellation acknowledged (audit)