Skip to main content

Jina and Cohere

@dsh-ai-providers/jina-cohere is the reranking provider maintained by Firefox2100 as part of this project. It supports the common POST /rerank shape used by Jina AI, Cohere, and compatible servers including some LocalAI and vLLM deployments. It is not an official DSH, Jina AI, or Cohere package.

Configure a connection​

Create one or more connections with an ID, name, base URL, and DSH credential reference. The default is:

SettingDefault
Base URLhttps://api.jina.ai/v1
Credential referenceJINA_API_KEY
Modeljina-reranker-v2-base-multilingual
Timeout60 seconds

For Cohere or a compatible server, change the base URL, credential reference, and model. The base URL must be the prefix immediately before /rerank.

Then open the reranking capability tab and select Jina / Cohere compatible as the active provider.

Compatibility behavior​

Requests contain model, query, documents, optional top_n, and return_documents: false. Responses may use either relevance_score or score. Token usage is read from Jina- or Cohere-style response fields when present.

The service validates empty queries and documents, sorts results by descending score, and normalizes raw logits to the service contract's 0–1 range.

See Reranking for consumer usage.