跳到主要内容Skip to main content

怎么挑 embedding 模型How to Choose an Embedding Model

微型指南 · 约 8 分钟Guide · about 8 min · 引用核验 2026-11-03(仅引用链接与日期) · refs checked 2026-11-03 (reference links and dates only)

embedding 模型决定「意思相近」怎么算。挑错模型,后面检索、重排、回答全跟着吃亏。The embedding model decides how "similar in meaning" is computed. Pick it wrong and retrieval, reranking, and answering all suffer.

怎么做How to

先看语种支持:中文任务要在中文或多语基准上看分数,英文榜好看不等于中文好用。

看维度与成本:维度高通常存储和计算更贵,按数据量估。

用 MTEB 这类基准初筛,再用自己数据实测,榜单只是起点。

查询与文档要同模型:混用不同模型算的向量,距离没有意义。

注意归一化口径:有的模型输出要归一化才能用余弦相似度。

换模型要重建索引:旧向量和新向量不兼容,迁移等于重算一遍。

Check language support first: for Chinese tasks, read scores on Chinese or multilingual benchmarks; a good English leaderboard says nothing about Chinese.

Weigh dimensions against cost: higher dimensions usually mean pricier storage and compute; estimate by data volume.

Screen with benchmarks like MTEB, then test on your own data; the leaderboard is only a starting point.

Queries and documents must use the same model: vectors from different models have no meaningful distance.

Mind normalization: some models require normalized outputs before cosine similarity is valid.

Switching models means rebuilding the index: old and new vectors are incompatible; migration means recomputing everything.

例子与判断Example and interpretation

以下是教学情境,不是本站运行或实测记录。A teaching scenario, not a measured or executed site test.

先备十几个真实查询,并人工标出应命中的文档。候选模型用同一批查询与文档建索引,比较命中、体积和耗时。换模型时重新计算文档向量,不把新查询向量直接接到旧索引。Prepare representative queries with known relevant documents. Index the same material for each candidate and compare retrieval, size and latency. Recompute document vectors when switching models rather than querying an old index with new vectors.

做完例子后怎么检查How to check your practice

先用自己的话解释上面的判断,再检查输入条件,最后回原文验证。说不清原因时回概念;缺日期、字段或权限时补输入;结论无出处时先撤回结论。Explain the example in your own words, inspect input constraints, then verify against the source. Revisit concepts if you cannot explain why; supply missing dates, fields or permissions; withdraw unsupported conclusions.

按这篇主题,先从“概念没分清”练习查起For this topic, start with concept confusion · 查看全部六个情境与理由See all six scenarios and their reasoning

出处Sources
  • MTEB 基准论文(Muennighoff 等,arXiv 2022)MTEB: Massive Text Embedding Benchmark (arXiv 2210.07316) ↗
  • Qdrant 什么是向量数据库(官方)What is Qdrant? Vector databases ↗