Contents of Hands-On Context Engineering with Neo4j: Knowledge Graphs, GraphRAG and Agent Memory
The whole course told through one company's question, what you should already know, and a Neo4j database and a model key set up before the first lab. The course is planned as 52 lessons: the opening lessons and 8 parts. 9 lessons are ready to study today, about 0 minutes of learning. New lessons are added as they are finished, and you get every one. The free lessons open for everyone; the rest open when you buy the course.
See the price and what the course covers
Your progress0 of 9 checks answered right
It fills only when a prediction matches the measured result. Reading a page does not move it. It is kept in this browser.
Start here
The opening lessons
The whole course told through one company's question, what you should already know, and a Neo4j database and a model key set up before the first lab.
2 lessons, all published
- Introduction: what this course buildsOne question a fictional robot maker cannot answer today, and the knowledge graph, retrieval and agent memory you build in this course to answer it. Free
- Before you startThe Python this course assumes, three ways to get a Neo4j database, a self-check that ends with your database answering, and a model key with a spending limit. Free
Part 1
Foundations
What a model's context is and why it decides the answer, the property graph and Cypher from zero, the Ferncliff knowledge graph, vector indexes inside Neo4j, and graph against vector retrieval measured on real questions.
7 lessons, all published
- What context engineering isOne question asked four ways, with no context, with every document, with the five most similar chunks, and with the rows of one graph query, and what each costs and gets right. Free
- Nodes, relationships and propertiesFerncliff's facts as a property graph and as joined tables, side by side, and what each one does when a question needs several hops. Locked
- Your first Cypher: CREATE, MATCH and MERGEWriting patterns as arrows, reading what comes back, and why CREATE makes duplicates on a rerun while MERGE with a constraint does not. Locked
- Paths, hops and countingAnswering the recall question in one query by following four relationships, then counting and collecting the result, with PROFILE showing the work the database did. Locked
- Modelling the Ferncliff knowledge graphChoosing labels and relationships from the questions people ask, linking documents and chunks to the facts they mention, and loading it all with execute_query, parameters and UNWIND. Locked
- Embeddings and vector indexes inside Neo4jMaking an embedding for every chunk, creating a vector index, searching it from Cypher, and what the similarity scores and the timings really are. Locked
- Graph or vector retrieval, measuredLookups, multi-hop questions, counts and complete lists, each answered from vector search and from a graph query, with accuracy, tokens and cost measured. Locked
Part 2
A knowledge graph from documents
Designing the graph from the questions, the lexical graph, extraction with a model, the neo4j-graphrag pipeline, merging duplicates, measuring extraction quality, and one agreed meaning per term.
7 lessons, coming
- Designing the schema from the questionsStarting from the questions, choosing the labels and relationships they need, and leaving out what nobody asks about.Coming
- Documents and chunks in the graphDocuments and chunks linked to the entities they mention, so every answer can cite its source.Coming
- Extracting entities with a modelAsking a model for entities and relationships in a fixed shape, checking each one with code, and what it gets wrong.Coming
- The neo4j-graphrag pipelineThe package's loader, splitter, extractor and writer run over Ferncliff's documents with your schema.Coming
- When two names are the same thingFinding entities that are really one, merging them safely, and measuring how many merges were right.Coming
- Checking the graphHow many extracted facts are right and how many real facts were missed, on a labelled sample.Coming
- One meaning per termWriting down what each label means and who owns it, so two teams never mean different things.Coming
Part 3
GraphRAG retrieval
The vector baseline, vector search followed by the graph, hybrid search, questions turned into Cypher safely, whole-dataset questions, choosing a retriever and packing the context.
7 lessons, coming
- The vector baselineAnswering every question from the most similar chunks only, so each later retriever has a number to beat.Coming
- Vector search, then the graphFinding starting chunks by similarity, then walking to the facts they connect to.Coming
- Hybrid searchWhy vector search misses an exact part number, and the HybridRetriever that uses both indexes.Coming
- Turning a question into Cypher, safelyA model writes the query; a read-only user and checks keep it from doing harm.Coming
- Questions about the whole datasetGrouping the graph into communities, summarising each, and answering from the summaries.Coming
- Choosing a retrieverEvery retriever against every kind of question, and a router that picks one.Coming
- Packing the contextGraph rows as short sentences, within a token budget, each with its source.Coming
Part 4
Neo4j's own GraphRAG tools
What Neo4j itself ships for GraphRAG and agents, and which parts you need for your own project.
5 lessons, coming
- A tour of neo4j-graphragThe parts of the package you will use most.Coming
- Neo4j with LangChainThe same retrieval written with langchain-neo4j.Coming
- An agent through MCPAn agent connected to Neo4j through MCP, and the queries it really sends.Coming
- The LLM Graph BuilderFerncliff's documents loaded with no code, compared with the graph you built.Coming
- Aura for GraphRAGWhat the managed service gives you and what it costs.Coming
Part 5
Agent memory on a graph
What agent memory is, memory as a graph, facts that change over time, Graphiti from zero, searching and forgetting, and an agent that remembers across sessions.
8 lessons, coming
- What agent memory isThe kinds of memory an agent needs and which ones need a store.Coming
- Memory as a graphMemory you can query and explain.Coming
- Writing memoriesA support conversation turned into facts linked to the message they came from.Coming
- Facts that change over timeOld facts kept but never used as current.Coming
- Graphiti from zeroEpisodes in, entities and time-stamped edges out.Coming
- Searching memoryWhich memories come back for a question, measured.Coming
- Forgetting and privacyRetention, deletion and what must never be remembered.Coming
- An agent that remembersA Ferncliff support agent tested on a changed fact.Coming
Part 6
Proving it works
A question set with agreed answers, scoring by code and a checked judge, the comparison, where the graph loses, cost and time, and a harness on every change.
6 lessons, coming
- A question set with agreed answersQuestions of every kind, answers never typed by hand.Coming
- Scoring answersExact checks for lists and numbers, a judge checked against human grades.Coming
- With and without the graphAccuracy, tokens and time for each retriever.Coming
- Where the graph losesThe questions plain vector search answers better.Coming
- Cost and time per answerWhat a thousand questions a day would cost.Coming
- A harness on every changeFailing the build on a drop in score.Coming
Part 7
Production
Running the graph for real users.
7 lessons, coming
- Memory and sizingSizing a machine for a graph.Coming
- Loading at scaleBatch sizes measured.Coming
- Aura or self-managedThe same graph both ways, compared.Coming
- Security when agents query the graphKeeping an agent from doing harm through the graph.Coming
- One graph, many customersTenant separation tested.Coming
- Backups and upgradesRestoring a backup and moving between versions.Coming
- The full cost of one answerDatabase, embeddings, model calls and people, added up.Coming
Part 8
Capstone
Your own documents, from the schema to a measured comparison with plain vector search.
3 lessons, coming