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
Making an embedding for every chunk, creating a vector index, searching it from Cypher, and what the similarity scores and the timings really are.
Code zip with this lesson
By Roni Das About 14 minutes to read, and about 15 minutes for the hands-on lab.
The first lab used vector search as a black box: the five chunks "most similar" to the question. This lesson opens the box and builds it inside Neo4j, next to the graph you already have. You will give each of Ferncliff's 105 chunks an embedding, store it on the Chunk node, create a vector index, and search it from Cypher in both of the ways Neo4j 2026.10 offers. You will also see one honest detail about the edition this course runs on: Community Edition 2026.10 stores vectors as plain lists of numbers, and it refuses Neo4j's newer native vector type. Every number below comes from one run.
After this lesson you will be able to:
What you need first: the lesson "Modelling the Ferncliff knowledge graph", with the Chunk nodes loaded, and OPENAI_API_KEY set with a spending limit.
Time: about 25 minutes to read, and under a minute for the lab to run.
What it costs: two embeddings calls: 8,476 tokens for the 105 chunks and 37 tokens for three questions. At $0.02 per million tokens for text-embedding-3-small, that is about $0.0002.
Dates and times: every time in this lesson is in UTC. Our run started at 10:24:03 on 6 December 2026, on a fresh AWS EC2 t2.small with Neo4j 2026.10.2 Community in Docker.
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.