A tri-layer memory framework for LLM solutions.
Project description
Grizabella
A tri-layer memory framework for LLM solutions.
Overview
Grizabella is a sophisticated memory layer designed for Large Language Model (LLM) solutions. It provides a unified interface to manage and query data across relational, vector, and graph databases, enabling complex memory and knowledge retrieval for AI applications.
Key Features
- Tri-layer Storage: Integrates SQLite (relational), LanceDB (vector), and LadybugDB (graph) for comprehensive data management.
- Unified Python API: Offers a simple and consistent Python interface to interact with all three database layers.
- Complex Query Engine: Allows for sophisticated queries that can span across the different data storage paradigms.
- GPU Acceleration: Optional GPU support for faster embedding generation using Sentence Transformers.
- Bulk Processing: Efficient bulk addition mode for high-throughput data ingestion.
- PySide6 UI: Includes an optional desktop application for visualizing and managing data.
- MCP Server: Can operate as a Model Context Protocol (MCP) server, allowing other tools to leverage its memory capabilities.
Quick Links
Quick Installation
For production use (once published):
pip install grizabella
For development:
git clone https://github.com/pwilkin/grizabella.git
cd grizabella
poetry install
Basic Usage Snippet
from grizabella import Grizabella
# Initialize Grizabella (connects to default in-memory databases)
gz = Grizabella()
# Define an object type (implicitly creates a table/node type)
gz.create_object_type("document", {"text": str, "source": str})
# Add an object
doc1 = gz.add_object(
object_type="document",
data={"text": "This is the first document.", "source": "manual"},
vector_data={"text": "This is the first document."} # Data for embedding
)
print(f"Added document with ID: {doc1.id}")
# Bulk addition with GPU support
with Grizabella(use_gpu=True) as gz:
gz.begin_bulk_addition()
for i in range(100):
gz.upsert_object(obj_instance) # Define obj_instance beforehand
gz.finish_bulk_addition()
# Further operations (querying, adding relations, etc.) would go here.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md (to be added) for guidelines on how to contribute to Grizabella.
License
Grizabella is licensed under the MIT License. See the LICENSE file for details.
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 grizabella-0.6.1.tar.gz.
File metadata
- Download URL: grizabella-0.6.1.tar.gz
- Upload date:
- Size: 169.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.7 Linux/6.17.0-8-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0300805d358799f277aedd1737c6e1928fe5b4800921fe06d26b2cc762785421
|
|
| MD5 |
2088a2ae58ee47ea70deccb2aad58313
|
|
| BLAKE2b-256 |
9b00c81bbf23f926a2a980843ae89dc2bdecc713abcf5c6c343679263c19e988
|
File details
Details for the file grizabella-0.6.1-py3-none-any.whl.
File metadata
- Download URL: grizabella-0.6.1-py3-none-any.whl
- Upload date:
- Size: 203.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.7 Linux/6.17.0-8-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac188b4e58d839584455158e4e43b1dde8b2184454ef6ebc8118708bacde76d0
|
|
| MD5 |
2563b8da9c3ba8708dfd0a40762b0803
|
|
| BLAKE2b-256 |
7c89137b4339352276d7ce02dc5761cdf7a2612e8a24d00fa24c96f79be9db35
|