AISim › Chapter 6: Find the bug
Right answer, wrong question
Level 26. Fast and cheap, and sometimes answering something else.
Your docs assistant is quick and costs almost nothing, thanks to a cache. But some customers asking about the Pro plan are getting answers about the Basic plan, and people asking how to cancel are told how to upgrade. Everything is already in place. Something in it is set wrong.
Goals
- accuracy at least 78%
- cost per 1,000 requests at most $5
- error rate at most 1%
Concepts: Debugging, Semantic cache, Similarity threshold.
Hint
Open a few failed requests. Where did their answer come from? Then look at how similar two questions must be before they count as the same.
What you learn
A semantic cache matches questions by meaning, so its threshold decides how similar is similar enough. Set it too loose and "how do I cancel?" gets the cached answer to "how do I upgrade?". Too strict and nothing ever hits. Tune it on real pairs of questions, and keep exact facts like prices and plan names out of loose matches.
More in this chapter
- The goldfish (Level 27)
- Safe and useless (Level 28)
- It found it, then threw it away (Level 29)
- Overthinking "hello" (Level 30)
- Three bugs, one system (Chapter 6 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).