Overview
Key Concepts
The basics you need before building with Databaset.
Memory
A memory is a single piece of information stored about a user. It can be a fact, preference, conversation snippet, or any text.
// Examples of memories
"User's name is Rahul"
"User prefers responses in Hindi"
"User is building a SaaS product"
"Last conversation was about pricing strategy"userId
Every memory belongs to a user. Databaset does not manage user accounts. You bring your own IDs.
memory.store({ userId: 'usr_abc123', text: '...' })
memory.store({ userId: 'rahul@gmail.com', text: '...' })
memory.store({ userId: '42', text: '...' }) // all validappId
Separate memories by app or environment. One API key can serve multiple apps.
memory.store({
userId: 'user_123',
appId: 'my-chatbot-prod', // optional, defaults to 'default'
text: '...'
})Memory types (auto-detected)
Databaset automatically classifies memories:
| Type | Example | |------|---------| | Episodic | "User asked about pricing yesterday" | | Semantic | "User is a Python developer" | | Preference | "User wants bullet point responses" |
Retrieval
Recall finds semantically similar memories, not just keywords. A budget query can match "User said they have 50k to spend".