Building with AILesson 35 of 80

Module 4 · Retrieval and the knowledge problem

Choosing an embedding model: dimensions, languages and the leaderboard trap

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 4 of 11 in this chapter

This chapter’s goalBuild a retrieval pipeline from raw documents to a ranked set of chunks (embed, index, fuse with keyword search, rerank, filter by permission) measure its recall on a gold set of your own questions, and say from cost and quality numbers whether a given corpus should be retrieved or simply placed in the context window.

This chapter’s media

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

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

The menu, as it stands

Hosted: OpenAI text-embedding-3-small and -large, Cohere embed (strong on many languages), Voyage, Google’s Gemini embedding. Open weights: bge-m3 (multilingual, 8,192-token input, 1,024 dimensions), multilingual-e5-large, nomic-embed-text, the gte family, and Qwen’s embedding models. The open ones run through sentence-transformers on a CPU, through Ollama with ollama pull nomic-embed-text, or through Hugging Face’s hosted inference. The names will have moved by the time you read this; the way of choosing will not.

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 Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Choosing an embedding model: dimensions, languages and the leaderboard trap’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/choosing-an-embedding-model (Accessed: 29 November 2026).