Portkey exposes Google Vertex AI’s Discovery Engine ranking API through the unifiedDocumentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
/v1/rerank endpoint.
Enable the Discovery Engine API on the GCP project backing your Vertex AI provider before making rerank requests.
Supported Models
semantic-ranker-default@latest(default)semantic-ranker-fast@latestsemantic-ranker-512@latest- Specific versions:
semantic-ranker-default-004,semantic-ranker-fast-004,semantic-ranker-default-003,semantic-ranker-default-002
Rerank documents
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Ranking model to use (see supported models) |
query | string | Yes | Query against which documents are ranked |
documents | string[] | object[] | Yes | Documents to rank. Accepts strings or { text, title? } objects (max 200) |
top_n | integer | No | Number of top results to return. Omit to return all |
return_documents | boolean | No | Set to false to receive only IDs and scores (default true) |
Related Resources
Google Vertex AI Ranking API
Official documentation for the Vertex AI Discovery Engine ranking API.

