Explain the RAG pipeline.
Sample answerDocuments are split into chunks, converted to embeddings and stored in a vector database. At question time the query is embedded, the most similar chunks are retrieved, optionally reranked, and placed in the prompt so the model answers using them, ideally with citations.
↳ Interviewer likely to follow up: how would you test each stage?
Pipeline flowIllustrative