更新於 11 個月前
11 個月前
468836162de7 · 670MB
模型
架構bert
·
參數334M
·
量化F16
670MB
參數
{ "num_ctx": 512 }
16B
許可證
Apache License Version 2.0, January 2004
11kB
說明文件
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' })