Error
A valid request URL is required to generate request examples{
"id": "<string>",
"results": [
{
"index": 123,
"relevance_score": 123,
"document": {}
}
],
"meta": {}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}Cohere Integration
Rerank documents (Cohere format)
Reranks a list of documents against a query using Cohere’s v2 Rerank API. The request body matches Cohere’s native format.
POST
/
cohere
/
v2
/
rerank
Error
A valid request URL is required to generate request examples{
"id": "<string>",
"results": [
{
"index": 123,
"relevance_score": 123,
"document": {}
}
],
"meta": {}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}{
"event_id": "<string>",
"type": "<string>",
"is_bifrost_error": true,
"status_code": 123,
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"event_id": "<string>"
},
"extra_fields": {
"model_requested": "<string>",
"request_type": "<string>"
}
}Authorizations
BearerAuthBasicAuthVirtualKeyAuthApiKeyAuth
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Body
application/json
Cohere rerank model identifier (e.g. rerank-english-v3.0).
Query string to rank documents against.
Documents to rerank. Strings or objects with a text field.
Return only the top N reranked results.
Include the original document text in the response.
Truncate each document to this token limit before ranking.
Was this page helpful?
⌘I

