A memory and recall enhancement library for AI agents.
Project description
memorecall
A memory and recall enhancement library for Python. This package provides functionality similar to the memori project for storing and retrieving memories with enhanced search capabilities.
Note: This is currently a placeholder package. Full functionality will be implemented in future versions.
Architecture Overview
The workflow diagram above illustrates the complete memory processing pipeline:
- Ingestion: Raw data is ingested and preprocessed
- Embedding: Content is converted to vector embeddings for semantic search
- Indexing: Memories are indexed for efficient retrieval
- Storage: Processed memories are stored in the configured backend
- Search: Queries are processed and matched against stored memories
- Retrieval: Relevant memories are returned with ranking
Installation
pip install memorecall
Quick Start
from memorecall import MemoryRecall
# Initialize the memory system
memory = MemoryRecall()
# Store memories
memory.store("Important meeting notes", tags=["work", "meeting"])
memory.store("Personal reminder", tags=["personal"])
# Recall memories
all_memories = memory.recall()
work_memories = memory.recall(tags=["work"])
search_results = memory.recall(query="meeting")
print(f"Total memories: {memory.count()}")
Features
- Memory Storage: Store text-based memories with optional tags
- Smart Recall: Search memories by content or filter by tags
- Simple API: Easy-to-use interface for memory operations
- Lightweight: Minimal dependencies
API Reference
MemoryRecall Class
__init__(config=None)
Initialize a new MemoryRecall instance.
store(memory, tags=None)
Store a memory with optional tags.
memory(str): The content to storetags(list, optional): List of tags to associate with the memory- Returns:
bool- True if successful
recall(query=None, tags=None)
Retrieve memories based on search criteria.
query(str, optional): Search query to filter by contenttags(list, optional): List of tags to filter by- Returns:
list- List of matching memories
clear()
Clear all stored memories.
- Returns:
bool- True if successful
count()
Get the number of stored memories.
- Returns:
int- Number of memories
Development
This is a placeholder package. The current implementation provides basic in-memory storage and retrieval. Future versions will include:
- Persistent storage options
- Advanced search algorithms
- Memory categorization and organization
- Export/import functionality
- Integration with external memory systems
Contributing
This project is currently in placeholder status. Contributions will be welcome once the main implementation begins.
License
MIT License - see LICENSE file for details.
Author
Hoseyn Amiri (aamirihoseyn@gmail.com)
Changelog
0.1.0
- Initial placeholder release
- Basic memory storage and recall functionality
- PyPI package structure
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memorecall-0.1.1.tar.gz.
File metadata
- Download URL: memorecall-0.1.1.tar.gz
- Upload date:
- Size: 95.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab216c83b1522bf23d28655a6758dd3d7db8b9bb4a4e668ec02486e5a3c34afa
|
|
| MD5 |
45e34dd7d75111ed0eaaeaf5d44916f5
|
|
| BLAKE2b-256 |
ac4084a175d049e195efda4e14144555cff83ae6ac61c6545a6b0f513ea8270c
|
File details
Details for the file memorecall-0.1.1-py3-none-any.whl.
File metadata
- Download URL: memorecall-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d5fe0a6e63040ab428c5c7870e63ca4929f978af9aa0c1eff9c27bd4664b7ca
|
|
| MD5 |
41e8746d2a99d64e94a468b1ab856c4a
|
|
| BLAKE2b-256 |
febd2c5ed39b60256ddcadae17a039ca959876170bbb9f091b4ff512122eb78e
|