(->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-embeddings
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close