GraphRAG: The Most Incredible RAG Strategy Revealed

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • 🎥 Welcome to our channel! Today, we dive into the revolutionary Graph RAG from Microsoft, an advanced retrieval-augmented generation system that enhances AI responses by providing relevant context. GraphRAG: The Most Incredible RAG Strategy Revealed
    📌 In this video, you will learn:
    What is RAG (Retrieval-Augmented Generation)?
    Differences between Basic RAG and Graph RAG
    How to implement Graph RAG in your application
    Step-by-step guide on setting up Graph RAG
    Advantages of using Graph RAG over traditional methods
    🔍 Key Features:
    Entity Extraction
    Hierarchy Extraction
    Graph Embedding
    Community Summarization
    Topic Detection
    🔧 Setup Steps:
    Install the Graph RAG package
    Configure API keys and settings
    Initialize your project
    Upload and process data
    Run queries to extract high-quality answers
    🔗 Useful Links:
    Graph RAG Documentation
    GitHub Repository
    Subscribe for More AI Content
    🔗 Useful Links:
    Patreon: / mervinpraison
    Ko-fi: ko-fi.com/mervinpraison
    Discord: / discord
    Twitter / X : / mervinpraison
    Sponsor a Video or Do a Demo of Your Product: mer.vin/contact/
    GPU for 50% of it's cost: bit.ly/mervin-praison Coupon: MervinPraison (50% Discount)
    Code: mer.vin/2024/07/graphrag-code/
    📅 Timestamps:
    0:00 Introduction to Graph RAG
    1:00 Basics of RAG
    1:58 Understanding Graph RAG
    3:00 Setting Up Graph RAG
    5:01 Integrating Graph RAG with Your Application
    7:30 Running Queries and Extracting Data
    9:00 Global vs. Local Search
    10:27 Conclusion and Next Steps
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 82

  • @henkhbit5748
    @henkhbit5748 18 วันที่ผ่านมา +3

    Great video👍 just saw today about graphrag. You're one of the first covering this. Looking forward for the next video. Graph visualization would be nice 2. Thanks.

  • @HassanAllaham
    @HassanAllaham 19 วันที่ผ่านมา

    This is a powerful video on a powerful tech ... waiting to see what you will do with it ...thanks for the good content 🌹🌹🌹

  • @shawnkratos1347
    @shawnkratos1347 18 วันที่ผ่านมา +16

    Waiting on ur next video. Please cover setting this up with ollama and openwebui

    • @kylelau1329
      @kylelau1329 16 วันที่ผ่านมา

      I can't make it work in this stage

  • @ShishirKumar07
    @ShishirKumar07 18 วันที่ผ่านมา

    This is great video! Thank you Mervin.

  • @oussamaoucouc6134
    @oussamaoucouc6134 19 วันที่ผ่านมา

    You are the man , thanks again for your videos, we apreciate that

  • @adapt_it
    @adapt_it 19 วันที่ผ่านมา

    This content is really amazing! Thank you!

  • @HerroEverynyan
    @HerroEverynyan 19 วันที่ผ่านมา

    Thank you for the introduction so soon after the announcement! I'd be really curious to see how it compares with classic RAG on a large text where we ask for specific data, such as the taxes you'd have to pay on dividends according to the fiscal code.

  • @agentDueDiligence
    @agentDueDiligence 19 วันที่ผ่านมา

    Thank you Mervin!

  • @MrBiscuit696
    @MrBiscuit696 19 วันที่ผ่านมา

    Great video! Gonna try this now

  • @dogbreath226
    @dogbreath226 16 วันที่ผ่านมา

    Excellent intro. I've been looking forward to seeing what MS did with this research

  • @dhanasekar2113
    @dhanasekar2113 18 วันที่ผ่านมา

    Wonderful work..

  • @MrTommyorgryte
    @MrTommyorgryte 18 วันที่ผ่านมา +1

    Thanks! Great presentation as always! Can you do this using Ollama?

  • @Jacobstalin
    @Jacobstalin 19 วันที่ผ่านมา

    Amazing content sir. This concept much much needed in current time where native RAG lacks at some point.
    I just wanted to ask how did you create Graph visualisation at starting? [2:57]

  • @theindianrover2007
    @theindianrover2007 19 วันที่ผ่านมา +1

    Really like your videos

  • @PriNovaFX
    @PriNovaFX 18 วันที่ผ่านมา

    Thank you, Mervin for your video and bringing this into my attention. Amazing to see that you are using Cody. What do you think, could GraphRag bring benefits to code search too?

  • @IdPreferNot1
    @IdPreferNot1 19 วันที่ผ่านมา +3

    Knowledge graphs are the future... a definite component to give structure to RAG, reasoning, agentic behavior etc. That why i think LangGraph and LLamaIndex are 2 frameworks to keep up to date with.

    • @awakenwithoutcoffee
      @awakenwithoutcoffee 19 วันที่ผ่านมา +1

      I agree but how does LangGraph relate to graphRAG?

  • @yuzual9506
    @yuzual9506 19 วันที่ผ่านมา

    thx a lot for your work !

  • @KumR
    @KumR 19 วันที่ผ่านมา +6

    Thanks MP. Can you pl extend this to read csv, pdf, docx and add UI using streamlit too?

    • @brandonvelasquez3530
      @brandonvelasquez3530 13 วันที่ผ่านมา

      i believe it can inherently read CSV since that is basically just raw text in a specific format. I am curious about pdf and docx still

  • @arunn2413
    @arunn2413 18 วันที่ผ่านมา

    What are the use cases for the text genration and embedding models?
    Embedding model: Indexing
    Text Generation:gpt-4o Summarization
    I think text generation is also used here for indexing, does that not involve much cost than naive RAG?

  • @elbosanacHD
    @elbosanacHD 19 วันที่ผ่านมา

    Awesome video ! Do you know how does it compare with RAPTOR performance wise ?

  • @carlshod9024
    @carlshod9024 19 วันที่ผ่านมา

    Hi! Have you try LLamaIndex Graph Rag? What are the main difference between them? Very interesting video bro

  • @106rutvik
    @106rutvik 8 วันที่ผ่านมา

    Hi currently we are using Pinecone Vector based DB. Can we shift to using graphrag? How it is different from vector DB? And when should we use it? Or how can we utilizes both vector DB and graph db to make outputs better?

  • @figs3284
    @figs3284 19 วันที่ผ่านมา

    Are there any ways in which you can use graphrag for coding tasks or code generation, etc? I know that wasn't their main focus with this, but I wonder if it's possible with this system.

  • @ysy69
    @ysy69 19 วันที่ผ่านมา

    powerful!

  • @awakenwithoutcoffee
    @awakenwithoutcoffee 19 วันที่ผ่านมา

    quite amazing isn't it. From the MS presentation it looked promising but the results took 10x more Tokens + 10x longer to generate (70s for 1 answer). How would we tackle this issue, maybe Groq inferencing could reduce the compute time ?
    Also: can you elaborate more on local vs global search and when to use which ? for the most accurate response maybe we should combine the two into a final answer (?). Exciting indeed, would love to see more benchmarks. 🙏

  • @MidSeasonGroup
    @MidSeasonGroup 13 วันที่ผ่านมา

    Hi Melvin, how could this be used to optimize responses with the latest best practices and updates about a rust framework like dioxus? Many of these models are outdated and hence present a challenge.

  • @gauravmodi12
    @gauravmodi12 19 วันที่ผ่านมา +1

    How we can see the knowledge graph on UI on Neo4j?

  • @KiwiAndCurry
    @KiwiAndCurry 19 วันที่ผ่านมา +1

    Anyone know the rough token cost for creating the relationships / user query? seems that it would likely be ~5x the cost of setting up a standard RAG.

  • @andrewandreas5795
    @andrewandreas5795 18 วันที่ผ่านมา

    Does it work with the Claude models?

  • @ahmedbeji4248
    @ahmedbeji4248 19 วันที่ผ่านมา

    thank you, this is actually really exciting but is there a way to use sentence transformer embedders instead of openai or azure ? its better in my experience to use a custom embedding model trained on my data , the whole system is amazing but if its kept general it will still underperform custom systems tailored for the data
    If we can customise the chunking ( not token based we can actually maybe either have the chunks ready ( usually i do regex ) and use a custom transformer model ( kinda similar how u can do it in Haystack or llamaindex )
    this can be really amazing

  • @DEEPANMN
    @DEEPANMN 15 วันที่ผ่านมา +1

    Is it possible to add networkx graph into this instead of LLM generated graph! I have a readymade graph on the private dataset?

  • @studiophantomanimation
    @studiophantomanimation 19 วันที่ผ่านมา

    Can it work with Claude 3.5 sonnet?

  • @deepanshjha6353
    @deepanshjha6353 19 วันที่ผ่านมา

    First Blood 🙌

  • @svenandreas5947
    @svenandreas5947 19 วันที่ผ่านมา +1

    I wait for the ollama example .... still not sure if i got the definition of community content ..... but awesome video

  •  18 วันที่ผ่านมา

    thanks

  • @binaryfaith
    @binaryfaith 18 วันที่ผ่านมา

    Can you do this demo with tabular data?

  • @positivevibe142
    @positivevibe142 19 วันที่ผ่านมา

    Any Local version of this, like private, without API?

  • @user-zv8hn5qe9y
    @user-zv8hn5qe9y 17 วันที่ผ่านมา

    I just want to know the graphrag will extract the ner and relationship,but the original content will embed to the graphrag?hope some can reply me ❤❤

  • @106rutvik
    @106rutvik 7 วันที่ผ่านมา

    also can you tell for what exact purpose GPT was used here? and how many tokens were you charged for?

  • @rockypunk91
    @rockypunk91 5 วันที่ผ่านมา

    If you index different documents at different point of time. We end up with multiple artifacts in the output folder.
    How should one do a search over all outputs. Like a production level application

  • @sharankumar31
    @sharankumar31 18 วันที่ผ่านมา

    Hi bro kindly could you make a video on, how can i integrate this GraphRAG on phidata, crewai etc... it would be worth it...

  • @lucface
    @lucface 19 วันที่ผ่านมา

    How does it fair with CrewAI?

  • @ThomasConover
    @ThomasConover 14 วันที่ผ่านมา

    5:47 Can I use this with Claude api?

  • @evertonlimaaleixo1084
    @evertonlimaaleixo1084 18 วันที่ผ่านมา

    Congrats!
    How much cost this process of graph generation using gpt-4o? As I understood, for each chunk you make one request to extract the relation, all right?

    • @1509skate
      @1509skate 17 วันที่ผ่านมา

      I just spent 38$ on a 300 page document with GPT-4o....... Wasnt even a relevant document, just a first test 😥

    • @1509skate
      @1509skate 17 วันที่ผ่านมา

      Just did a single Prompt against this, costet another 2.38$

    • @evertonlimaaleixo1084
      @evertonlimaaleixo1084 17 วันที่ผ่านมา

      @@1509skate omg!

  • @jacobriedel5326
    @jacobriedel5326 19 วันที่ผ่านมา

    Does anyone know a great open source library for a chatbot that is comparable to production chatbots. A lot of enterprise level chatbots are totally lacking in the Gen AI / LLM capabilities but it would be create if developers like us could enhance a base chatbot with our own RAG techniques like GraphRAG

    • @dinoscheidt
      @dinoscheidt 19 วันที่ผ่านมา

      Uhm… a chat window is simply a text field and text above it. That is so simple to do with a few lines of html that this would be a very small open source project 😅

  • @theindianrover2007
    @theindianrover2007 19 วันที่ผ่านมา +1

  • @dolife8048
    @dolife8048 19 วันที่ผ่านมา +1

    How can this be used practically inside of obsidian, where many people already have a huge database on their own fields of interest? Can you create a tutorial how to implement this in obsidian?

  • @anandakrishnankb9172
    @anandakrishnankb9172 13 วันที่ผ่านมา

    How can we see the graph?

  • @artur50
    @artur50 19 วันที่ผ่านมา

    Can it be local?

  • @shray5801
    @shray5801 19 วันที่ผ่านมา

    The question here is , would this not end up in having an issue with context length?

  • @loicbaconnier9150
    @loicbaconnier9150 19 วันที่ผ่านมา

    all links reference missing 😊

  • @unclecode
    @unclecode 19 วันที่ผ่านมา +3

    Great content! Thanks. Knowledge Graphs are superior to flat RAG systems, enabling complex queries that explore relationships between entities. They allow for more challenging questions that require connecting information, like analyzing Scrooge's actions in context. Knowledge Graphs provide structured relationships, not just text chunks, leading to more insightful answers. This approach is effective for Q&A assistants, as users seek more than just facts. Combining Knowledge Graphs with vector data is ideal. To present the real difference, instead of asking a factual question like "Who is Scrooge?", please try "what part of the story shows Scrooge doing wrong?" This requires an argument and connections between facts. Or ask, "Who is Scrooge and what is the most important thing we understand from his reaction in the story?" Such questions need to retrieve and connect information and facts.

    • @agentred8732
      @agentred8732 19 วันที่ผ่านมา +1

      Your comment is as valuable as this very valuable video. A big thank you to you and to Mervin for providing such great insights into RAG and GraphRAG!

  • @iham1313
    @iham1313 18 วันที่ผ่านมา +1

    most common text form is pdf. not txt, not markdown. so how does it deal with REAL documents?

    • @ULTR4_DEV
      @ULTR4_DEV 13 วันที่ผ่านมา

      Pdf is not a textformat

  • @artur50
    @artur50 17 วันที่ผ่านมา

    anyone checked Ollama?

  • @alew3tube
    @alew3tube 19 วันที่ผ่านมา

    anybody got ollama running with graphrag?

    • @alew3tube
      @alew3tube 18 วันที่ผ่านมา

      Ollama still doesn't support OpenAI API embeddings format, but the LLM part worked. Might need some patching to use 100% local.

  • @MuhammadZubair-n7d
    @MuhammadZubair-n7d 14 วันที่ผ่านมา

    Difference between local and global search is not evident through the example. I think it's assumed that the person watching the video already knows it very well.

  • @d4rkg
    @d4rkg 19 วันที่ผ่านมา

    Nice video, but next time try to give a more popular source for retrieving the info, the poor gpt might probably not have any clue about such an unknown book as the one you used...

  • @xmagcx1
    @xmagcx1 19 วันที่ผ่านมา

    github?

  • @dfwblah
    @dfwblah 19 วันที่ผ่านมา

    Unclear that the results are any better based on what you showed.

  • @micbab-vg2mu
    @micbab-vg2mu 19 วันที่ผ่านมา

    Interesting - current RAGs are not good enough for me - maybe this method will be more accurate.

  • @john_blues
    @john_blues 17 วันที่ผ่านมา

    Please when you do these , evaluate the response for correctness. That fact that it gives 'something' is not nearly sufficient.

  • @lesptitsoiseaux
    @lesptitsoiseaux 19 วันที่ผ่านมา +1

    I came for the 3d graph I left empty handed.

  • @armikatollo4449
    @armikatollo4449 12 วันที่ผ่านมา

    respect bro good content. thanks