Retrieval-Augmented Generation (RAG) Questions

Grounding language-model outputs in external knowledge at inference time. Covers document ingestion, chunking and embedding, sparse, dense and hybrid retrieval (BM25, score fusion, contrastive training of retrievers), vector search and approximate-nearest-neighbour index engineering (HNSW, IVF, product quantization, filtering, updates, sharding), re-ranking with cross-encoders, and context assembly with prompt templates and citations. Also covers reducing hallucination through verification and abstention, evaluating retrieval-augmented systems, and production concerns such as freshness, access control, prompt injection through retrieved documents, deletion and privacy, caching, cost, and weighing retrieval against fine-tuning. Generic LLM evaluation and release gates, the craft of prompts beyond retrieved-context templates, attention internals, parameter-efficient fine-tuning, model serving and distributed inference engineering, database indexes, and whole-product ML system design are covered elsewhere.

MediumTechnical
19 practiced

How would you decide when a RAG system should abstain or ask a clarifying question instead of answering? What signals from the model and the retrieval pipeline would you combine?

MediumSystem Design
17 practiced

Design a RAG pipeline for multimodal documents (text + images + tables). How would you index multimodal content, retrieve relevant items, and present grounded multimodal context to the LLM so it can reason across modalities?

MediumTechnical
24 practiced

Explain product-level metrics for RAG quality beyond IR metrics: examples include citation-precision, answer-correctness judging F1, user satisfaction, and downstream task completion. How would you instrument and correlate these with retrieval signals?

MediumSystem Design
19 practiced

Design an evaluation suite for a production RAG system. What automated and human evaluation would you run, how would you build test data for edge cases, and how would you weigh answer quality against latency?

MediumTechnical
18 practiced

You need to build a reranker (cross-encoder) to improve top-k relevance. Outline the training data you would use (positives, negatives), loss function, and a strategy for mining hard negatives from the retrieval stage.

Unlock Full Question Bank

Get access to all 22 Retrieval-Augmented Generation (RAG) interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.