InterviewBuddy
All interview questions

What is retrieval-augmented generation (RAG)?

Beginner

Answer

RAG retrieves relevant external information and supplies it to a model as context when generating a response. It helps ground answers in a selected knowledge source.

Explanation

Retrieval can miss important context or return misleading information. RAG does not guarantee factual answers; evaluate retrieval and generated answers separately.

Example

Question → retrieve passages → assemble context → generate → verify