Skip to main content

addVectorItem

plugin.vectordb.addVectorItem(item: any): Promise<AddVectorItemResponse>

Adds a new vector item to the vector database.

Parameters

ParameterTypeRequiredDescription
itemanyYesThe item to add to the vector.

Returns

Promise<AddVectorItemResponse> — A promise that resolves when the item is successfully added.

Example

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

const result = await plugin.vectordb.addVectorItem(/* any */);
console.log(result);