Skip to main content

A memory and recall enhancement library for AI agents.

Project description

memorecall

PyPI version Python Support

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

Memory Recall Workflow

The workflow diagram above illustrates the complete memory processing pipeline:

  1. Ingestion: Raw data is ingested and preprocessed
  2. Embedding: Content is converted to vector embeddings for semantic search
  3. Indexing: Memories are indexed for efficient retrieval
  4. Storage: Processed memories are stored in the configured backend
  5. Search: Queries are processed and matched against stored memories
  6. 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 store
  • tags (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 content
  • tags (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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memorecall-0.1.0.tar.gz (95.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memorecall-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file memorecall-0.1.0.tar.gz.

File metadata

  • Download URL: memorecall-0.1.0.tar.gz
  • Upload date:
  • Size: 95.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for memorecall-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d990a8f9bfb3d1eea937157f54d0405d27749db4061d8d572338009e742109b
MD5 5f091f9f5796f169622ed895de1a97cd
BLAKE2b-256 b5f46c7dde20ba1dbdd3e73c926198aeb852ad5074d890625a8cdbe6d3256cad

See more details on using hashes here.

File details

Details for the file memorecall-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: memorecall-0.1.0-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

Hashes for memorecall-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6274789102321c331ae2ffafcd747d984fbb4677d2dcae84bbad26d3d4918eb9
MD5 93f24079fd71cbd314b6cd3a425dbee6
BLAKE2b-256 c1ede0db2ddef9ba0cb364a6333c6f3abdedaf7f9d066cbeb118edbd85e18421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page