AI1 0 1 1 0 1 0 0 1 1 0 10 1 0 0 1 1 0 1 0 1 1 0 1Ai Me Bro

What is RAG and why do people use it with AI?

StarterAny assistantagents

RAG, or retrieval-augmented generation, means searching your own documents for relevant passages and giving them to the model along with the question, so it answers from real material instead of memory.

Why people use it:

  • Answers can draw on private or recent information the model never saw in training.
  • You can show the source passages, which makes checking easier.
  • It reduces, but does not eliminate, made-up answers.

Typical steps: split documents into chunks, index them for search, find the best chunks for each question, and place them in the prompt with an instruction to answer only from them and to say when the answer is absent. Quality depends on good search, so test with real questions.

Related answers

What is RAG and why do people use it with AI? | Ai Me Bro