WhoBuilt

Stop Using RAG as Memory

Jul 22, 2025· 7 min· 2.8K views·Watch on YouTube

Speaker

Daniel Chalef of Zep explains at an AI Engineer talk why agent memory should reflect the business domain and how Zep models domain objects in a temporal graph.

Why generic memory goes wrong

Chalef argues that memory needs to be modeled for its business domain rather than treated as one-size-fits-all. In a media assistant example, facts such as a user's wake-up time and dog's name can distract from their listening preferences.

Semantic similarity misses business relevance

Chalef says many agent frameworks generate facts and store them in a vector database or Redis, then retrieve facts by semantic similarity. A search for favorite tunes might return a fact about a dog named Melody, showing that related words do not guarantee useful memory.

Define memory with business objects

Chalef demonstrates a finance-coach app that records explicit objects such as financial goals, debts, and income sources. Developers can define entity types, fields, and business rules using tools such as Pydantic, Zod, or Go structs.

Register and retrieve domain-specific data

The demo's TypeScript code registers the schemas with Zep and builds tools that run concurrent searches filtered by node type. When the user mentions $5,000 a month in rent, Zep captures it in a debt-account entity with developer-defined fields.

Further details in a paper

Chalef closes by pointing viewers to a paper describing how the approach works. He notes that the demo was shown in a video because the Wi-Fi was unreliable.

Takeaways

  • Model agent memory around the objects and relationships that matter to your product's domain.
  • Do not assume semantically similar facts are relevant to a user's request.
  • Define entity types, fields, and business rules so captured memory has useful structure.
  • Filter memory retrieval by domain-specific node types when building agent tools.
  • Test memory with realistic examples of irrelevant facts that could pollute retrieval.

Mentioned in this talk

Search inside this talk

What was claimed 4

  • built
    “Graphiti, Zep's open-source temporal graph framework”
    YouTube
    Verified3 sources· Talk, Web· archived
  • works at
    “Daniel Chalef, Zep”
    YouTube
    Unverified1 source· Talk
  • feature
    Graphiti: Supports custom entities and edges for business domains
    “build custom entities and edges in the Graphiti graph for your particular business domain”
    YouTube
    Unverified1 source· Talk
  • feature
    Zep: Supports domain-specific entity types, fields, business rules, and filtered retrieval
    “We can even define fields and the business rules for those fields”
    YouTube
    Unverified1 source· Talk

Related talks