Ask a question to get started
Enter to send•Shift+Enter new line
PineconeRerank()
BaseDocumentCompressor
Pinecone client to use for compressing documents.
Number of documents to return.
Model to use for reranking.
Pinecone API key.
If not provided, will look for the PINECONE_API_KEY environment variable.
Fields to use for reranking when documents are dictionaries.
Whether to return the documents in the reranking results.
Validate that the provided model is supported by Pinecone for reranking.
Return a list of supported embedding models from Pinecone.
Return a list of supported reranker models from Pinecone asynchronously.
Returns an ordered list of documents ordered by their relevance to the provided query.
Async rerank documents using Pinecone's reranking API.
Compress documents using Pinecone's rerank API.
Async compress documents using Pinecone's rerank API.
Document compressor that uses Pinecone Rerank API.
Pinecone Rerank API