Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.
Rerank request input

Fields

FieldTypeRequiredDescriptionExample
documentsList[str]:heavy_check_mark:The list of documents to rerank[
“Paris is the capital of France.”,
“Berlin is the capital of Germany.”
]
modelstr:heavy_check_mark:The rerank model to usecohere/rerank-v3.5
providerOptionalNullable[components.ProviderPreferences]:heavy_minus_sign:N/A{"allow_fallbacks": true}
querystr:heavy_check_mark:The search query to rerank documents againstWhat is the capital of France?
top_nOptional[int]:heavy_minus_sign:Number of most relevant documents to return3