Hugging Face, End to EndLesson 50 of 75

Module 6 · Embeddings, and search that understands

Picking the model, and reading MTEB without being fooled

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 3 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

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

Four specifications, in order of how often they decide it

1. Maximum sequence length. Most embedding models truncate at 512 tokens, and many at 256. Text beyond that is silently discarded: the same silent truncation as module two, with the same consequence. If your chunks are longer than the limit, you are embedding their beginnings. Check model.max_seq_length and chunk to fit it.

2. Language. An English-trained model on Hindi, Bengali or Tamil produces vectors that are not random but are close to useless: everything is moderately similar to everything. The multilingual families (paraphrase-multilingual-MiniLM, multilingual-e5, BGE-M3, LaBSE, jina-embeddings-v3) are trained across many languages and, crucially, place translations of the same sentence close together. That cross-lingual property lets somebody search Hindi documents with an English query, which for a lot of this readership is the whole feature.

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) ‘Picking the model, and reading MTEB without being fooled’, in Hugging Face, End to End. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/hugging-face/choosing-an-embedding-model (Accessed: 27 November 2026).