In a RAG pipeline, what is the job of the embedding model?
- Exam domain
- RAG with embeddings, rerank and vector search
- Difficulty
- Easy
- In this mock
- 6 questions on this domainPractise this domain
Why B is the answer
Turn text into vectors so similar meanings sit close together
Embeddings map text to vectors. Similar meanings get nearby vectors, which is what makes semantic search over your documents work.
Remember: Embeddings make meaning searchable.
In detail
- Embed both documents and questions.
- Compare vectors to find matches.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Encrypt documents at restWrong
Encryption is a storage feature.
B. Turn text into vectors so similar meanings sit close togetherRight
Embeddings make meaning searchable.
C. Write the final answer for the userWrong
The chat model writes the answer.
D. Sort the final answers alphabetically, which makes the citations easier to scanWrong
Embeddings do not sort text alphabetically.
Use case
An illustrative scenario, not a real incident.
Illustrative: a policy bot embeds every handbook section and the user's question, then finds the closest sections.
See it in different ways
flowchart LR S0["Embed the question"] --> S1["Retrieve chunks"] --> S2["Rerank"] --> S3["Generate with context"]
How to read this chart
- Read it in order: Embed the question, then Retrieve chunks, then Rerank, then Generate with context.
mindmap
root(("RAG"))
n1["Embed"]
n2["Documents"]
n3["Question"]
n4["Retrieve"]
n5["Nearest chunks"]
n6["Generate"]
n7["Answer from chunks"]How to read this chart
- The centre is "RAG".
- "Embed" covers "Documents", "Question".
- "Retrieve" covers "Nearest chunks".
- "Generate" covers "Answer from chunks".