How to Build Knowledge Graphs With LLMs (python tutorial)

Опубликовано: 20 November 2026
на канале: Johannes Jolkkonen | Funktio AI
88,485
2.3k

My previous video, showcasing how to use Large Language Models (LLMs) together with graph databases like Neo4J, had a lot of traction and many people were asking for details on the implementation.

So, here’s a technical walkthrough from scratch, going through how I built the demo step by step.

Watch the previous video here:    • Advanced RAG with Knowledge Graphs (Neo4J ...  
Connect with me on LinkedIn:   / johannesjolkkonen  
Code repository for this video: https://github.com/JohannesJolkkonen/...

▬▬▬▬▬▬ T I M E S T A M P S ▬▬▬▬▬▬

0:00 - Intro
1:03 - Environment overview
2:47 - Neo4J & OpenAI Configuration
7:50 - Helper functions
9:15 - Identifying entities and relationships in data
21:49 - Generating Cypher Statements
33:20 - Running the full pipeline
38:30 - Monitoring token consumption