Promptles
AI & Prompt Engineering

RAG (Retrieval-Augmented Generation)

advanced

Definition

A way of giving an AI the right reference materials before asking it a question. The system searches a library of documents for the parts that look most relevant, hands them to the AI, and then asks the question. This way the answer is grounded in real, up-to-date information instead of the AI's general training.

In the wild

A company chatbot answers questions about their refund policy. Behind the scenes, it pulls the most relevant paragraphs from the company's actual help center articles and gives them to the AI as background. So the answer matches the real policy, not a made-up one.

More from AI & Prompt Engineering