179 questions
No questions match those filters.
What are the key components of a RAG system, and what c...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansSix components, and the interesting part of the question is defending a choice at each one rather than just naming options. Document loading determines how cleanly PDFs, HTML, and other formats turn into usable text. Chunking strategy — fixed-size, recursive, semantic — determines what unit of text actually gets embedded and retrieved. The embedding model trades off quality, cost, and vector dimension (higher dimensions capture more nuance but cost more to store and search). The vector database trades off managed convenience against self-hosted control and cost, and whether it supports hybrid search natively.
Retrieval strategy is where dense, sparse, and hybrid search plus reranking live, and it’s usually the highest-leverage choice for quality. The generator LLM trades capability against cost and latency per query — often solved by routing simple queries to a cheap model and reserving a stronger one for complex questions. A budget-conscious stack might mean a smaller open-source embedding model, a self-hosted vector database like Qdrant, and a cheap default LLM with reranking to compensate for cheaper retrieval; a premium stack spends more at every layer. The point isn’t memorizing a list — it’s being able to justify each choice against the constraints of the actual project.