Liking cljdoc? Tell your friends :D

llm.sdk.transport.rerank

Sibling protocol to llm.sdk.transport/Transport, scoped to rerank endpoints. Rerank is a natural pair-step to embeddings — search apps need both, and the three providers we ship adapters for (Cohere, Voyage, Jina) all share a similar wire shape with minor field-naming differences.

Sibling protocol to llm.sdk.transport/Transport, scoped to rerank
endpoints. Rerank is a natural pair-step to embeddings —
search apps need both, and the three providers we ship adapters
for (Cohere, Voyage, Jina) all share a similar wire shape with
minor field-naming differences.
raw docstring

RerankTransportcljprotocol

Provider-specific rerank format conversion.

Provider-specific rerank format conversion.

build-rerank-requestclj

(build-rerank-request this profile request)

Given a profile and canonical RerankRequest, return the native HTTP request map (:method :url :headers :body).

Given a profile and canonical RerankRequest, return the
native HTTP request map (:method :url :headers :body).

parse-rerank-errorclj

(parse-rerank-error this profile status body)

Given a non-2xx HTTP status and body, return a classified error map.

Given a non-2xx HTTP status and body, return a classified error map.

parse-rerank-responseclj

(parse-rerank-response this profile raw-body)

Given a profile and parsed JSON body, return a canonical RerankResponse.

Given a profile and parsed JSON body, return a canonical
RerankResponse.
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