Lorem Ipsum
cohere-rerank-3.5
Rerank has improved dramatically in cases where the user is expressing explicitly or implicitly constraints on what they would like returned.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Rerank has improved dramatically in cases where the user is expressing explicitly or implicitly constraints on what they would like returned.
cohere-rerank-3.5 is deprecated as of July 1, 2026. Since August 31, 2026, requests to cohere-rerank-3.5 are served by cohere-rerank-4-fast, Cohere’s successor model. Update your rerank requests to specify cohere-rerank-4-fast directly. Because cohere-rerank-4-fast returns different relevance scores than cohere-rerank-3.5, re-tune any hard-coded score thresholds in your application against cohere-rerank-4-fast.pip install -U pinecone
from pinecone import Pinecone
pc = Pinecone("API-KEY")
query = "Tell me about Apple's products"
results = pc.inference.rerank(
model="cohere-rerank-3.5",
query=query,
documents=[
"Apple is a popular fruit known for its sweetness and crisp texture.",
"Apple is known for its innovative products like the iPhone.",
"Many people enjoy eating apples as a healthy snack.",
"Apple Inc. has revolutionized the tech industry with its sleek designs and user-friendly interfaces.",
"An apple a day keeps the doctor away, as the saying goes.",
],
top_n=3,
return_documents=True
)
print(query)
for r in results.data:
print(r.score, r.document.text)
Was this page helpful?