← All lab updates

RAG, explained: how an assistant answers from your documents, and the four places it goes wrong

Most company assistants answer from the company's own documents through a method called RAG, retrieval-augmented generation. It works by finding the passages closest to the question and handing them to the model. Here is each step in plain words, five lines of code, and the four places where it quietly goes wrong.