Problems / Fixing a Config
Fixing a Config
- Sheet
- T-03
- Difficulty
- Easy 1
- Format
- Config
- Mode
- Simulated
- Sub-topics
- Tutorial
Open this on a computer to solve it. Config problems need a wider screen.
2Edit a config, run it, and read the results and the score meter.
The Situation
This tutorial shows how config problems work. A config is a settings file that controls how a system behaves. A support bot for the Orbit 300 espresso machine answers customer questions from its manual. It uses the large model, the AI that writes each answer. On today's questions, that costs $0.1420. Every question today is easy, so the small model can answer them all.
Your job: in chatbot.yaml, change model: large to model: small, then press Run.
Your Move
Each step's number matches a marker on the page.
These steps need a computer: a phone has no editor, so there’s nothing here to edit or run. Open this tutorial on a computer to follow them.
- The title block lists the sheet number, difficulty, format and mode.
- Open and close each section of this statement with its bar.
- The hint below is free here, unlike on real problems.
- Edit
chatbot.yamlin the editor marked 4. Themodelline takeslarge,mediumorsmall. - The drawing shows what your bot sends to the model for each question.
- Press Run. It runs your config in your browser, then the server checks it.
- The results show the cost and what happened to each question.
- The first line of the results shows your cost cut against the pass line and the full-points line (see Targets).
- If anything on a problem looks wrong, use Flag a Problem to tell us.
The Rule That Decides
R1. Models
Each question has a level: how hard it is. Each model has a level too: the hardest question it can answer. Large is 95, medium is 80, and small is 60. A model answers a question correctly when the question's level is at most the model's. Today's questions are levels 21 to 46.
Targets
- Cost cut: how much less your config costs than the starting config's $0.1420. The pass line is 50%, the least you need to pass. The full-points line is 75%, the cut that earns every point on a real problem.
- Accuracy: every question answered correctly (100%).
The Fine Print
R2. Prices
Models read and bill text in tokens, which are small pieces of words. Input tokens are the text the bot sends to the model. Output tokens are the text it writes back. Prices are in dollars per million tokens:
| Model | Input | Output |
|---|---|---|
| large | 5 | 25 |
| medium | 3 | 15 |
| small | 1 | 5 |
These are this problem's prices. Real gaps between models are often wider.
R3. Levels
Levels run from 1 to 100.
3Need a Hint?
Hints are free in tutorials.