GraphRag vs Normal RAG - Summarise a Whole Book in python!

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

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

  • @franknillard
    @franknillard 2 หลายเดือนก่อน +2

    I love it! The video is full of value, as well as your other content. Subscribed, definitely want to see more of this :)

    • @WW_AI_Adventures
      @WW_AI_Adventures  2 หลายเดือนก่อน

      @@franknillard Thanks a bunch!

  • @paulntalo1425
    @paulntalo1425 หลายเดือนก่อน +2

    Thank you for sharing such rich content. It's quite easy to connect with. . The entire world needs to come see what is being offered here about Gen AI

  • @mathew5880
    @mathew5880 3 หลายเดือนก่อน +1

    Yo you are a saviour needed this for my bachelor's thesis project

    • @WW_AI_Adventures
      @WW_AI_Adventures  3 หลายเดือนก่อน

      @@mathew5880 xD haha so glad I could help. What's your thesis on?

    • @mathew5880
      @mathew5880 3 หลายเดือนก่อน

      @@WW_AI_Adventures actually my prof actually asked me to make like a search engine where you would make graphs of research papers from pubmed and using a graph convolutional neural network ,when the user types a keyword it would get the most similar paper to it from the graph
      So really generating results based on that is what my project is on ,still figuring out the details but yeah this helps
      If you know something else that could help out do suggest

    • @hughj8763
      @hughj8763 3 หลายเดือนก่อน

      Working on something similar for my thesis as well.

    • @WW_AI_Adventures
      @WW_AI_Adventures  3 หลายเดือนก่อน

      Ah graph rag sounds perfect for this. Graph Convolutional networks sound like they might be overkill though, but I'm no expert, I'd probably try with just graph-rag first (with a cheaper LLM than openAI though at first)

    • @mathew5880
      @mathew5880 2 หลายเดือนก่อน +1

      @@WW_AI_Adventures yeah I guess your probably right but will try out both and see how it goes

  • @peterroshdy1269
    @peterroshdy1269 2 หลายเดือนก่อน +1

    Really high quality content man!

    • @WW_AI_Adventures
      @WW_AI_Adventures  2 หลายเดือนก่อน

      @@peterroshdy1269 thanks a bunch!

    • @WW_AI_Adventures
      @WW_AI_Adventures  2 หลายเดือนก่อน

      What kind of stuff are you interested in seeing in this space?

    • @peterroshdy1269
      @peterroshdy1269 2 หลายเดือนก่อน +1

      Just more content like that with demos to cool ai applications and use cases

    • @WW_AI_Adventures
      @WW_AI_Adventures  2 หลายเดือนก่อน

      @@peterroshdy1269 happy to oblige!

  • @MuhammadSadiq-k3q
    @MuhammadSadiq-k3q 20 วันที่ผ่านมา +1

    Hi @WW_AI_Adventures, thank you for sharing and presenting such rich content so nicely. I was able to run the example code successfully, but I noticed that some of the `.parquet` files had missing columns like `description_embedding`, `rank`, and others. Do you have any idea what might be causing this?

    • @WW_AI_Adventures
      @WW_AI_Adventures  20 วันที่ผ่านมา

      Hiya! Thanks for the feedback. Do you have an error you can share?

    • @MuhammadSadiq-k3q
      @MuhammadSadiq-k3q 20 วันที่ผ่านมา +1

      @@WW_AI_Adventures thanks for the prompt response! It seems the error occurs when microsoft_to_neo4j.py tries to read the columns 'name' and 'description_embedding' from create_final_entities.parquet, and 'rank' from create_final_relationships.parquet, as these columns are missing from these files. However, the rest of the columns are present. Don't know what is causing it configuration, models or something else.

    • @WW_AI_Adventures
      @WW_AI_Adventures  20 วันที่ผ่านมา

      @MuhammadSadiq-k3q it could be that Microsoft has changed their format for the parquet files. Try inspecting the files manually to see if the names have changed

  • @dongzhou4584
    @dongzhou4584 3 หลายเดือนก่อน +2

    Well done mate.

  • @Maskra_
    @Maskra_ หลายเดือนก่อน +1

    Great demo

    • @WW_AI_Adventures
      @WW_AI_Adventures  หลายเดือนก่อน

      @@Maskra_ thanks 🙏🙏 what did you like about it?

  • @jooznagawa3650
    @jooznagawa3650 24 วันที่ผ่านมา +1

    Did you use a different llm for the native RAG and the local global RAG?
    Wouldn't that make the benchmark biased, results will be better for the local global RAG with GPT-4 running for it.

    • @WW_AI_Adventures
      @WW_AI_Adventures  24 วันที่ผ่านมา +1

      Hiya!
      Thanks for commenting - Yes I used the same LLM for both. GPT-4o.
      To be honest this isn't a strict benchmark, just my exploration of the two together. Naïve RAG will simply never be able to include all of the text data from a large corpus in its context window.
      GraphRAG gets around this by precomputing summaries ahead of time - so it will always have an advantage, at the cost of this ahead of time summarisation which may not be possible for an incredibly large corpus!

  • @treflatface
    @treflatface หลายเดือนก่อน +1

    Are you wearing Indonesian Batik? Great short lesson, thank you for sharing!

    • @WW_AI_Adventures
      @WW_AI_Adventures  หลายเดือนก่อน +1

      @@treflatface Thanks! I don't think so but I just looked this up and I love the colours of Batik.

  • @dusktildawn-ue8jq
    @dusktildawn-ue8jq 2 หลายเดือนก่อน +1

    Hey, can you recommend a book for learning Python? I'm new to it

    • @WW_AI_Adventures
      @WW_AI_Adventures  2 หลายเดือนก่อน

      @@dusktildawn-ue8jq I'm not a big fan of books, but sentdex on TH-cam and his site realpython.com/ are really good and I have used them before. He has good tutorials in most domains as well

    • @dusktildawn-ue8jq
      @dusktildawn-ue8jq 2 หลายเดือนก่อน +1

      @@WW_AI_Adventures thanks

  • @jackbauer322
    @jackbauer322 24 วันที่ผ่านมา +1

    graphrag is NOT be used because it consumes too many tokens , use lightrag instead, please make a video with lightrag

    • @WW_AI_Adventures
      @WW_AI_Adventures  24 วันที่ผ่านมา +1

      @@jackbauer322 thanks for the suggestion. LightRag does look good. However, if you want a true global summary of all of your text, then I don't know if it will be able to do as good a job!