AISim › Chapter 1: Getting it working
The wrong error code
Level 2. Retrieval is on. Answers are still wrong.
You added RAG and things got better — but not good enough. Half the questions mention exact product codes and error numbers ("what does E1043 mean on my coffee machine?"). Someone also set huge chunks and Top-K 2 to "save tokens".
Goals
- accuracy at least 85%
- hallucination rate at most 13%
Concepts: Hybrid search, Chunking, Reranking.
Hint
Look at what kind of questions are failing. Embeddings blur "E1043" and "E1034" together. What matches exact strings? And once you retrieve more, what keeps the prompt clean?
What you learn
Retrieval quality is usually the real bottleneck in RAG, not the model. Hybrid search (keywords + vectors) covers both exact identifiers and paraphrases, chunk size trades precision against completeness, and a reranker lets you retrieve wide while still handing the model a short, clean context.
More in this chapter
- The store chatbot (Level 1)
- The holiday rush (Level 3)
- Where's my order? (Level 4)
- The refund trick (Level 5)
- Launch week (Chapter 1 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).