Lorem Ipsum
rerank-english-v2
Use the rerank-english-v2 embedding or reranking model with Pinecone: specs and index setup. Good reranking model, consumes both a query and a list of.
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), through July 31, 2026. See details
Use the rerank-english-v2 embedding or reranking model with Pinecone: specs and index setup. Good reranking model, consumes both a query and a list of.
pip install -qU cohere==4.34
import cohere
co = cohere.Client("<<YOUR_COHERE_API_KEY>>")
reranked_docs = co.rerank(
query=query_str,
documents=docs,
top_n=5, # controls how many reranked docs to return
model="rerank-english-v2.0"
)
Was this page helpful?