2.9M 下载 已更新 1年前
ollama pull all-minilm:l6-v2
注意:此模型需要 Ollama 0.1.26 或更高版本。 在此处下载。它只能用于生成嵌入。
该项目旨在利用自监督对比学习目标,在非常大的句子级别数据集上训练句子嵌入模型。
curl https://:11434/api/embeddings -d '{
"model": "all-minilm",
"prompt": "The sky is blue because of Rayleigh scattering"
}'
ollama.embeddings(model='all-minilm', prompt='The sky is blue because of Rayleigh scattering')
ollama.embeddings({ model: 'all-minilm', prompt: 'The sky is blue because of Rayleigh scattering' })