RAG for Everyone

← Back to practice

Chapter 12 Interview Prep45 min review

Interview Questions: What Embeddings Are

Use these to explain embeddings clearly without overselling them.

Q01

What is an embedding?

An embedding is a numeric vector representation of data such as text. It lets systems compare meaning using similarity math.

Q02

Why does RAG use embeddings?

RAG uses embeddings to retrieve chunks that are semantically related to the user's question, even when exact words differ.

Q03

What is cosine similarity?

Cosine similarity measures the angle between vectors. Similar directions usually mean related meaning.

Q04

Are embeddings proof of truth?

No. Similarity means likely related, not necessarily correct, current, authorized, or complete.

Q05

What is the difference between dense and sparse retrieval?

Dense retrieval uses learned semantic vectors. Sparse retrieval uses exact or weighted term matching such as TF-IDF or BM25.

Q06

When is hybrid retrieval useful?

When both meaning and exact terms matter, such as support docs with error codes, legal clauses, SKUs, or configuration keys.

Q07

What happens when you change embedding models?

You usually need to re-embed the corpus and rebuild the vector index because vectors from different models may not be comparable.

Q08

What metadata should you store with embeddings?

Chunk id, source id, source text, title, section, access labels, version, effective date, chunker version, embedding model, and index version.

Q09

What are embedding production risks?

Privacy, cost, latency, drift, stale vectors, dimension mismatch, weak evals, and overtrusting semantic similarity.

Q10

How do you evaluate embeddings in RAG?

Use golden questions with expected chunks and measure Recall@k, MRR, gold chunk rank, citation support, and downstream answer quality.

← Practice BankProject →