@pinecone-database/pinecone
Version:
This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.
44 lines (43 loc) • 1.17 kB
TypeScript
/**
* 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.
*/
/**
* Token counts for the input prompt and completion.
* @export
* @interface TokenCounts
*/
export interface TokenCounts {
/**
*
* @type {number}
* @memberof TokenCounts
*/
promptTokens: number;
/**
*
* @type {number}
* @memberof TokenCounts
*/
completionTokens: number;
/**
*
* @type {number}
* @memberof TokenCounts
*/
totalTokens: number;
}
/**
* Check if a given object implements the TokenCounts interface.
*/
export declare function instanceOfTokenCounts(value: object): boolean;
export declare function TokenCountsFromJSON(json: any): TokenCounts;
export declare function TokenCountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenCounts;
export declare function TokenCountsToJSON(value?: TokenCounts | null): any;