Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 702 Bytes

addVectorItem.md

File metadata and controls

31 lines (27 loc) · 702 Bytes
name cbbaseinfo cbparameters data
addVectorItem
description
Adds a new vector item to the vector database.
parameters returns
name typeName description
item
any
The item to add to the vector.
signatureTypeName description typeArgs
Promise
A promise that resolves when the item is successfully added.
type name
reference
AddVectorItemResponse
name category link
addVectorItem
vectordb
addVectorItem.md

Example

 const addResponse = await codebolt.vectordb.addVectorItem({ id: "123", vector: [0.1, 0.2, 0.3] });
        console.log("Add Vector Response:", addResponse);