> This page is for version v1 API.
> For other versions, use one of these documentation indexes:
> - v2 API (default): https://docs.cohere.com/v2/llms.txt
> - v1 API: https://docs.cohere.com/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cohere.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cohere.com/_mcp/server.

# New Maximum Number of Input Documents for Rerank

> Stay up to date with our latest changes to co.rerank, now with an improved maximum document limit.

We have updated how the maximum number of documents is calculated for co.rerank. The endpoint will error if `len(documents) * max_chunks_per_doc >10,000` where `max_chunks_per_doc` is set to 10 as default.