非常大量的句子層級資料集上的嵌入模型。

嵌入 22m 33m

311.7K 10 個月前

Readme

注意:此模型需要 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 函式庫

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

Javascript 函式庫

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

參考資料

HuggingFace

網站