MindPlug
  • 🧠Introduction
  • 🔹How does it work?
  • 🍁JavaScript SDK
  • 🌴API
    • 📗API Setup - Text
    • 📗API Setup - Audio
      • 🔉Performing Transcription
    • 📗API Setup - PDFs
    • 📙Storing Data
    • 📙Store PDF
    • 📙Store Web
    • 📙Query Data
      • 🧠Using Metadata Filters
    • 📙Query By Ids
    • 📙Query by collection
    • 📙Delete By Ids
    • 📙Delete By Upload Id
    • 📙Delete Collection
    • 📙Delete Project
    • 📙List Projects
    • 📙List Collections
    • 📙Search Web
    • Parse Webpage
Powered by GitBook
On this page
  • Prerequisites
  • Listing Collections
  • Sample Response
  1. API

List Collections

Lists all the collections the user has

Last updated 1 year ago

Prerequisites

Requires a user auth token. See the section.

Listing Collections

Takes in a name of the database db and returns a list of all collections in that db.

import mindplug from "@/src/mindplugAPI"; // base instance

mindplug.post("/collection/list", {
    db: "walmart",
});

Note the collections are automatically created when you add new data to the database.

Sample Response

{
    "data": [
        {
            "collection": "OfficeSupplies",
            "totalVectors": 0,
            "collectionId": "591ed632-cf38-403e-8e63-be87999d4115"
        }
    ],
    "count": 1
}
🌴
📙
API Auth