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
Release files for memorecall 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| memorecall-0.1.1.tar.gz | 95.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| memorecall-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 102.5 kB
Release files / memorecall-0.1.1.tar.gz
| Download URL | memorecall-0.1.1.tar.gz |
|---|---|
| Size | 95.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab216c83b1522bf23d28655a6758dd3d7db8b9bb4a4e668ec02486e5a3c34afa
|
|
BLAKE2b-256 checksum How to use checksums |
ac4084a175d049e195efda4e14144555cff83ae6ac61c6545a6b0f513ea8270c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Release files / memorecall-0.1.1-py3-none-any.whl
| Download URL | memorecall-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d5fe0a6e63040ab428c5c7870e63ca4929f978af9aa0c1eff9c27bd4664b7ca
|
|
BLAKE2b-256 checksum How to use checksums |
febd2c5ed39b60256ddcadae17a039ca959876170bbb9f091b4ff512122eb78e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|