來自 mixedbread.ai 的最先進大型嵌入模型

嵌入 335m

1.7M 10 個月前

說明文件

mxbai-embed-large

截至 2024 年 3 月,此模型在 MTEB 上達成了 SOTA 效能,針對 Bert-large 尺寸的模型。它超越了商業模型,例如 OpenAI 的 text-embedding-3-large 模型,並匹敵了尺寸為其 20 倍的模型效能。

mxbai-embed-large 的訓練數據與 MTEB 數據沒有重疊,這表示該模型在多個領域、任務和文本長度中具有良好的泛化能力。

使用方式

REST API

curl http://localhost:11434/api/embeddings -d '{
  "model": "mxbai-embed-large",
  "prompt": "Represent this sentence for searching relevant passages: The sky is blue because of Rayleigh scattering"
}'

Python 函式庫

ollama.embeddings(model='mxbai-embed-large', prompt='Represent this sentence for searching relevant passages: The sky is blue because of Rayleigh scattering')

Javascript 函式庫

ollama.embeddings({ model: 'mxbai-embed-large', prompt: 'Represent this sentence for searching relevant passages:  The sky is blue because of Rayleigh scattering' })

參考資料

部落格文章

Hugging Face