> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateRerankRequest - Go SDK

> CreateRerankRequest type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

Rerank request input

## Fields

| Field       | Type                                                                                                                           | Required             | Description                                  | Example                                                                                    |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------ |
| `Documents` | \[]`string`                                                                                                                    | :heavy\_check\_mark: | The list of documents to rerank              | \[<br />"Paris is the capital of France.",<br />"Berlin is the capital of Germany."<br />] |
| `Model`     | `string`                                                                                                                       | :heavy\_check\_mark: | The rerank model to use                      | cohere/rerank-v3.5                                                                         |
| `Provider`  | optionalnullable.OptionalNullable\[[components.ProviderPreferences](/client-sdks/go/api-reference/models/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                                                                                          |
