OpenAI Create Vector Store
Overview
You can use this Snap to create a vector store for storing and managing vector embeddings generated from OpenAI models. You can configure advanced options, such as file IDs, expiration time, and chunking strategies to optimize storage and retrieval efficiency.

Write-type Snap
Works in Ultra Tasks
Prerequisites
None
Known issues
None.
Snap views
View | Description | Examples of upstream and downstream Snaps |
---|---|---|
Input | This Snap supports a maximum of one document input view. | Mapper |
Output | This Snap has a maximum of one document output view. The Snap provides the details of the created vector store, such as vector store ID and metadata. | Mapper |
Error |
Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. |
Snap settings
- Expression icon (
): JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Account configuration.
- Upload
: Uploads files. Learn more.
Field / field set | Type | Description |
---|---|---|
Label | String |
Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: OpenAI Create Vector Store Example: Create customer embeddings vector store |
Name | String/Expression |
Specify the name of the vector store to be created. Default value: N/A Example: SemanticSearchVectorStore |
Advanced configuration | Use this field set to configure files that are being processed. | |
File IDs | Use this field set to list the file IDs to be used by the vector store during creation. | |
File ID | String/Expression |
Specify the ID of the file to be included in the vector store. Default value: N/A Example: file-123ABC456DEF789GHIJKL |
Expires after (days) | Integer/Expression |
Specify the number of days after the vector store creation time that the vector store will expire. Minimum value: 1 Maximum value: 365 Default value: N/A Example: 7 |
Chunking strategy | Configure the chunking strategy to divide data into manageable vector embeddings. Important: Ensure both Max chunk size tokens and Chunk overlap tokens are either null or non-null. |
|
Max chunk size tokens | Integer/Expression |
Specify the maximum number of tokens in each chunk.
Tip: This field
must either be configured or left blank to avoid an error. Minimum value: 100Maximum value: 4096 Default value: 800 Example: 120 |
Chunk overlap tokens | Integer/Expression |
Specify the number of tokens to overlap between chunks..
Tip:
Default value: 400
Example: 50 |
Metadata | String/Expression | Secify the metadata that provides additional information to facilitate
efficient search and filtering is stored in a structured format. Important:
Default value: N/A Example:{ "fileType": "PDF", "department":
"Marketing" } |
Snap execution | Dropdown list |
Select one of the three modes in which the Snap executes.
Available options are:
Default value: Execute only Example: Validate and Execute |