1.2M Downloads Updated 1 year ago
Note: this model requires Ollama 0.1.26 or later. Download it here. It can only be used to generate embeddings.
The project aims to train sentence embedding models on very large sentence level datasets using a self-supervised contrastive learning objective.
curl http://localhost: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' })