Problems / Big Model, Small Talk
Big Model, Small Talk Send each kind of message to the model it needs
- Sheet
- C-03
- Difficulty
- Easy 2
- Format
- Config
- Mode
- Simulated
- Sub-topics
- RoutingModel Choice
Open this on a computer to solve it. Config problems need a wider screen.
A chat assistant sends every message to its large model, even "thanks". Choose a model for each kind of message.
The Situation
Larkspur Outdoor's chat assistant answers customers in its online shop. It can use three AI models: small, medium and large. A model is the program that writes each reply. A bigger model costs more. Today every message goes to the large model, even "hi" and "thanks". Your day of traffic has 9,839 messages. Sending all of them to the large model costs $113.73.
Your job: cut that cost without a single wrong answer.
Your Move
In router.yaml, choose small, medium or large for each kind of message. Each choice is a route. Every message has one of these four kinds:
| Kind | What customers ask |
|---|---|
| Small talk | "hi", "thanks" |
| Order status | Where is my order? Has it shipped? |
| Product questions | Is it waterproof? What does it weigh? Which bag is warmer? Will this tent fit my family? |
| Refund disputes | My refund is short. You charged me for a tent I returned. |
Here are last month's hardest product questions. Each message has a level, which says how hard it is to answer correctly:
| Question | Level |
|---|---|
| Is the Summit 45 backpack big enough for three nights, with the Ridge 2 tent inside? | 72 |
| I run cold at night. Is the Alpine 30 sleeping bag enough below freezing? | 71 |
| Will the Ridge 2 tent fit two adults and a dog? | 70 |
Then press Run to see what each message cost, and any wrong answers.
The Rule That Decides
R1. Right and Wrong Answers
Each model has a capability: large 95, medium 80, small 60. A model answers a message correctly when its capability is at least the message's level. Your results show each message's level.
Targets
- Cost cut, how much less your day costs than the starting system: at least 60% to pass, and 75% for full points.
- Accuracy must stay at 100%.
Your fix is also checked on inputs you can't see, so tune for the rule, not the sample.
The Fine Print
R2. Prices
Models read and bill text in tokens, which are small pieces of words. Input is what is sent to the model. Output is the reply it writes. Prices are in dollars per million tokens:
| Model | Input | Output |
|---|---|---|
| large | 4 | 20 |
| medium | 2 | 10 |
| small | 0.1 | 0.5 |
R3. How Messages Are Labeled
The chat widget labels each message with one kind, so you don't need a model to sort them. Customers pick a kind from the menu buttons. A typed greeting or thank-you is small talk.
R4. What a Message Costs
Each message is sent with the assistant's instructions, which include the return policy. The instructions are 2,300 tokens. Order status messages and refund disputes also include the customer's order. Product questions also include the catalog entries they name. A message's cost is its input tokens at the model's input price, plus its output tokens at the model's output price (R2). Every message pays the full input price for its instructions, even though they are the same in every message.
No message's level is above the large model's capability. This problem ignores earlier messages in the chat.
Giving each model a single capability number is a simplification. Real models are better at some kinds of question than others, and don't fail at a fixed level.
Need a Hint?
Hint 1 of 3 caps what you can earn at 18 out of 20 points. Points you’ve already earned stay. How points work