Choosing an Embedding Model
In this article
- Explain why a public leaderboard rank can only shortlist an embedding model for your own search.
- Spot three settings that lower search quality without any error: the query or document input type, the input limit, and the number of output dimensions.
- Run a small test on held questions, counted per slice, and decide from it whether a new model is worth a switch.
- List the fields to store with an index so that its vectors are never mixed with vectors made another way.
- Terms defined here: asymmetric embedding, embedding dimensionality, Matryoshka embedding.
Overview
A teammate sends a link: a new embedding model tops a public ranking, and they want to switch next week. Will your search get better? The ranking cannot tell you, and the switch has costs no ranking shows.
In an invented example, Brightline, a home-internet provider, runs a support assistant that searches about 2,000 chunks of its help pages, router manuals and staff handbook and puts the best 3 into each request.
An embedding model turns a piece of text into a list of numbers, so that texts with similar meaning get similar lists. Three of its settings hurt search quality without any error. You will see them, then run a small test on your own questions, decide from its counts whether a new model earns a switch, and write down the configuration that has to travel with the index.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- What a leaderboard tells you
- Settings that change the vector quietly
- How many numbers
- Brightline's test
- The configuration is part of the index
- The rule at work
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions