惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
H
Help Net Security
B
Blog RSS Feed
G
Google Developers Blog
博客园 - 司徒正美
MongoDB | Blog
MongoDB | Blog
量子位
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
P
Proofpoint News Feed
小众软件
小众软件
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
V
V2EX
月光博客
月光博客
C
Check Point Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
A
Arctic Wolf
Help Net Security
Help Net Security
Schneier on Security
Schneier on Security
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Palo Alto Networks Blog
T
Tenable Blog
L
LangChain Blog
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
N
News and Events Feed by Topic
Forbes - Security
Forbes - Security
F
Fortinet All Blogs
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Y
Y Combinator Blog
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
NISL@THU
NISL@THU
GbyAI
GbyAI
博客园 - Franky
S
Secure Thoughts
有赞技术团队
有赞技术团队
PCI Perspectives
PCI Perspectives
U
Unit 42

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
The Multi-Agent Memory Problem: Why Retrieval-Time Inference Breaks Down at Scale
Anuran Roy · 2026-06-24 · via DEV Community

Published by the Alchemyst AI engineering team. We built Alchemyst AI, the context layer described in this post. This is not a neutral third-party review - we have a direct commercial interest in this topic. We've done our best to link to independent sources and represent competing approaches accurately. Read accordingly.


If you've shipped more than one AI agent to production, you've probably hit this: two agents that share the same underlying LLM give contradictory answers about the same company policy. Or an agent that worked fine in staging starts hallucinating customer details under real load. Or a new agent onboarded three months after the first one doesn't know anything the first one learned.

These aren't prompt engineering failures. They're a memory architecture problem - specifically, a problem with when and how context gets scoped.

This post breaks down the architectural decision at the center of it, compares the main approaches we evaluated (Mem0, Zep, and what we built), and shares what we learned shipping a production multi-agent system. We'll link to external benchmarks and third-party analyses throughout so you can verify the claims that matter.


The Core Problem: Write-Time vs. Retrieval-Time Scoping

Most memory solutions for AI agents work roughly like this:

  1. Agent generates output or receives input
  2. Text is embedded and stored in a vector index
  3. At retrieval, a similarity search returns the "most relevant" chunks
  4. Those chunks get stuffed into the next prompt

This is retrieval-time inference - the system decides what context is relevant at the moment it's needed, using embedding similarity as the proxy for relevance.

The problem is that embedding similarity and semantic relevance are not the same thing. A policy document from six months ago and a superseded draft from last week may have nearly identical embedding distances from a query. The retrieval system has no native mechanism to know which one should govern behavior.

This is a well-documented limitation of vector-search retrieval for knowledge-intensive tasks. The REALM and RAG papers (Guu et al., 2020; Lewis et al., 2020) originally framed RAG as a solution for open-domain QA - a use case where approximate recall is acceptable and there's no cost to surfacing an outdated answer. Production enterprise agents have the opposite requirement: precision and recency matter more than coverage.

For a grounded overview of how retrieval-augmented generation works and where it breaks down, Pinecone's documentation on approximate nearest neighbor search and the survey by Gao et al. (2023), "Retrieval-Augmented Generation for Large Language Models: A Survey" (available on arXiv), both cover the failure modes in detail. The short version: vector similarity is a proxy, and proxies fail at the margins of real workloads.


What the Three Main Approaches Actually Do

We evaluated Mem0, Zep, and the architecture we ended up building (Alchemyst AI) when designing our context layer. Here's an honest characterization of each.

Mem0

Mem0 is an open-source memory layer that extracts facts from conversations using an LLM extraction step, stores them as discrete memory items, and retrieves via vector similarity. It is the most widely used tool in this category and has strong community support.

What it's good at: per-user conversational memory, single-agent applications, rapid prototyping. The extraction step adds more structure than raw embedding-and-search.

Where it gets complicated at scale: in a multi-agent deployment, each agent typically maintains its own memory scope. Mem0's default architecture does not provide an organization-wide shared knowledge base that all agents read from - you'd need to build that coordination layer yourself. Its own docs and GitHub issues surface this as an open architecture question for teams moving beyond single-agent use.

Zep

Zep is a memory store that emphasizes temporal awareness - it tracks when facts were recorded and can surface recency signals during retrieval. It's designed for long-running conversational applications and has a well-structured enterprise offering.

