
3/2/2026 · Min Yin
What this post added
This post introduces the integration of Deep Agents, a LangChain framework for building AI agents with structured workflows, with Milvus for long-term memory. It explains how Milvus, as a vector database, enables agents to store and retrieve embeddings of conversations and tool results, overcoming context window limitations and high token costs. The integration uses Milvus's compute-storage separation, horizontal scaling, and high-concurrency query capabilities to provide persistent memory. The post details the technical setup using `CompositeBackend` with `StateBackend` for temporary data and `StoreBackend` with Milvus for persistent memories, along with code examples for dependency installation, memory backend setup, and agent creation.