cerebro-0.1.5 has been yanked.
Visit the last successful build:
cerebro-1.1.8
Cerebro 🧠
Cerebro is a blazing-fast, universal, and storage-agnostic "Memory Layer" for AI Agents and LLM Applications, written in pure Rust.
Key Features
- 🚀 Zero-Cost Abstractions: Powered by Rust, designed for massive async parsing and embedding workloads.
- 🔌 Universal Storage: Trait-based backends — swap between
MemoryVectorStore,PgVectorStore, orQdrant. - 🧠 Pluggable Compute: Route embeddings through local models (
Candle) or remote APIs (OpenAI,Anthropic). - 🔄 Active Consolidation: Background "Sleep Cycle" worker for autonomous memory pruning and semantic organization.
- 🔍 Hybrid Search: Native RRF (Reciprocal Rank Fusion) combining keyword and vector retrieval for highest precision.
- 🌐 MCP Ready: Native Model Context Protocol server (
cerebro-mcp) for AI desktop apps. - 🦀 Multi-Language: Native Python (
PyO3) and WASM bindings. - 📄 Complex Ingestion: PDF extraction and HTML-aware semantic chunking.
Getting Started
[]
= "0.1.5"
Basic Usage
use *;
use Arc;
async
Optional Feature Flags
Cerebro is modular. Most backends are opt-in to keep your binary size small:
local_models: Enablecandle-based local inference.qdrant: Enable distributed Qdrant storage.pdf: Enable PDF extraction viapdf-extract.graph: Enable Neo4j Knowledge Graph persistence.python/wasm: Enable FFI bindings.
License
This project is licensed under the MIT License.
Author: Suraj Kumar Nanda | Repository