Add Memori + MongoDB Atlas agent memory notebook - #229
Merged
ajosh0504 merged 2 commits intoSep 2, 2026
Conversation
- Add notebook demonstrating agent memory with Memori, MongoDB Atlas, and Voyage AI vector search - Support custom API gateways (e.g. Grove/Azure APIM) via ANTHROPIC_BASE_URL env var, with transparent fallback to default Anthropic endpoint for public users - Work around Memori v3.3.6 Rust core bug that causes auto-recall to silently fail on MongoDB by setting use_rust_core=False - Add python-dotenv for local .env loading - Add .env, .venv, and .fastembed_cache to .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- DEMO_MODE flag skips sections 10-11 (Voyage vector search, TTL, entity isolation) - Trim session to 2 turns (vegan + walnut allergy) to save an LLM round-trip - Lower max_tokens to 150 for shorter replies during demo - Narrow recall question to match 2-turn data (dietary restrictions only) - Fix misleading WARNING when facts already exist from a prior run Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ajosh0504
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
notebooks/memory/memori-mongodb-agent-memory.ipynb) demonstrating cross-session agent memory using Memori with MongoDB Atlas as the BYODB storeDEMO_MODEflag for a streamlined 5-7 minute live presentation (skips vector search and retention sections)ANTHROPIC_BASE_URL.envand.venvto.gitignoreTest plan
DEMO_MODE = Trueon a clean database — all cells pass, sections 10-11 print "Skipped"DEMO_MODE = False— all sections execute including Voyage embeddings, Atlas Vector Search, TTL, and entity isolation🤖 Generated with Claude Code