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?
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🎉 New: Standard and Enterprise orgs get a one-time $250 bulk import credit (1 TB), valid through August 30, 2026. See details
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. Starting August 1, 2026, requests to cohere-rerank-3.5 are automatically served by cohere-rerank-4-fast, Cohere’s successor model. To control the transition yourself, migrate your rerank requests to cohere-rerank-4-fast before August 1, 2026. cohere-rerank-4-fast returns different relevance scores than cohere-rerank-3.5, so if your application relies on hard-coded score thresholds, re-tune them against cohere-rerank-4-fast before the transition.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?