May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
Part 1 · Foundations
Choosing 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.
Code zip with this lesson
By Roni Das About 15 minutes to read, and about 15 minutes for the hands-on lab.
Until now Ferncliff's graph has held only facts: customers, robots, models, parts, suppliers and incidents. A knowledge graph for a model needs one more thing: the text those facts came from, so that every answer can say where it was written down. This lesson shows how to decide what goes into a graph, starting from the questions people ask rather than from the documents you happen to have. Then you load the documents themselves into the graph, cut into chunks and linked to the facts they mention, with the official Python driver, in batches, safely enough to run twice. One run of one program measures every number below.
After this lesson you will be able to:
What you need first: the lesson "Paths, hops and counting", and Ferncliff's facts loaded with load_graph.py.
Time: about 25 minutes to read, and under a minute for the lab to run.
What it costs: nothing beyond your Neo4j machine. This lab makes no model calls.
Dates and times: every time in this lesson is in UTC. Our run started at 09:30:45 on 6 December 2026, on a fresh AWS EC2 t2.small with Neo4j 2026.10.2 Community in Docker, set up exactly as in "Before you start".
Code: the program is in the code for this lesson, with a START-HERE note.
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.
One payment of ₹25,000 or $450 and opens every lesson with lifetime access.
Free to study first: Introduction: what this course builds, Before you start and What context engineering is.
Already bought it? Sign in to read this lesson.