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

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

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