WhoBuilt

Memory Masterclass: Make Your AI Agents Remember What They Do!

Jun 27, 2025· 51 min· 13K views·Watch on YouTube

Speakers

Mark Bain of AIUS presents an AI memory workshop at AI Engineer with demos from Vasilia of Cogni, Alex of Neo4j, and Daniel of Graphiti and Zep.

Memory and causal relationships

Bain defines AI memory broadly as data in any format, including code, algorithms, hardware, and changes that affect them. He argues that graph memory can preserve causal links between pieces of information, which he sees as useful for reducing hallucinations and improving hypothesis generation.

Semantic memory in practice

Vasilia demonstrates Cogni building a semantic graph from GitHub repository data so agents can compare two developers against hiring benchmarks. The graph updates as data is ingested, and the demo’s final report recommends hiring Laszlo, citing his graph expertise and benchmark results.

Memory should fit the domain

Daniel argues that memory should reflect a product’s business domain. In a media-player example, facts about a user’s dog can pollute music recommendations when retrieval relies on semantic similarity alone. His Zep demo uses developer-defined entities, fields, and rules, such as financial goals, debts, and income sources, to make retrieval more specific.

Testing memory approaches and applications

Bain describes a GraphRAG Chat Arena prototype for comparing memory systems, including Mem0, Graphiti, Cognee, and a Neo4j MCP server, against one Neo4j graph. He also shows a human-language shell concept that uses temporal history across terminals, machines, and sessions to provide context for commands and potential security monitoring.

Evaluating and protecting memories

In Q&A, Bain suggests that noisy, weakly connected memories may be less reliable, while relationships and redundancy can help reduce noise. Panelists add that developers can use temporal weighting and custom rules to track relevance over time; for access control, the discussion mentions Neo4j role-based controls and separate graphs for individual users.

Takeaways

  • Preserve relationships between memories when causal context matters.
  • Define memory entities and retrieval rules around the product’s business domain.
  • Use temporal history to give agents context across commands and sessions.
  • Assess memory relevance over time with domain-specific rules and weighting.
  • Consider role-based access controls or separate user graphs for sensitive data.

Mentioned in this talk

Search inside this talk

What was claimed 15

Show all 15 facts

Related talks