In this tutorial, you'll learn how to send data to the SnackPrompt AI Engine Knowledge Base.
What is an Elemental?
An elemental is the basic unit of data in SnackPrompt. It can be:
A table with columns and items
A file with structured content
When you send an elemental, the API:
Generates embeddings (vector representations)
Stores in the Knowledge Base
Makes the data searchable
How to create a simple Knowledge Base
Step 1: Set up your Knowledge Base
The first step is to ensure your data is accessible to the AI. In Snackprompt, you can transform any element into a data source:
Create a Table , Document , or Prompt .
Populate it with your data.
Enable the Knowledge Base toggle in the settings menu.
For a detailed step-by-step on this process, see our guide: Creating your first Knowledge Basearrow-up-right .
What Happens During Ingestion?
When you send an elemental, the API executes the following steps:
During ingestion, the following metadata is stored with each chunk:
Tenant ID (for isolation)
Column ID (if applicable)
Source type (elemental, document, file)
Elemental type (Table, Document, etc.)
Tag Inheritance
Tags are inherited in cascade:
The final item will have the merge of all tags (no duplicates).
Now that your data is in the Knowledge Base:
Estimated time: 10 minutes ✅