A team is curating a document set for a RAG chatbot. Which two practices improve retrieval quality? (Select TWO.)
- Exam domain
- Core ML and AI Knowledge30% of the exam
- Difficulty
- Medium
- In this mock
- 16 questions on this domainPractise this domain
Why the exam asks this
Core Machine Learning and AI Knowledge (30% of the exam).
Objective in the exam guide: Curate and embed content datasets for RAGs.
Retrieval quality depends on how content is prepared.
Why C and D are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
Split documents into chunks sized for retrieval, with some overlap between chunks
Store metadata such as source and date with each chunk
Well-sized, overlapping chunks match questions better, and metadata enables filtering and citations.
How it works
Chunks should be small enough to be specific and large enough to keep meaning.
Overlap keeps sentences that span boundaries.
Metadata supports filtering and source citations.
Clues in the question
The words that point to the answer, and what each one tells you.
- Improve retrieval quality
- Better chunks and metadata.
In detail
- Remove duplicates so results are not crowded by copies.
- Use the same embedding model for documents and queries.
Side by side with look-alikes
| Practice | Helps retrieval? |
|---|---|
| Sized, overlapping chunks | Yes |
| Metadata per chunk | Yes |
| Whole-document vectors | No |
| Keep duplicates | No |
| Different query model | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Keep every duplicate copy so popular content ranks higherWrong
Duplicates crowd out other relevant results.
B. Use a different embedding model for queries than for documentsWrong
Query and document vectors must come from the same model to be comparable.
C. Split documents into chunks sized for retrieval, with some overlap between chunksRight
Well-sized, overlapping chunks match questions better, and metadata enables filtering and citations.
D. Store metadata such as source and date with each chunkRight
Well-sized, overlapping chunks match questions better, and metadata enables filtering and citations.
E. Embed each whole document as one vector regardless of lengthWrongMost tempting
One vector per long document blurs many topics together.
Why it tempts: It is simpler. But a long document mixes many topics into one vector.
In practice
- Test chunk sizes against a set of real questions and pick the best hit rate.