Liking cljdoc? Tell your friends :D
Clojure only.

llm.sdk.embed

Driver for embedding requests — the embed counterpart to llm.sdk/complete. Resolves the provider profile, picks up its :profile/embed-transport-constructor, builds the request, sends it, and returns a canonical EmbedResponse.

Providers without an embed transport throw ex-info on call rather than returning nil — surfacing missing capability at the call site is friendlier than letting a downstream NullPointer explode.

Driver for embedding requests — the embed counterpart to
llm.sdk/complete. Resolves the provider profile, picks up its
:profile/embed-transport-constructor, builds the request, sends it,
and returns a canonical EmbedResponse.

Providers without an embed transport throw ex-info on call rather
than returning nil — surfacing missing capability at the call site
is friendlier than letting a downstream NullPointer explode.
raw docstring

embedclj

(embed provider-id request & {:keys [config]})

Send a canonical EmbedRequest and return a canonical EmbedResponse.

The request map must contain :embed/model and :embed/inputs (a vector of strings). Optional fields: :embed/dimensions, :embed/encoding-format (:float or :base64), :embed/user, :embed/provider-options.

Send a canonical EmbedRequest and return a canonical EmbedResponse.

The request map must contain :embed/model and :embed/inputs (a
vector of strings). Optional fields: :embed/dimensions,
:embed/encoding-format (:float or :base64), :embed/user,
:embed/provider-options.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close