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
  • Getting vectors
  1. API

Query By Ids

Last updated 1 year ago

Prerequisites

Requires a user auth token. See the section.

Getting vectors

Fetches data on specific vectors given vector ids.

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

mindplug.post("/data/vectors", {
    "db": "walmart",
    "collection": "OfficeSupplies",
    "vectorIds": ["22dd234c-340f-4c85-b784-47645bcdf07a",  "c8c47178-cba5-4795-a6ef-67fd4eda70fa"]
});

Returns the vector data related to the given vectors

{
    "data": [
        {
            "id": "0b1a591b-bf13-4c3a-a667-81c9da5bf75f",
            "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
            }
        }
    ]
}
🌴
📙
API Auth