Skip to main content

VectorStore

Overview

The VectorStore Element is a vector database used for managing data embeddings. You can directly store vector data, or establish rules for embeddings and store the original text. The VectorStore Element will then automatically convert the original text into vector embeddings for storage.

Features

Service Provider

During the embeddings process, the interface provided by the service provider is needed to convert the original text into vector data. Babel includes a built-in service provider that offers a certain amount of free usage every month for each user, which can be utilized to explore the capabilities of the VectorStore Element.

images of workspace - VectorStore Element built-in service provider

For serious applications, it is recommended to use the OPENAI service provider.

images of workspace - VectorStore Element openai service provider

Text Splitters

During the text embedding process, there may be a need for splitters, such as those based on token size or special character splitters.

The VectorStore Element provides Text Splitter capabilities, supporting various types of splitters to cater to diverse text splitting scenarios.

images of workspace - VectorStore Element Text Splitters

If you are using a Token type Splitter, there will be some margin of error in calculating tokens. It is recommended that the value of ChunkSize does not exceed 5000.

Access

Access in the Embed

The VectorStore Element supports embedding text and performing similarity searches on the Embed page.

Auto Embedding

Auto Embedding allows for the embedding and storage of text or files in a specified format. You can use the Similarity Search feature to test the results of the embedding.

images of workspace - VectorStore Element Auto Embedding

Import Manually

The Import Manually feature allows you to import vector arrays in a specified format. You can click on "Download sample" to view the import format.

images of workspace - VectorStore Element Import Manually

Access in the VectorStore SDK

If you need to access VectorStore Element within your code, please refer to the VectorStore SDK section.