Skip to main content

A tri-layer memory framework for LLM solutions.

Project description

Grizabella

A tri-layer memory framework for LLM solutions.

Docs License: MIT

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 Kuzu (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.
  • 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}")

# 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


Download files

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

Source Distribution

grizabella-0.1.0b4.tar.gz (133.0 kB view details)

Uploaded Source

Built Distribution

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

grizabella-0.1.0b4-py3-none-any.whl (163.6 kB view details)

Uploaded Python 3

File details

Details for the file grizabella-0.1.0b4.tar.gz.

File metadata

  • Download URL: grizabella-0.1.0b4.tar.gz
  • Upload date:
  • Size: 133.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Windows/11

File hashes

Hashes for grizabella-0.1.0b4.tar.gz
Algorithm Hash digest
SHA256 8de610144b0f2bec62af1cae27055d79df8bc0fb9d154022caecc6b0c8e12b70
MD5 f3eba361c406173e49967a1a617783b0
BLAKE2b-256 4eb67679a473bf6f0dc34c8d69f2fcfeef1183c66a2ade02ba2c36a4e91d12a0

See more details on using hashes here.

File details

Details for the file grizabella-0.1.0b4-py3-none-any.whl.

File metadata

  • Download URL: grizabella-0.1.0b4-py3-none-any.whl
  • Upload date:
  • Size: 163.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Windows/11

File hashes

Hashes for grizabella-0.1.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 987f7d283ea04e073b86ec8c001f5afa822ef411526f954d39374a15424b037c
MD5 2126a82f9ae00b7fd2d9dc43bf06a313
BLAKE2b-256 c311ad5b2eed8c54a087dc4e35c3bb11bb47615cc86d90e09c3083a9e8f7cfab

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