GraphRAG Advanced: Avoid Overspending with These Tips

Поділитися
Вставка
  • Опубліковано 4 сер 2024
  • Unlock the power of GraphRAG by Microsoft and elevate your AI projects! In this comprehensive tutorial, you'll learn how to ingest multiple data sources, extract relevant information, and integrate everything into a Python application. Plus, we'll show you how to create an intelligent chatbot to answer complex queries. 💡 GraphRAG Advanced: Avoid Overspending with These Tips
    Previous Videos: • GraphRAG: The Most Inc...
    Ollama AI Research: • How I created AI Resea...
    What You'll Learn:
    Data Ingestion: Combine multiple pages and papers efficiently.
    Data Extraction: Use a notebook to extract and utilise relevant data.
    Python Integration: Seamlessly integrate extracted data into your applications.
    Chatbot Creation: Build a chatbot that queries and retrieves information dynamically.
    Cost Saving Tips: Optimize your setup to avoid high costs.
    Key Steps Covered:
    Installation: pip install GraphRAG and setting up the API key.
    Data Processing: Convert and manage your data for optimal use.
    Indexing: Structure your data into a graph format for efficient querying.
    Application Setup: Code walkthrough to set up GraphRag in your Python environment.
    Running Queries: Execute and optimise searches using global and local contexts.
    Creating a User Interface: Use Chainlit to build a user-friendly chatbot interface.
    Don't forget to LIKE, SHARE, and SUBSCRIBE for more AI and Python tutorials! 📚🔔
    🔗 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/
    #GraphRag
    Timestamps
    0:00 - Introduction to GraphRag and Video Overview
    1:02 - Advanced Features of GraphRag
    1:42 - Installation and Initial Setup
    2:50 - Data Ingestion and Conversion Process
    4:00 - Indexing Data into Graph Format
    5:10 - Integrating GraphRag in Python
    6:30 - Setting Up and Running Queries
    8:00 - Community Levels and Cost Management
    9:50 - Performing Local Search
    11:20 - Question Generation and Additional Features
    12:00 - Creating a User Interface with Chainlit
    12:50 - Final Thoughts and Summary
  • Навчання та стиль

