The overhaul is complete — all 16 PR checks and all three workflow runs (CI ×2, Build wheels across 12 platform/Python combos) are green.
What this wave delivered
AI / RAG overhaul
- BM25 retrieval replaces the raw TF-IDF scoring in
GRAPH_QUERY — proper document-length normalization, no double-counting of repeated query terms, and deterministic tie-breaking (ranking ties used to follow HashMap order).
rag_context(query, max_chars=1500) / REPL RAG <query> — the headline AI feature: a prompt-ready context block containing the best-matching chunks (each labeled with source and ingest time), the key entities appearing in them, and community summaries, all trimmed to a hard character budget so you can paste it directly into an LLM prompt.
- Graph exploration:
graph_neighbors("alice") / RELATED (heaviest co-occurrence edges first, case-insensitive) and graph_path("Alice", "Carol") / GRAPH_PATH a TO b (deterministic BFS — the smoke test walks Alice -> Bob).
- MemPalace:
MEMPALACE SYNC now pushes the database's graph and tables into the official palace straight from the CLI.
Timestamps
- Opt-in auto-timestamped tables (
timestamps=True in Python, CREATE TABLE t TIMESTAMPS {…} in the REPL): _created/_updated in ISO 8601 UTC, refreshed on every update/upsert/bulk update, preserved when imports supply historical values (tested with year-2000 data), queryable and sortable like any field. Built on a new dependency-free civil-date formatter with leap-year unit tests.
- Engine-level
created_at in INFO, ingest timestamps on knowledge chunks, and timestamped snapshots — bare SNAPSHOT writes main-20260703-233936.rsndb next to the database.
Python library overhaul
db["users"] returns a TableHandle: insert(name="ana"), get/[], find(done=False), find_one, where("age", ">=", 18) with all nine operators, update, upsert, count(**eq), distinct, sample, search, dedupe, index management — plus len(), iteration, in, and friendly reprs.
- Python-type schemas:
db.create_table("users", {"name": str, "age": int}, required=["name"], unique=["email"], timestamps=True) — types, strings, and full spec dicts mix freely.
db.recall(10) / db.recall("tuesday"), "users" in db, len(db). README, BEGINNERS, and the examples were rewritten to lead with this API and the RAG-to-prompt workflow.
Verification: 89 Rust tests (up from 83), 473 Python tests (up from 454) at 100% wrapper coverage, strict clippy clean, and a full end-to-end smoke test covering timestamped tables, the RAG pipeline, graph exploration, timestamped snapshots, and the new Python API. Two new achievements (Context Oracle, Pathfinder) bring the total to 35.
Still the one external step: add PYPI_API_TOKEN and tag v0.5.0 to publish everything to PyPI.