Embeddings and Rerank
Embeddings
OpenAI-compatible embedding requests use POST /v1/embeddings.
BASH
Common fields:
| Field | Description |
|---|---|
model | Required. Embedding model ID. |
input | String or array of strings. |
encoding_format | Can be float or base64 when supported by upstream. |
dimensions | Supported models can specify output dimensions. |
user | Optional tracking identifier. |
Gemini-style embedding requests can use:
POST /v1/engines/{model}/embeddingsRerank
Use POST /v1/rerank to call Jina, Cohere, and other rerank models.
BASH
Common fields:
| Field | Description |
|---|---|
model | Required. Rerank model ID. |
query | Query text. |
documents | Array of strings or document objects. |
top_n | Maximum number of ranked results to return. |
return_documents | Whether to include original documents in the response. |
