Skip to content

Retrieval-augmented generation (RAG)

Also called RAG

Retrieval-augmented generation (RAG) is a technique in which an AI system first retrieves relevant passages from a chosen set of documents, then gives them to a language model to write its answer. It lets the model answer from current, specific information it was never trained on, and makes answers easier to check.

Example

Asked "what's your return window?", a RAG system searches the store's pages, finds the returns-policy paragraph and passes it to the model, which answers "30 days from delivery".

Why it matters for a website chatbot

RAG is how a website chatbot can know your business without training a model from scratch. The quality of retrieval decides the quality of answers. ChatBento uses RAG: it splits your content into passages, finds the most relevant ones for each question, and answers from them with source links.

See it in practice: Docs and help-center search

Further reading

An AI chatbot that answers from your site. Free to start. Paid plans from $8 a month.

14-day free trial. No card required.