Hugging Face, End to EndLesson 56 of 75

Module 6 · Embeddings, and search that understands

Thirty questions, and the numbers they give you

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 9 of 9 in this chapter

This chapter’s goalBuild and measure a semantic search over your own documents: choosing an embedding model against your language and text length, chunking deliberately, normalising vectors for the similarity you use, adding a cross-encoder reranker, and reporting recall@k on questions you wrote yourself.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch2:08Not available
Full audiobookNot availableNot available
What thirty questions can settle, and what they cannotDetected reliablyA chunk size that is wrong for your documentsAn embedding model that does not handle yourlanguageA missing query prefix on a BGE or E5 familymodelA reranker’s effect, which is usually tenpoints or moreA corpus that simply does not contain theanswerNot detected: do not act on itTwo points between two shortlisted modelsFifty candidates against sixtyAn overlap of forty tokens against fiftyThirty is chosen because it is small enough to read every failure and large enough to detect thedifferences worth acting on. Treating twenty-six out of thirty against twenty-seven out of thirty as aresult is how people talk themselves into noise.
Thirty is chosen because it is small enough to read every failure and large enough to detect the differences worth acting on. Treating twenty-six out of thirty against twenty-seven out of thirty as a result is how people talk themselves into noise.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Build the set first

Everything in this module has a dial on it: model, chunk size, overlap, k, reranker, hybrid weight. Without measurement you are turning dials and trusting your impression of five queries, which is how people end up confidently worse than when they started.

The set is thirty to fifty questions, written by you, each paired with the chunk or document that should answer it.

JSON
{"q": "How long does a refund take?", "gold": ["policy-refunds-c3"]}
{"q": "मेरा पार्सल कहाँ है?", "gold": ["delivery-tracking-c1", "delivery-faq-c2"]}

Three rules for writing them:

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Image Generation, in Practice exam.

Stuck on something?Ask Arjun, your AI tutor

How to cite: Addaly (2026) ‘Thirty questions, and the numbers they give you’, in Hugging Face, End to End. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/hugging-face/measuring-your-retrieval (Accessed: 29 November 2026).