---
sidebar_position: 2
---
# Ingest Data (New Format)
This is a demo of the new code snippet approach. Code examples are pulled from executable script files.
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import CodeSnippet from '@site/src/components/CodeSnippet';
{/* Import raw source files */}
import retainPy from '!!raw-loader!@site/examples/api/retain.py';
import retainMjs from '!!raw-loader!@site/examples/api/retain.mjs';
import retainSh from '!!raw-loader!@site/examples/api/retain.sh';
:::tip How This Works
The code examples below are extracted from actual runnable script files in `examples/api/`.
When CI runs these scripts, it validates the documentation is correct.
:::
## Store a Single Memory
## Store with Context
## Batch Ingestion
## Async Ingestion