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

嵌入

18.8M 12 個月前

讀我

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

部落格文章