A comprehensive memory management system with vector search capabilities
Project description
MemCore
A complete memory management system with vector search capabilities, designed for efficient storage, retrieval, and handling of information.
🚀 Features
- Full Memory System: Complete CRUD operations for memory records
- Vector Search: Semantic similarity search using embeddings
- MemQL: A custom query language for structured memory retrieval
- Secure Storage: Built-in encryption for sensitive content
- Versatile API: Programmatic access via CLI and REST API
- Client Libraries: Easy integration with applications
📋 Requirements
- Python 3.7+
- Dependencies listed in
setup.py
🔧 Installation
From PyPI
pip install memco
From Source
git clone https://github.com/memco/memco.git
cd memco
pip install -e .
🏁 Getting Started
Basic Example
from memco import MemCore, MemoryBuilder
from memco.embedding import get_embedding_provider
# Initialize the embedding provider
embedding_provider = get_embedding_provider()
# Create an instance of the memory system with vector search capabilities
mem_system = MemCore(
root_path=".memfolder",
encryption_key="my_secret_key",
embedding_provider=embedding_provider
)
# Create a memory builder with the embedding provider
builder = MemoryBuilder(embedding_provider)
# Create a new memory record with auto-generated embeddings
memory = builder.set_content("This is a memory example with vector embedding") \
.set_tags(["example", "vector", "embedding"]) \
.set_importance(0.8) \
.set_source("example.py") \
.build()
# Add the memory to the system
memory_id = mem_system.add_memory(memory, encrypted=True)
print(f"Memory created with ID: {memory_id}")
# Retrieve the memory
retrieved = mem_system.get_memory(memory_id)
print(f"Content: {retrieved.content}")
Using the Client
from memco_client import MemCoreClient
# Initialize the client
client = MemCoreClient("http://localhost:8000")
# Add a memory
memory = client.add_memory(
content="This is a test memory",
tags=["test", "example"],
importance=0.8,
source="example.py"
)
# Search for similar memories
similar = client.vector_search("test memory")
print(f"Found {len(similar)} similar memories")
# Execute a MemQL query
results = client.memql_query("SELECT WHERE tags == \"test\" ORDER BY importance DESC")
print(f"The query returned {len(results)} memories")
📚 Architecture
MemCore is designed as a modular memory management system with the following key components:
- Core Memory System: Manages memory records and provides CRUD operations
- Vector Search: Enables semantic similarity search using embeddings
- MemQL: Query language for structured memory retrieval
- Storage Layer: Handles memory persistence and recovery
- API Layer: Provides programmatic access via CLI and REST API
- Client Libraries: Simplifies integration with applications
For more details, see ARCHITECTURE.md.
🗺️ Roadmap
We're continuously improving MemCore. These are our goals for upcoming versions:
v1.1.0 (June 2025)
- Advanced Compression
- Synchronization System
- Performance Optimizations
v1.2.0 (July 2025)
- Enhanced Security
- Advanced MemQL Features
- UI Components
For more details, see ROADMAP.md.
👥 Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines on how to contribute to the project.
We're currently focusing on:
- Advanced compression implementation
- Synchronization system
- Performance improvements for large datasets
- Better documentation and examples
📄 License
This project is licensed under the MIT License – see the LICENSE file for details.
MIT License
Copyright (c) 2025 MemCore Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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 memco-1.0.0.tar.gz.
File metadata
- Download URL: memco-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a0115686482cccdb91f974622f4673e9f7f274aee6988100bbbb02bebf6cd04
|
|
| MD5 |
37c869d21cb3ed00ddeb4599bfe75c0f
|
|
| BLAKE2b-256 |
e8279c3698a34fa8b631443e156e04e565fb90ce1a4b6ea0efeb6568e1da331e
|
File details
Details for the file memco-1.0.0-py3-none-any.whl.
File metadata
- Download URL: memco-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4385e3f39cdf5da1c0581ed4abd3737a6a3a3901c5de2701a05f1d53b4935535
|
|
| MD5 |
e793b7d93e291d8904bca3cc25a1b324
|
|
| BLAKE2b-256 |
c47fc5827b9dca80c4e774121d665d25110b7d6fbecf321cc467038b7d5948b1
|