Lesson 2 · Unit 02
Chunks and ranking
Chunk size, hybrid search, reranking and filters
What you practise
- Chunk size and overlap and what each breaks, keyword against semantic search and combining them, reranking, metadata filters
Try a question from this lesson
Pick one
A 40-page handbook is embedded as one vector. Someone asks how many vacation days new hires get. Why does retrieval work badly?
Correct answer
One vector blurs 40 pages of topics into a single point
Why
A single vector averages everything from dress code to pensions, so it sits close to no question in particular. And when it does match, you paste 40 pages into the prompt. Split documents into chunks and embed each one.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Size and overlap
Small chunks match precisely but can lose the context that gives them meaning. Large chunks keep the context but blur several topics into one vector and fill more of the prompt.
Overlap repeats the end of one chunk at the start of the next, so a sentence cut by a boundary survives whole in one of them.
Concept
Retrieve wide, rerank narrow
First-stage search is fast because every chunk vector was computed in advance. It is also rough.
A reranker reads the question and one chunk together and scores how well the chunk answers it. That is slower and sharper, so run it on the top 50 candidates and keep the best 5. It cannot rescue a chunk the first stage never returned.
10 more exercises in the app
- 3× type the answer
- 4× multiple choice
- 1× true or false
- 1× order the lines
- 1× match the pairs
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.