Information retrieval finds relevant information in an external collection and supplies it as model context. In retrieval-augmented generation, the system embeds documents and a user query, then uses similarity search to surface nearby document vectors. If relevant context is missed, a capable model and accurate source documents may still produce vague or outdated answers. section 4.0 section 4.1.1
Insurance policy chatbot
A patient asks whether physical therapy after surgery is covered. The answer exists in the policy documents, but the chatbot fails to find it; the retrieval pipeline, particularly its embedding model, is identified as the problem. section 4.0
Figure 4.1 Document embedding in RAG systems
Trace how documents and a user query are embedded before similarity search retrieves candidate context. section 4.0










