Skip to main content

getVector

plugin.vectordb.getVector(key: string): Promise<GetVectorResponse>

Retrieves a vector from the vector database based on the provided key.

Parameters

ParameterTypeRequiredDescription
keystringYesThe key of the vector to retrieve.

Returns

Promise<GetVectorResponse> — A promise that resolves with the retrieved vector.

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.vectordb.getVector('key');
console.log(result);