Tensorheart Memory
Give your AI applications memory. Store, retrieve, and use context intelligently.
The Problem
LLMs forget everything after each request. Memory solves this by:
- Storing important information as it's learned
- Retrieving only what's relevant to each query
- Reducing costs by sending less context
Quick Example
Store a memory:
curl -X POST https://memoryapi.tensorheart.com/v1/memories \
-H "Authorization: Bearer mem_live_..." \
-H "Content-Type: application/json" \
-d '{"text": "User prefers Python for data analysis"}'
{
"success": true,
"data": {
"id": "mem_abc123",
"text": "User prefers Python for data analysis",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
Query for relevant memories:
curl -X POST https://memoryapi.tensorheart.com/v1/query \
-H "Authorization: Bearer mem_live_..." \
-H "Content-Type: application/json" \
-d '{"context": "What language should I suggest for their project?"}'
{
"success": true,
"data": {
"memories": [
{
"id": "mem_abc123",
"text": "User prefers Python for data analysis",
"relevance_score": 0.92
}
],
"query_context": "What language should I suggest for their project?",
"total_memories_searched": 15
}
}
Get Started
5-Min Quickstart
Get your API key and make your first request.
Why Memory?
Understand how memory works and why it matters.
Build a Chatbot
Step-by-step tutorial to build a chatbot with memory.
Use Cases
| Application | What Memory Enables |
|---|---|
| Customer Support | Remember user history, past issues, preferences |
| Personal Assistant | Learn habits, preferences, important dates |
| Code Assistant | Understand codebase, remember patterns |
| Sales AI | Personalize with CRM data and conversation history |
Building Agents?
Check out the Building Agents with Memory guide for patterns that work with any framework.
Key Features
| Feature | Description |
|---|---|
| Intelligent Retrieval | Only returns memories relevant to your query |
| Multi-tenant | Isolated memory spaces per user or project |
| Auto-extraction | Automatically learn from conversations |
| Any LLM | Works with OpenAI, Anthropic, or any provider |
Need Help?
- API Reference — Full endpoint documentation
- Best Practices — Production tips
- Support — We're here to help