(->completion {:keys [response message prompt_eval_count eval_count]
:or {prompt_eval_count 0 eval_count 0}})(create-embedding service-cfg
{:keys [model content] :or {content identity}}
payload)Works as the equivalent of this:
curl http://localhost:11434/api/embeddings -d '{
"model": "all-minilm",
"prompt": "Here is an article about llamas..."}'
https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddings
Works as the equivalent of this:
```
curl http://localhost:11434/api/embeddings -d '{
"model": "all-minilm",
"prompt": "Here is an article about llamas..."}'
```
https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddingscljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |