@pinecone-database/pinecone
Version:
This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.
54 lines • 1.8 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* Pinecone Inference API
* Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors.
*
* 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.DenseEmbeddingToJSON = exports.DenseEmbeddingFromJSONTyped = exports.DenseEmbeddingFromJSON = exports.instanceOfDenseEmbedding = void 0;
/**
* Check if a given object implements the DenseEmbedding interface.
*/
function instanceOfDenseEmbedding(value) {
let isInstance = true;
isInstance = isInstance && "values" in value;
isInstance = isInstance && "vectorType" in value;
return isInstance;
}
exports.instanceOfDenseEmbedding = instanceOfDenseEmbedding;
function DenseEmbeddingFromJSON(json) {
return DenseEmbeddingFromJSONTyped(json, false);
}
exports.DenseEmbeddingFromJSON = DenseEmbeddingFromJSON;
function DenseEmbeddingFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'values': json['values'],
'vectorType': json['vector_type'],
};
}
exports.DenseEmbeddingFromJSONTyped = DenseEmbeddingFromJSONTyped;
function DenseEmbeddingToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'values': value.values,
'vector_type': value.vectorType,
};
}
exports.DenseEmbeddingToJSON = DenseEmbeddingToJSON;
//# sourceMappingURL=DenseEmbedding.js.map