What it's good at: conversation history, temporal ordering of user facts, production-grade infrastructure.

Where it gets complicated: Zep is still primarily a retrieval-time system - it uses temporal metadata as an additional signal on top of vector search, but the relevance decision still happens at retrieval. For use cases where context must be governed by explicit business rules rather than similarity + recency, you still have to implement that governance layer.

What We Built: Write-Time Context Scoping

After evaluating both tools, the core architectural decision we made was to scope context at write time rather than infer relevance at retrieval time.

Write-time scoping means: when a piece of context is written into the store - a policy, a customer record, a workflow state - a human or a structured process explicitly assigns it scope (which agents can access it, under what conditions, with what priority). The retrieval system doesn't decide what's relevant. That decision was already made when the context was written.

This approach trades flexibility for determinism. You can't surface unexpected connections across documents the way a vector search might. But every retrieval decision is fully traceable: you can audit exactly what context was available to an agent at any point in time, and why.

For teams building in regulated industries - finance, healthcare, legal - auditability is frequently a compliance requirement, not a nice-to-have.


Real-World Benchmarks: LongMemEval and ConvoMem

We have rigorously tested our architecture using standardized memory benchmarks to validate the cost-performance efficiency of our approach [1].

LongMemEval Performance

LongMemEval evaluates the effectiveness of memory systems over prolonged durations, testing their ability to preserve, refresh, and access information across multiple sessions. In our testing against competitors like Supermemory and Zep, Alchemyst achieved near-perfect accuracy on critical metrics while maintaining an unprecedented cost advantage [1].

Category Supermemory Accuracy Zep Accuracy Alchemyst Accuracy
Single-session user 97.1% 92.9% 95.59%
Single-session assistant 96.4% 80.4% 96.36%
Temporal reasoning 76.7% 62.4% 75.57%
Multi-session continuity 71.4% 57.9% 72.93%

Note: For knowledge updates, Alchemyst intentionally relies on domain-specific logic implemented by the developer rather than naive data overwrites, prioritizing business logic safety [1].

ConvoMem Performance

ConvoMem tests multi-message synthesis and implicit reasoning across large conversational datasets. Here, retrieval quality and ingestion speed are critical.

Metric Alchemyst (Standard) Alchemyst (Fast) SuperMemory
Accuracy 80.00% 70.00% 50.00%
Recall 80.00% 55.00% 50.00%
MRR 0.656 0.300 0.467
Ingest Median Latency 1,385 ms 1,389 ms 2,976 ms

Alchemyst Standard achieved an 80% accuracy rate compared to SuperMemory's 50%. More importantly for real-time agent deployments, Alchemyst processes new memories into searchable context in less than half the time of competitors (1,385ms vs. 2,976ms) [1].


The Pareto Frontier: Cost vs. Performance

The most glaring issue with scaling retrieval-time memory systems is unit economics. As agents process millions of tokens of history, the costs compound rapidly.

Based on our analysis of industry pricing per 1 million tokens [1]:

  • Zep: ~$12.50 per million tokens
  • Supermemory: ~$6.33 per million tokens
  • Alchemyst: ~$0.06 per million tokens

Alchemyst sits on the Efficiency Frontier (the Pareto Frontier) for AI context layers. We deliver top-tier recall accuracy at a fraction of the market cost. Developers no longer have to choose between expensive "smart" agents and affordable agents that suffer from amnesia.

Moving from Isolated Bots to Coordinated Systems

If you're building a simple single-turn Q&A bot, a basic vector database or retrieval-time system is likely sufficient. However, as organizations move toward autonomous, multi-agent systems that need to reason, plan, and execute complex tasks using shared context, the architecture must evolve.

This matters immensely for real-time applications. Consider any scenario requiring real-time agents such as live customer support or dynamic coding assistants. These agents cannot afford latency spikes from massive vector searches, nor can they afford the hallucinations caused by outdated context. A write-time scoped memory layer ensures that when a real-time agent needs a fact, it retrieves the deterministically correct, pre-scoped piece of context instantly, with sub-2-second ingestion latencies.

By shifting the burden of relevance from retrieval time to write time, we give developers the control they need to build agents that are accurate, reliable, and genuinely production-ready.