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

嵌入

1400萬 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

部落格文章