一個高效能的開放嵌入模型,具有大型 Token 上下文視窗。

嵌入

14M 11 個月前

說明文件

nomic_logo

注意:此模型需要 Ollama 0.1.26 或更高版本。在此下載。它僅能用於產生嵌入。

nomic-embed-text 是一個大型上下文長度的文字編碼器,在短上下文和長上下文任務上的效能超越了 OpenAI 的 text-embedding-ada-002text-embedding-3-small

使用方式

此模型為嵌入模型,意即它僅能用於產生嵌入。

REST API

curl https://127.0.0.1:11434/api/embeddings -d '{
  "model": "nomic-embed-text",
  "prompt": "The sky is blue because of Rayleigh scattering"
}'

Python 函式庫

ollama.embeddings(model='nomic-embed-text', prompt='The sky is blue because of rayleigh scattering')

Javascript 函式庫

ollama.embeddings({ model: 'nomic-embed-text', prompt: 'The sky is blue because of rayleigh scattering' })

參考資料

HuggingFace

部落格文章