Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Documents | []operations.Document | :heavy_check_mark: | The list of documents to rerank. Documents may be plain strings, or structured objects with text and/or image for multimodal models. | [ βParis is the capital of France.β, βBerlin is the capital of Germany.β ] |
Model | string | :heavy_check_mark: | The rerank model to use | cohere/rerank-v3.5 |
Provider | optionalnullable.OptionalNullable[components.ProviderPreferences] | :heavy_minus_sign: | N/A | { βallow_fallbacksβ: true } |
Query | string | :heavy_check_mark: | The search query to rerank documents against | What is the capital of France? |
TopN | *int64 | :heavy_minus_sign: | Number of most relevant documents to return | 3 |