How AI actually worksLesson 071 min
How can a chatbot answer from documents it was never trained on?
A model on its own knows only its training data, so an app can hand it the right pages. It stores documents as short passages with their embeddings, finds the passages closest in meaning to your question, and pastes them into the prompt. This is retrieval-augmented generation, or RAG. The model is not retrained, and a wrong search result gives a wrong answer.
Remember
With RAG, an answer is only as good as the passages the search finds.
