UNPKG

@pinecone-database/pinecone

Version:

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

51 lines 1.43 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.FactToJSON = exports.FactFromJSONTyped = exports.FactFromJSON = exports.instanceOfFact = void 0; /** * Check if a given object implements the Fact interface. */ function instanceOfFact(value) { let isInstance = true; isInstance = isInstance && "content" in value; return isInstance; } exports.instanceOfFact = instanceOfFact; function FactFromJSON(json) { return FactFromJSONTyped(json, false); } exports.FactFromJSON = FactFromJSON; function FactFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'content': json['content'], }; } exports.FactFromJSONTyped = FactFromJSONTyped; function FactToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'content': value.content, }; } exports.FactToJSON = FactToJSON; //# sourceMappingURL=Fact.js.map