Skip to main content
You can evaluate the correctness and completeness of a response from an assistant or RAG system.

Use cases

Evaluate responses to:
  • Measure how well the Pinecone Assistant captures the facts of the ground truth answer.
  • Compare the Pinecone Assistant’s answers to those of another RAG system.
  • Compare the answers of your own RAG system to those of the Pinecone Assistant or another RAG system.

SDK support

You can evaluate responses directly or through the Pinecone Python SDK or Pinecone Node.js SDK.

Request

The request body requires the following fields: For a runnable example, see Evaluate answers.

Response

Metrics

The response returns a score from 0 to 1 for each of the following metrics:

Reasoning

The response explains the reasoning behind each metric’s score. This includes a list of evaluated facts with their entailment status:

Usage

The response includes the number of tokens used to calculate the metrics. This includes tokens for the prompt and completion.

Pricing

Cost is calculated by token usage. See Pricing for up-to-date pricing information. Response evaluation is only available for Standard and Enterprise plans.