Node SDK
Get started with Zentry quickly!
📢 Announcing our research paper: Zentry achieves 26% higher accuracy than OpenAI Memory, 91% lower latency, and 90% token savings! Read the paper to learn how we're revolutionizing AI agent memory.
Welcome to the Zentry quickstart guide. This guide will help you get up and running with Zentry in no time.
Installation
To install Zentry, you can use npm. Run the following command in your terminal:
Basic Usage
Initialize Zentry
If you want to run Zentry in production, initialize using the following method:
Store a Memory
Retrieve Memories
Search Memories
Update a Memory
Memory History
Delete Memory
Reset Memory
History Store
Zentry TypeScript SDK support history stores to run on a serverless environment:
We recommend using Supabase
as a history store for serverless environments or disable history store to run on a serverless environment.
Zentry uses SQLite as a default history store.
Create Memory History Table in Supabase
You may need to create a memory history table in Supabase to store the history of memories. Use the following SQL command in SQL Editor
on the Supabase project dashboard to create a memory history table:
Configuration Parameters
Zentry offers extensive configuration options to customize its behavior according to your needs. These configurations span across different components like vector stores, language models, embedders, and graph stores.
If you have any questions, please feel free to reach out to us using one of the following methods: