Mental model
MemContext is infrastructure, not an application feature. Treat it the same way you treat a database or auth provider — a service your application depends on for a specific capability. Your application calls the MemContext API (or connects via MCP) to save and retrieve knowledge. It does not need to know about embeddings, classification, or version chains.Integration pattern
A typical integration follows four steps:- Save durable user or project context via
POST /api/memories - Search before generation or decision-making via
GET /api/memories/search - Profile (optional) — fetch broad context in one call via
GET /api/memories/profile - Feedback — record retrieval quality via
POST /api/memories/:id/feedback
Example: Support bot
Good fit use cases
| Use case | Memory role |
|---|---|
| Coding assistants | Stable preferences, project decisions, architecture context |
| Content generation | Brand rules, evolving strategy, audience insights |
| Support bots | Customer history, past issues, plan details |
| CRM memory | Relationship context, interaction history |
| Onboarding | User progress, preferences learned during setup |
| Personalization | Style preferences, feature usage patterns |
Ownership boundary
Keep your application logic outside MemContext. MemContext owns:- Storage and retrieval
- Deduplication and classification
- Version chains and history
- Temporal filtering
- Hybrid search
- MCP tool access
- Business-specific prompts and logic
- UI and user experience
- Workflow orchestration
- Downstream actions and integrations
API integration example
Tips
- Search before saving — avoid duplicates by checking if the knowledge already exists
- Use projects to scope memories so different applications or contexts do not interfere
- Category matters —
preferenceandfactgo into profilestaticcontext; everything goes intodynamic - Do not save noise — only persist information with long-term value
