πQuery by collection
Prerequisites
Requires a user auth token. See the API Auth section.
Deleting Collection
Deletes all embedding vectors from the collection. The endpoins requires:
Database name:
db
A collection name:
collection
import mindplug from "@/src/mindplugAPI"; // base instance
mindplug.post("/collection/vectors", {
db: "walmart",
collection: "office supplies"
});
Returns a list of top 10 vectors from the collection
{
"data": [
{
"id": "94d75718-c00a-468f-825c-4181925447e6",
"metadata": {
"content": "Premium eraser: an erases that works on both pen and pencil and leaves no crumbs",
"description": "Premium eraser: an erases that works on both pen and pencil and leaves no crumbs",
"id": 1234335
}
}
],
"count": 2
}
Last updated