Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several changes to the
cohere-openapi.yaml
file, primarily focusing on refining the descriptions and parameters for the ReRank API. The updates aim to provide clearer guidance and improve the user experience when interacting with the API.description
field for the model identifier has been enhanced to include a list of supported models (rerank-english-v3.0
,rerank-multilingual-v3.0
,rerank-english-v2.0
, andrerank-multilingual-v2.0
).query
description now specifies that the search query is used to rerank documents, with a maximum length of 500 tokens. It also provides a link to a tokenization guide for reference.documents
description has been modified to clarify that it accepts a list of strings for reranking against the search query. It mentions automatic truncation for long documents and recommends a limit of 1,000 documents for optimal performance.max_chunks_per_doc
parameter has been replaced withmax_document_length
, which truncates documents exceeding the specified length. The default value has been increased from 10 to 4096.rank_fields
,return_documents
, andmax_chunks_per_doc
parameters have been removed.