在非常大量的句子級別資料集上進行嵌入模型訓練。

嵌入 22m 33m

280.2K 9 個月前

說明

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

此專案旨在訓練句子嵌入模型,在非常大量的句子級別資料集上,使用自我監督的對比學習目標。

用法

REST API

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

Python library

ollama.embeddings(model='all-minilm', prompt='The sky is blue because of Rayleigh scattering')

Javascript library

ollama.embeddings({ model: 'all-minilm', prompt: 'The sky is blue because of Rayleigh scattering' })

參考文獻

HuggingFace

網站