The request for the alignment evaluation.
import type { EvaluateOptions } from '@pinecone-database/pinecone';const options: EvaluateOptions = { question: 'Where can I start a return?', answer: 'From your order history.', groundTruth: 'Customers can start returns from their order history.',}; Copy
import type { EvaluateOptions } from '@pinecone-database/pinecone';const options: EvaluateOptions = { question: 'Where can I start a return?', answer: 'From your order history.', groundTruth: 'Customers can start returns from their order history.',};
The generated answer.
The ground truth answer to the question.
The question for which the answer was generated.
The request for the alignment evaluation.
Example