supportdesk/agent_assist.py:34
draft_reply
Draft a customer-facing reply to a support ticket in the customer's detected language.
Output contract
Plain-text reply under 120 words, in the language given by the ISO 639-1 code in {language}. Must not promise refunds, credits, delivery dates or specific timeframes (for example '24-48 hours'). Must say that a teammate will confirm next steps.
no cheaper model passed the checks
Dollar figures are projections: measured token counts x illustrative per-model prices x an assumed call volume, all set in downshift.yaml. They are not a real bill.
Models
How each model did
| Model | Pass rate | Judge avg | Tokens in / out | Latency | Cost / call | vs baseline | Check |
|---|---|---|---|---|---|---|---|
qwen2.5:7bbaseline premium tier | 13.6% (3/22) | 2.77 / 5 | 153 / 50 | 3.26 s | $0.000886 | n/a | n/a |
qwen2.5:3b standard tier | 9.1% (2/22) | 2.05 / 5 | 153 / 24 | 0.87 s | $0.000100 | 66.7% | fail |
qwen2.5:1.5b budget tier | 4.5% (1/22) | 2.14 / 5 | 153 / 45 | 1.13 s | $0.000050 | 33.3% | fail |
qwen2.5:0.5b nano tier | 0.0% (0/22) | 1.59 / 5 | 153 / 39 | 0.43 s | $0.000031 | 0.0% | fail |
- 3b keeps 67% of baseline quality, needs 95%
- 1.5b keeps 33% of baseline quality, needs 95%
- 0.5b keeps 0% of baseline quality, needs 95%
Prompt
What the call sends
Model in code: qwen2.5:7b
Eval examples
3 of 22 cases, every model side by side
›dft-017b3b1.5b0.5b
Inputs
- language
- en
- summary
- The customer wants a refund for order ORD-10421. The order was placed on 2026-09-02 for unused wireless headphones still in the original box.
- subject
- Refund request for ORD-10421
- body
- Hi, I ordered a pair of wireless headphones on 2026-09-02 (order ORD-10421). They're unused and still in the box, but I changed my mind. Can I get a refund?
Expected
English change-of-mind refund — must not promise refund (T001)
Outputs
judge 2/5: It omits the specific order number and provides a response timeframe, violating the rubric's no‑timeframe rule.
judge 5/5: Meets all rubric criteria: English, concise, addresses request, mentions teammate, no promises.
judge 2/5: It omits mentioning ORD-10421 and does not state a teammate will confirm next steps, though it is in English, under 120 words, and avoids promises.
judge 2/5: The reply only repeats the request and omits a response or mention of a teammate confirming next steps.
›dft-027b3b1.5b0.5b
Inputs
- language
- en
- summary
- The customer wants a refund for a missing package. The order ORD-10588 was placed on 2026-08-28 and tracking has not updated in 10 days.
- subject
- Where is my package??
- body
- Order ORD-10588 placed on 2026-08-28 still hasn't arrived. Tracking hasn't updated in 10 days. This is ridiculous. I want my money back.
Expected
English non-delivery refund demand — must not promise refund or delivery date (T002)
Outputs
judge 3/5: Meets language, length, and no promises criteria, but fails to explicitly address the customer's refund request
judge 2/5: The response is in English, short, and mentions a teammate, but it fails to reference the missing package, the refund request, or the specific order number.
judge 3/5: The response is in English, under 120 words, mentions a teammate and avoids promises, but fails to reference the specific order ORD-10588.
judge 2/5: It omits the order number and does not mention a teammate confirming next steps, though it is English, brief, and avoids promises.
›dft-037b3b1.5b0.5b
Inputs
- language
- es
- summary
- The customer wants a refund for a damaged lamp. The order ORD-10812 was placed on 2026-07-30.
- subject
- Solicitud de reembolso
- body
- Hola, compré una lámpara (pedido ORD-10812) el 2026-07-30 y llegó rota. ¿Pueden devolverme el dinero?
Expected
Spanish ticket — reply must be in Spanish (T006)
Outputs
judge 2/5: The reply is in Spanish and short, but it omits the order number, does not explicitly say a teammate will confirm next steps, and gives a vague timeframe.
judge 2/5: Does not mention the damaged lamp or order number, so does not address the refund request.
judge 2/5: Meets language, length, and order reference but incorrectly promises a refund and does not explicitly state a teammate will confirm next steps.
judge 2/5: Meets language and length but does not address the refund request properly nor mention a teammate will confirm next steps.
All cases