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
Lookups, multi-hop questions, counts and complete lists, each answered from vector search and from a graph query, with accuracy, tokens and cost measured.
Code zip with this lesson
By Roni Das About 16 minutes to read, and about 20 minutes for the hands-on lab.
The first lab measured one question. This lesson measures twelve, of four kinds: lookups, multi-hop questions, counts and complete lists. Each one is answered twice from the five most similar chunks, using the vector index from the last lesson, and twice from the rows of one graph query, and every answer is scored by code against an answer computed from the data. The first run held a surprise: the graph lost seven answers, and the reason was not the graph. It was the shape of the rows we handed the model. So we fixed that one thing and ran the graph side again. Both runs are here, because the failure teaches as much as the win.
After this lesson you will be able to:
What you need first: the lesson "Embeddings and vector indexes inside Neo4j", with the vector index ONLINE.
Time: about 30 minutes to read, and about two minutes for each run.
What it costs: our first run made 48 calls to gpt-5.4-mini and one embeddings call for the 12 questions, with 21,012 input and 2,124 output tokens: $0.0253. The second run made 24 calls: $0.0081. Together, about 3.4 cents.
Dates and times: every time in this lesson is in UTC. The first run started at 10:24:26 and the second at 10:25:59 on 6 December 2026, on a fresh AWS EC2 t2.small with Neo4j 2026.10.2 Community in Docker.
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.