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.
Metadata
Release files for grizabella 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| grizabella-0.8.0.tar.gz | 182.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| grizabella-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 398.9 kB
Release files / grizabella-0.8.0.tar.gz
| Download URL | grizabella-0.8.0.tar.gz |
|---|---|
| Size | 182.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7475d42e326fa8a1878ff92658e21bb9c40e756f6dd4e29234855834efe3167
|
|
BLAKE2b-256 checksum How to use checksums |
59f3571d346b0d5a42aee80a6adb377954cad6ff78284afb3046ab2a51302a53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.4 Linux/7.0.0-31-generic
|
Release files / grizabella-0.8.0-py3-none-any.whl
| Download URL | grizabella-0.8.0-py3-none-any.whl |
|---|---|
| Size | 216.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2af3e1e88f06fd60e9eb3695a2b24bfec3c6b283f614062f4727fa156729fa71
|
|
BLAKE2b-256 checksum How to use checksums |
2285ab0354aa46003e23a03c4fbd1e8a364b700ad918c759bf6be5fe84ec44e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.14.4 Linux/7.0.0-31-generic
|
Security for grizabella 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.