Storing Data
Prerequisites
Requires a user auth token. See the API Auth section.
Storing data - API
For now Mindplug handles the storing of text data only. You can store data given the following parameters:
Database name:
db
A collection name:
collection
An text string to generate embedding for:
content
Metadata
which is any arbitrary object for the contentOPTIONAL:
chunkSize
Defaults to 1024. Represents the amount of characters stored per embedding. If you give content size of 1300 characters, this will make 2 embeddings of 1k and 300 characters respectively.
Mindplug uses recursive chunking to chunk the string content. Thus the chunkSize
will vary slightly across different embeddings.
For any project or collection that does not already exist, it will be auto created for the user without any additional work.
An upload id and a list of stored vector IDs are returned for later use.
Sample Response
Last updated