PineconeRerankingService
Wisej.AI.Services.PineconeRerankingService
Last updated
Wisej.AI.Services.PineconeRerankingService
Last updated
Namespace: Wisej.AI.Services
Assembly: Wisej.AI (3.5.0.0)
Represents a service for reranking text inputs using the Pinecone API.
This service communicates with the Pinecone API to rerank text inputs based on a specified query. It allows configuration of the API endpoint, API key, model, API version, and the number of top documents to return.
Initializes a new instance of .
: Gets or sets the API key for the Pinecone service. (Default: null
)
: Gets or sets the API version used for requests. (Default: "2025-04"
)
Retrieves the API key for the Pinecone service.
Asynchronously reranks the provided chunks based on the specified query.
query
The query used to rerank the chunks.
chunks
The array of text inputs to be reranked.
Represents a service for reranking documents based on a given query.
: Gets or sets the reranking model for the Pinecone service. (Default: "pinecone-rerank-v0"
)
: Gets or sets the maximum number of documents to return in the reranked response. If set to 0 it will return all the documents in the input. (Default: 10
)
: Gets or sets the URL of the Pinecone service. (Default: "https://api.pinecone.io/rerank"
)
Returns: . The API key for the Pinecone service.
Returns: . A task that represents the asynchronous operation. The task result contains an array of reranked text inputs.