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
20 practiced

Design a small experiment to compare two embedding models for retrieval quality on a labeled QA dataset. Specify metrics, dataset splits, how you'd generate queries, and how to ensure statistical validity.

EasyTechnical
16 practiced

What is retrieval-augmented generation? Explain the core components and how grounding answers in retrieved documents reduces hallucination compared with a standalone LLM.

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