Memory is a Pro feature requiring a Scira Pro subscription.
What is memory?
Memory is Scira’s long-term knowledge retention system. It enables:- Persistent context - Information saved across sessions
- Knowledge building - Accumulate insights over time
- Personalization - Scira remembers your preferences and history
- Retrieval - Search through saved memories semantically
Memory vs. chat history
| Feature | Chat History | Memory |
|---|---|---|
| Duration | Session-based | Persistent |
| Storage | Conversation log | Knowledge base |
| Search | Chronological | Semantic |
| Scope | Single conversation | All conversations |
| Purpose | Context continuity | Long-term retention |
How memory works
Memory uses Supermemory to store and retrieve information:- Save - You or Scira saves important information
- Embedding - Content is converted to semantic vectors
- Indexing - Stored with your unique user tags
- Retrieval - Searched when relevant to your queries
Using memory
Saving memories
Explicitly ask Scira to remember something:Retrieving memories
Ask Scira to recall information:Memory tools
The memory system provides two core tools:Add memory tool
Saves new information to your knowledge base:Search memory tool
Retrieves relevant memories based on a query:Use cases
Personal assistant
Build a knowledge base of your preferences and routines:- Daily schedule and habits
- Contact information
- Favorite tools and resources
- Personal goals and tracking
Research companion
Accumulate knowledge from research sessions:- Key findings and insights
- Reference materials
- Paper summaries
- Research questions and hypotheses
Project context
Maintain project-specific information:- Team members and roles
- API endpoints and credentials
- Architecture decisions
- Deployment procedures
Learning and development
Store concepts and techniques you’re learning:- Programming patterns
- Framework documentation snippets
- Code examples
- Best practices
Implementation details
User isolation
Memories are isolated per user using container tags:Semantic search
Memory search uses AI embeddings to understand meaning:- Not keyword matching - Finds conceptually similar content
- Context-aware - Understands relationships between ideas
- Ranking - Results sorted by semantic similarity
Memory structure
Each memory is stored with:Privacy and security
Data protection
- Encrypted storage - All memories encrypted at rest
- User isolation - Container tags prevent cross-user access
- API security - Supermemory API key required for all operations
- No sharing - Memories are never shared with other users or services
What gets stored
- Text content - The information you save
- Timestamps - When memories were created
- User tags - Your unique identifier
- Embeddings - Semantic vectors for search (not human-readable)
What doesn’t get stored
- Sensitive credentials - Don’t save passwords or API keys
- PII without consent - Be mindful of personal information
- Temporary data - Use chat history for session-specific context
Supermemory integration
Memory is powered by Supermemory, an AI memory infrastructure:Configuration
Set up your Supermemory API key:Tool initialization
Memory tools are created per user:AI SDK integration
Memory tools integrate seamlessly with Vercel AI SDK:Best practices
Effective memory saving
- Be specific - “Prefers React over Vue” vs. “Likes React”
- Include context - “For Project Apollo: deadline is March 15”
- Use natural language - Save in complete sentences
- Avoid duplication - Update existing memories instead of creating duplicates
Efficient retrieval
- Ask semantically - “What’s my coding style?” retrieves language preferences
- Use context clues - Reference project names, topics, or timeframes
- Be patient - Initial retrieval may take 1-2 seconds
- Verify results - Check that retrieved info is still current
Memory organization
- Categorize mentally - Think of memories in topics or domains
- Update regularly - Keep information current
- Archive old info - Clear outdated memories
- Use descriptive saves - Make memories searchable
Troubleshooting
Memories not saving
- Check API key - Ensure
SUPERMEMORY_API_KEYis set - Verify user ID - Must be logged in with valid session
- Network issues - Supermemory API must be reachable
Poor retrieval results
- Too vague - Make queries more specific
- No relevant memories - Save information first
- Semantic mismatch - Try rephrasing the query
Duplicate memories
- Manual deduplication - Search and remove duplicates
- Better save habits - Check before saving new info
- Update instead - Modify existing memories when appropriate
Limitations
- Text only - Cannot store images, files, or binary data
- Search latency - Semantic search takes 1-2 seconds
- No deletion API - Currently cannot delete individual memories
- Context window - Very large memory sets may impact performance
API reference
Memory tools inlib/tools/supermemory.ts:
createMemoryTools(userId)- Initialize memory tools for userSearchMemoryTool- Tool interface for searching memoriesAddMemoryTool- Tool interface for adding memories
Future enhancements
Planned features for memory:- Memory management UI - View, edit, and delete memories
- Automatic categorization - AI-organized memory tags
- Memory expiry - Time-based memory lifecycle
- Export/import - Backup and restore memories
- Shared memories - Team knowledge bases (Pro Teams)
