Chat history is not memory. Cognee turns what the agent reads into a graph it can search later, so the next answer builds on the last one.
Out on Sunday 15 November10 minutes, one build start to finish
Why this matters
Chat history is not memory. An agent that only sees the current conversation repeats questions and forgets decisions. Turning what it reads into a knowledge graph lets the next session find and build on what the last one learned.
What you build
An agent that remembers what it learned in earlier conversations.
Add documents and earlier conversations to Cognee.
Turn them into a knowledge graph.
Search the graph from the agent before it answers.
Start a new session and see the earlier answer used.
The ideas behind it
Memory versus history
History is the last messages; memory is what the agent can find later, from any session.
A knowledge graph
Facts and the links between them, extracted from documents and conversations.
Search before answering
The agent looks up memory first, then answers with it in the prompt.
Before you start
You need
Python and an LLM API key.
Length
About 10 minutes, one build start to finish.
Questions
How is this different from a vector database?
A vector search finds similar passages. A graph also keeps how facts relate, which helps with questions that span several documents.
Where is the memory stored?
In stores you run. Cognee can use several graph and vector backends.
What should an agent forget?
Anything personal or outdated. Decide what to keep before you store everything.
Is the recorded lab free?
Yes. Watch it any time, follow the steps and keep the code you build.
How is it different from a Live Lab?
A recorded lab is one short build you follow on your own. A Live Lab builds a bigger part of the system in an hour, with time for your questions.