Whatever message this page gives is out now! Go check it out!
vectorStoreClient.addAll(items)Parameter | Type | Required | Description |
items | Array | Yes | An array of item structures (see add for struct definition). |
<cfscript>
vectorstoreclient = VectorStore();
ids = vectorstoreclient.addAll([
{
"id": "sku-501",
"text": "Trail runner shoes waterproof breathable size 7–12 black",
"metadata": { "sku": "sku-501", "category": "footwear", "inStock": true }
},
{
"id": "sku-502",
"text": "Lightweight hiking boots leather ankle support waterproof",
"metadata": { "sku": "sku-502", "category": "footwear", "inStock": true }
}
]);
writeDump(var=ids, label="Added IDs");
</cfscript>