Liking cljdoc? Tell your friends :D

bosquet.llm.ollama


->completionclj

(->completion {:keys [response message prompt_eval_count eval_count]
               :or {prompt_eval_count 0 eval_count 0}})
source

chatclj

(chat service-cfg params)
source

completeclj

(complete service-cfg params)
source

create-embeddingclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close