UNPKG

@pinecone-database/pinecone

Version:

This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.

57 lines 1.95 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Evaluation API * Provides endpoints for evaluating RAG systems using various metrics. * * The version of the OpenAPI document: 2025-04 * Contact: support@pinecone.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AlignmentRequestToJSON = exports.AlignmentRequestFromJSONTyped = exports.AlignmentRequestFromJSON = exports.instanceOfAlignmentRequest = void 0; /** * Check if a given object implements the AlignmentRequest interface. */ function instanceOfAlignmentRequest(value) { let isInstance = true; isInstance = isInstance && "question" in value; isInstance = isInstance && "answer" in value; isInstance = isInstance && "groundTruthAnswer" in value; return isInstance; } exports.instanceOfAlignmentRequest = instanceOfAlignmentRequest; function AlignmentRequestFromJSON(json) { return AlignmentRequestFromJSONTyped(json, false); } exports.AlignmentRequestFromJSON = AlignmentRequestFromJSON; function AlignmentRequestFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'question': json['question'], 'answer': json['answer'], 'groundTruthAnswer': json['ground_truth_answer'], }; } exports.AlignmentRequestFromJSONTyped = AlignmentRequestFromJSONTyped; function AlignmentRequestToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'question': value.question, 'answer': value.answer, 'ground_truth_answer': value.groundTruthAnswer, }; } exports.AlignmentRequestToJSON = AlignmentRequestToJSON; //# sourceMappingURL=AlignmentRequest.js.map