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

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

This interactive level needs JavaScript. Built by (cybernerdie).