Building compounding memory with knowledge graphs and agentic RAG
Blog post from SurrealDB
Synapse is a memory-first reflection agent designed to transform journal entries into a persistent knowledge graph structured around therapeutic frameworks such as CBT, DBT, IFS, and Schema Therapy. Developed for the London LangChain x SurrealDB Hackathon, it helps users track emotional and behavioral patterns over time by linking new reflections to existing data and extracting insights. The system uses a LangGraph pipeline to enhance memory compounding, allowing the chat agent to provide informed answers by leveraging a structured graph of patterns, emotions, and relationships. To ensure effectiveness, Synapse undergoes rigorous evaluation for extraction quality, graph integrity, chat grounding, and pipeline performance. Key features include crisis detection, non-diagnostic language, and voice input via Telegram integration. Despite challenges like latency, improvements were made through parallel processing, batching, and SSE streaming, with the Anthropic claude-sonnet-4-6 model chosen for its deep extraction capabilities. The development process emphasized orchestration and prompt design, facilitated by tools such as LangChain, FastAPI, and SurrealDB.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Vector Search | 7 | 1,977 | 499 | 171 | -39% |
| LLM | 3 | 6,889 | 1,263 | 265 | -9% |
| RAG | 3 | 1,231 | 278 | 99 | -38% |
| Real-time | 3 | 7,450 | 1,704 | 292 | -47% |
| Observability | 2 | 4,900 | 921 | 200 | +5% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.