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
The elemental_id of the data you want to ingest (obtained from the SnackPrompt platform)
Step 1: Send an Elemental
To ingest an elemental, make a POST request:
Parameter
Type
Required
Description
ID of the elemental to ingest
ID for tracking (useful for debugging)
Step 2: Understand the Response
Ingestion is processed in background. You'll receive an immediate confirmation:
Status code: 202 Accepted
This means the request was accepted and is being processed. Ingestion may take a few seconds to minutes, depending on the data size.
Step 3: Verify Data Was Ingested
To confirm your data is available, make a simple search:
If it returns results, your data was successfully ingested!
How to Remove Data
Remove by Elemental ID
To remove all data from a specific elemental:
Response:
Remove by Filters
To remove data using more specific filters:
Important: The tenant_id is required for filter-based deletion operations.
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:
Semantic Search - Learn how to search your data
Chat with your Data - Chat with your data using AI
Filter by Tags - Use tags to filter results
Estimated time: 10 minutes ✅