Core Concepts

Storage

RiceDB - the storage and memory engine for AI agents.

Rice's storage layer is a high-performance database designed for Multi-Agent AI Systems.

ChallengeSolution
Knowledge has relationshipsIntegrated semantic linking
Multi-tenant environmentsBitmap-based ACL for zero-latency permission checks
High-frequency updatesLSM-tree storage with Write-Ahead Log (WAL)
Real-time notificationsPub/Sub with semantic subscriptions

Features

  • High Performance: Supports both HTTP and gRPC transports
  • Multi-User ACL: Bitmap-based access control with zero-latency permission checks
  • Real-time Pub/Sub: Server-side streaming with semantic subscriptions (gRPC)

Installation

Requirements

  • Python 3.10+
  • uv (recommended) or pip

Installing uv

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Or via Homebrew
brew install uv

Add to your pyproject.toml:

[project]
dependencies = [
    "ricedb[grpc,embeddings] @ git+https://github.com/rice-ai-hq/ricedb-python.git",
]

Then sync:

uv sync

From Source

git clone https://github.com/rice-ai-hq/ricedb-python.git
cd ricedb-python
uv sync --extra dev --extra grpc --extra embeddings

RiceDB Python Client

Full source code and examples.