supportdesk/extract.py:21
extract_order_info
Extract order ID and order date from a support ticket body.
Output contract
JSON object with exactly two keys: `order_id` (string matching ORD-\d+ or null) and `order_date` (string in YYYY-MM-DD format or null); no additional keys; values must be null when not explicitly stated. Graded fields: order_id, order_date.
keeps 105% of baseline quality and costs less
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 | Tokens in / out | Latency | Cost / call | vs baseline | Check |
|---|---|---|---|---|---|---|
qwen2.5:7bbaseline premium tier | 95.2% (20/21) | 105 / 30 | 2.15 s | $0.000558 | n/a | n/a |
qwen2.5:3bchosen standard tier | 100.0% (21/21) | 105 / 29 | 0.92 s | $0.000088 | 105.0% | pass |
qwen2.5:1.5b budget tier | 81.0% (17/21) | 105 / 30 | 0.71 s | $0.000034 | 85.0% | fail |
qwen2.5:0.5b nano tier | 71.4% (15/21) | 105 / 28 | 0.33 s | $0.000022 | 75.0% | fail |
- 3b keeps 105% of baseline quality and costs less
- 1.5b keeps 85% of baseline quality, needs 95%
- 0.5b keeps 75% of baseline quality, needs 95%
Prompt
What the call sends
Model in code: qwen2.5:7b
Eval examples
3 of 21 cases, every model side by side
›ext-017b3b1.5b0.5b
Inputs
- ticket_text
- Refund request for ORD-10421 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
both order ID and date explicit (T001)
Outputs
all fields match
all fields match
all fields match
all fields match
›ext-027b3b1.5b0.5b
Inputs
- ticket_text
- Where is my package?? 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
YYYY-MM-DD date directly stated (T002)
Outputs
all fields match
all fields match
all fields match
order_date: expected '2026-08-28', got None
›ext-047b3b1.5b0.5b
Inputs
- ticket_text
- Solicitud de reembolso Hola, compré una lámpara (pedido ORD-10812) el 2026-07-30 y llegó rota. ¿Pueden devolverme el dinero?
Expected
Spanish ticket, date in YYYY-MM-DD format (T006)
Outputs
all fields match
all fields match
all fields match
all fields match
All cases