КОМЕНТАРІ • 37

  • @lesptitsoiseaux
    @lesptitsoiseaux Місяць тому +7

    Great video. I think if you focus on using open source tech or to be blunt making this as cheap as possible you'll track in more viewers! :) Thank you for the great video. I'm a TPM and have to plan a graphRAG for tens of thousands of video transcripts and cost matters a lot. Still learning if it'll even be possible!

  • @NimaAmini2000
    @NimaAmini2000 Місяць тому +4

    Great job Mervin. Please publish more videos about GraphRAG

  • @TariveAdhikari
    @TariveAdhikari Місяць тому +3

    This is amazing sir. Can you also post a video on how to do this via groq. I couldn't figure out the endpoints of groq. Since, there is not much utilization of the embedding models I am fine using the openai models for that but for the main model itself.

  • @lesptitsoiseaux
    @lesptitsoiseaux Місяць тому +5

    @3:18 "Which I experienced" 🫠Man, I feel your pain. I uploaded 4 classes transcripts to a default everything Bedrock/OpenSearch and it was 5$ a day! Imagine 50000 classes... The name of the game here is keeping costs down.

    • @ThomasTomiczek
      @ThomasTomiczek 28 днів тому

      That is a problem now - things get cheaper. Also a question whether using highly expensive models is best here.... Claude i.e. is significantly cheaper. Anyone thinks that the LLM is the problem - it is not, the memory is.

  • @mikew2883
    @mikew2883 Місяць тому +1

    Awesome tutorial! 👏

  • @ShishirKumar07
    @ShishirKumar07 Місяць тому

    Thanks Mervin for the amazing video!

  • @henkhbit5748
    @henkhbit5748 Місяць тому

    Thanks, excellent video showing how to interface graphrag with Python code👍

  • @revanthphanisaimedukonduru1177
    @revanthphanisaimedukonduru1177 Місяць тому

    Great job Mervin, but you said in the last video that you will do it with Ollama. Please keep an equal focus on OpenAI models and Ollama-based ones as well. (Because many UA-camrs are not focusing on OpenSource models - in YT views point of view as well).

  • @Jelckeb
    @Jelckeb Місяць тому +3

    Does anyone know if a Neo4j backend is possible with Graphrag?

  • @NicholasAmpazis
    @NicholasAmpazis 22 дні тому

    Great video. Thanks!
    Just as a note, the link to your code apparently does not include the Chainlit powered UI version

  • @vcool
    @vcool Місяць тому

    It would help to create in detail a video that reviews each of the internal text prompts that exist in graphrag. Even if one is not using graphrag, it should be educational to be aware of what the prompts are trying to accomplish and why.

  • @thedeadlypretzel
    @thedeadlypretzel Місяць тому +2

    Love the explanation, can you also do a video maybe on the Atomic Agents AI library? It's extremely elegant IMO

    • @thedeadlypretzel
      @thedeadlypretzel Місяць тому +2

      github URL: github.com/KennyVaneetvelde/atomic_agents

  • @alamgirqazi1
    @alamgirqazi1 Місяць тому +5

    does this support Ollama and LLMs other than GPT ?

    • @anubisai
      @anubisai Місяць тому

      If it's the Microsoft one, it does support Ollama

    • @anubisai
      @anubisai Місяць тому

      0:50 he describes doing that

    • @shawnkratos1347
      @shawnkratos1347 Місяць тому +1

      I got ollama to work with qwen2:7b but can’t get embedding to work with nomic at the moment.

  • @legendchdou9578
    @legendchdou9578 Місяць тому +2

    It supports Groq API??

  • @yoddhalee8351
    @yoddhalee8351 24 дні тому +1

    Hi Mervin, I may ask a stupid question here, I tried the GraphRAG, it is really good! But the whole system seems a BlackBox to me, I can not control the way how to extract the entity, relation, create the graph and community. Do you think it is possible to do this level modification for any customization purpose? If so, could you show the way to do so? Thank you!

  • @mohammmedalmulhem622
    @mohammmedalmulhem622 23 дні тому

    Thank you for the great video. Is there a maximum input size for creating a GraphRAG? Every time I try to insert my documents, I get an error with "create_summarized_entities."

  • @artur50
    @artur50 Місяць тому +4

    Ollama FIRST!

  • @Alex29196
    @Alex29196 12 днів тому

    Hello Mervin, for some reason the Inputs folder is not being created now.

  • @MH-xx6df
    @MH-xx6df День тому

    How can I add the neo4j knowledge graph to the UI?

  • @ArjunKrishnaUserProfile
    @ArjunKrishnaUserProfile Місяць тому

    can this run fully locally using ollama?

  • @aryankarande786
    @aryankarande786 17 днів тому

    hello sir can we add new data to the existing knowledge graph ? if so how to do it ? Like a user adds a new file in chatbot do we need to append the input folder with new txt or do the entire process again ?

  • @shawnkratos1347
    @shawnkratos1347 Місяць тому

    Great video. But I’m trying to run this locally. I got it to work with qwen2:7b but can’t get it to do the embedding with mimic text embedding. It fails running the final part of indexing. Running this off my local ollama server. It will be slow for indexing but I could load up a bunch of docs and let it run. I’d like to see a openwebui pipeline for this.

  • @AlgoLion001
    @AlgoLion001 Місяць тому

    Is it possible to use it with Claude?

  • @awakenwithoutcoffee
    @awakenwithoutcoffee 27 днів тому

    good topic but it doesn't seem to provide enough cost reduction to make it production ready. Couldn't we keep the cost down significantly if we fine-tuned a custom LLM and make private API calls to it ? with 1 LLM you can potentially serve hundreds of clients.

  • @rdbonifacio3765
    @rdbonifacio3765 29 днів тому

    is it possible to use gemini api?

  • @joshuaweisberg9167
    @joshuaweisberg9167 Місяць тому +1

    Would I be able to use Vllm to reduce costs for this?

    • @shawnkratos1347
      @shawnkratos1347 Місяць тому

      I got ollama with qwen2:7b to work but can’t get the local embedding to work yet

  • @privacytest9126
    @privacytest9126 10 днів тому

    This is pretty frustrating - it's not addressing any of the concerns about contextual hallucinations and how to spot them. No evidence at all that this is a step change method from that perspective, it's like a marginal increase over standard RAG that gives you refs from the contexts. But is the output actually correct?

  • @rselvarajanMBA
    @rselvarajanMBA 29 днів тому

    Just use your own free hugging face agent and you are done in 10 minutes flat 😊

  • @MeinDeutschkurs
    @MeinDeutschkurs Місяць тому

    This is not amazing. This is throwing money to API services.

    • @awakenwithoutcoffee
      @awakenwithoutcoffee Місяць тому

      care to elaborate?

    • @MeinDeutschkurs
      @MeinDeutschkurs Місяць тому

      @@awakenwithoutcoffee Why should I explain the obvious? It was fun to see the local variant (at least the search) from the next video.