InterviewStack.io LogoInterviewStack.io

Retrieval-Augmented Generation (RAG) Questions

Grounding language-model outputs in external knowledge at inference time. Covers document chunking and embedding, vector search and retrieval, context assembly, and combining retrieved evidence with generation to reduce hallucination. Emphasizes the architecture and quality tradeoffs of retrieval-augmented systems over relying on model parameters alone.

HardTechnical
20 practiced

Compare fine-tuning a large language model versus using retrieval-augmented generation (RAG) to add domain knowledge. Discuss costs, latency, maintainability, privacy and data residency, hallucination risk, update frequency, and operational complexity. As a Solutions Architect, provide recommendation criteria for when to choose each approach.

HardSystem Design
19 practiced

Design a semantic vector search service to support retrieval-augmented generation at scale for 1B documents with 100k queries/day and a 200ms P95 latency target. Include embedding generation pipeline, index choice (FAISS vs HNSW vs Annoy), sharding and replication strategy, freshness constraints, hybrid keyword+vector search, caching, and autoscaling considerations.

That is every published Retrieval-Augmented Generation (RAG) question for Solutions Architect so far. Browse the other topics in this category, or practice this one interactively.