(extract-embeddings data)
Extracts and accumulates the embedding
values from a sequence of maps in data
.
Extracts and accumulates the `embedding` values from a sequence of maps in `data`.
(generate-embeddings body)
Makes a POST request to a specified LLM API endpoint with given headers and body.
Makes a POST request to a specified LLM API endpoint with given headers and body.
(set-api-key value)
Sets the global api-key
variable to the given value.
Sets the global `api-key` variable to the given value.
(validate-api-key)
Checks if the global api-key
variable is set to a non-nil value. Returns true if set, false otherwise.
Checks if the global `api-key` variable is set to a non-nil value. Returns true if set, false otherwise.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close