Liking cljdoc? Tell your friends :D
Clojure only.

llm.sdk.rerank

Driver for rerank requests — the rerank counterpart to sdk/complete, sdk/embed, and sdk/moderate.

Resolves the profile, picks up its :profile/rerank-transport-constructor, builds and sends the request, returns a canonical RerankResponse. Providers without rerank support throw a clear ex-info.

Driver for rerank requests — the rerank counterpart to sdk/complete,
sdk/embed, and sdk/moderate.

Resolves the profile, picks up its
:profile/rerank-transport-constructor, builds and sends the request,
returns a canonical RerankResponse. Providers without rerank
support throw a clear ex-info.
raw docstring

rerankclj

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

Send a canonical RerankRequest, return a RerankResponse.

Required keys: :rerank/model, :rerank/query, :rerank/documents (vector of strings). Optional: :rerank/top-n, :rerank/return-documents, :rerank/provider-options.

Send a canonical RerankRequest, return a RerankResponse.

Required keys: :rerank/model, :rerank/query, :rerank/documents
(vector of strings).
Optional: :rerank/top-n, :rerank/return-documents,
:rerank/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