Skip to main content

Crate mindcore

Crate mindcore 

Source
Expand description

§MindCore

A pluggable, feature-gated memory engine for AI agent applications.

MindCore provides persistent storage, keyword search (FTS5), vector search, hybrid retrieval (RRF), graph relationships, memory consolidation, cognitive decay modeling, and token-budget-aware context assembly.

§Quick Start

use mindcore::prelude::*;

// Define your memory type
// (implement MemoryRecord for your struct)

// Build the engine
// let engine = MemoryEngine::<MyMemory>::builder()
//     .database("memory.db")
//     .build()?;

§Feature Flags

FeatureDescription
fts5 (default)FTS5 keyword search with Porter stemming
vector-searchCandle embeddings + hybrid RRF search
rerankingCross-encoder reranking (post-RRF)
graph-memorySQLite relationship tables + CTE traversal
temporalBi-temporal validity tracking
consolidationHash/similarity/LLM-assisted dedup pipeline
activation-modelACT-R cognitive decay model
two-tierGlobal + project memory with promotion
encryptionSQLCipher encryption at rest
mcp-serverMCP server interface
fullAll features except encryption and mcp-server

Modules§

callbacks
context
embeddings
engine
error
ingest
memory
prelude
Prelude module — common imports for consumers.
scoring
search
storage
traits