GraphRAG: Building a Smarter AI System (full walkthrough)
π Get started with SerpApi for free π https://serpapi.link/thu-vu π» Git repo for this tutorial π https://github.com/thu-vu92/graphRAG π Original Microsoft's GraphRAG paper π https://arxiv.org/pdf/2404.16130 π Master Python and Build Awesome AI Projects π https://python-course-earlybird.framer.website/?&utm_source=lessonsdegree π© Get FREE weekly AI & data insights π https://thu-vu.ck.page/49c5ee08f6 π TIMESTAMPS ββββββββββββββββββββββββββ 0:00 - Today's project 1:10 - SerpApi 1:35 - The problem with standard RAG 4:01 - What is GraphRAG 4:50 - When to use GraphRAG vs. standard RAG 5:54 - How GraphRAG works 6:41 - Scraping article data with SerpApi 15:01 - GraphRAG pipeline 15:27 - 1. Importing libraries 16:04 - 2. Configuration 17:14 - 3. Defining ontology 18:37 - 4. Graph extraction prompt 20:40 - 5. Pydantic data model 22:21 - 6. Extracting entities & relationships (and descriptions) 23:45 - 7. GraphRAGStore 24:46 - 8. Querying engine 26:10 - 9+10. Load article data 27:03 - 11. Build knowledge graph 29:44 - 12. Build communities & Generate summaries 30:24 - 13. Visualize graph with d3.js 32:01 - 14. Query the GraphRAG system 35:24 - Conclusions #graphrag #ai #ThuVu