VectorStore SDK
The VectorStore SDK provides an easy-to-use vector storage service. You can use the SDK to insert, update, get, query, delete vector data, perform similarity searches, and load data from various sources.
Usage
If you want to use the VectorStore SDK in your Babel app, you need to create a VectorStore Element and then import it:
import { myVectorStore } from "#elements";
APIs
- delete Deletes vectors based on the provided IDs.
- deleteAll Deletes all vectors based on the provided filters.
- update Updates an existing vector with the provided ID.
- fetch Fetches vectors based on the provided IDs.
- getEmbeddings Calculates the embeddings for an array of content strings.
- search Searches for vectors similar to a given vector or content string.
- upsertFromDocuments Inserts or updates vectors from an array of documents.
- upsertFromVectors Inserts or updates vectors from an array of vectors.
- upsertFromWebpage Inserts or updates vectors from a webpage.
- upsertFromWebpageRecursive Inserts or updates vectors from a webpage and its linked pages recursively.
- upsertFromYouTube Inserts or updates vectors from a YouTube video.
- upsertFromHuggingFace Inserts or updates vectors from a HuggingFace dataset.
- upsertFromPDF Inserts or updates vectors from a PDF File.
- upsertFromAssets Inserts or updates vectors from an Assets Element.
- upsertFromStorage Inserts or updates vectors from a Storage Element.
- upsertFromDatabase Inserts or updates vectors from a Database Element.