Improve RAG with This Simple API (code included)

Sdílet
Vložit
  • čas přidán 20. 08. 2024
  • Want to get started with freelancing? Let me help: www.datalumina...
    Need help with a project? Work with me: www.datalumina...
    🔗 GitHub Repository
    gist.github.co...
    📑 Azure Document Intelligence
    learn.microsof...
    🛠️ My Development Workflow
    • My Development Workflo...
    👋🏻 About Me
    Hi there! I'm Dave, an AI Engineer and the founder of Datalumina. On this channel, I share practical coding tutorials to help you become better at building intelligent systems. If you're interested in that, consider subscribing!

Komentáře • 28

  • @farhanafridi8694
    @farhanafridi8694 Před měsícem +12

    I believe you are the hero every AI engineer needs. Unlike most CZcamsrs who copy and paste code from documentation, you address the real problems AI engineers face.

  • @ClarkeBishopConsulting
    @ClarkeBishopConsulting Před měsícem +1

    Very helpful, Dave! Many companies try to use naive chunking because there are so many examples on the web, CZcams videos, etc. You gave us a very good way to do smarter chunking and get more useful results. This is the future for RAG use cases.

  • @BrockMesarich
    @BrockMesarich Před měsícem +2

    So good at simplifying concepts in these tutorials. Loved this Dave!

  • @GeertBaeke
    @GeertBaeke Před měsícem +1

    Good stuff! We use the exact same technique with markdown-based chunking and extra metadata for the chunks. Works really well!

    • @daveebbelaar
      @daveebbelaar  Před měsícem

      I think this is currently the best approach for RAG.

  • @micbab-vg2mu
    @micbab-vg2mu Před měsícem +2

    great - thank you for sharing:) Please explore the topic more - )

  • @skyrayzor3693
    @skyrayzor3693 Před měsícem +1

    Your video is detailed and very helpful, thank you for these type of techniques.

  • @krlospatrick
    @krlospatrick Před 27 dny

    Thanks a lot for sharing this knowledge, it's really useful!

  • @inflationking1271
    @inflationking1271 Před měsícem +1

    Could you do a GraphRAG tutorial?

  • @Divyv520
    @Divyv520 Před měsícem +1

    Hey Dave , Really Nice Video . I was wondering if I could help you with more High Quality and engaging editing with maintaining a brand colour to your youtube channel which can help you to get more engagement in your videos and Build your Unique Personal Brand . Pls lmk what do you think ?

  • @StephanieNguyen-om1ss
    @StephanieNguyen-om1ss Před měsícem

    Super helpful. Can you please make a tutorial on how to use AWS Textract too?

  • @trendavira5128
    @trendavira5128 Před měsícem +2

    Hi Dave, Thanks for the awesome content, a client come to me for a RAG solution, he have a library of hundreds of thousands of pages (about 60 Giga), simplest rag techniques doesn't seem to work for this case, come up to a solution using hybrid retriever and a reranker using llama-index, the results was good but not perfect, if were you how will you tackle this problem?

    • @awakenwithoutcoffee
      @awakenwithoutcoffee Před 22 dny

      we are working on a solution for this that can be white-labeled on release! does your client has an API endpoint or some kind o bucket containing all the files ? it really depends in what formats the data comes. If it its just text than you can use a hybrid-approach with semantic chunking, parent-document retrieval or other meta-data filtering techniques. The main point of importance is to make sure the data is pre-processed and cleaned before being chunked an embedded. Entity extraction is expensive but can be very helpful. A second best option is to extract meta-data. One is used for semantic extraction (entity) and the other for additional filtering.
      GraphRAG is the best solution, using entities, but it costs a massive amount of resources & development time making it only accessible to enterprise clients (10-50k +).

  • @AaronGayah-dr8lu
    @AaronGayah-dr8lu Před měsícem

    Enjoyed this. Thank you.

  • @__m__e__
    @__m__e__ Před 18 dny

    Thanks I'm a newbie and your videos helped get me started. Can you please also share pdf_ingester?

  • @awakenwithoutcoffee
    @awakenwithoutcoffee Před 22 dny

    awesome video but where can we find the "from config.settings import get_settings" ?

  • @LaHoraMaker
    @LaHoraMaker Před měsícem

    Have you tried passing the PDF to Jina Reader API? The Markdown output is quite clean too! (but it's only usable for public documents)

  • @chwaleedsial
    @chwaleedsial Před měsícem

    Will try this with textaract. For my use case I am just sending a csv ( of an excel ) and its working but I think that is not a systematic, luck proof way. Do you think rag approach will be better, less prone to context, structure related hallucinations ?

  • @testadrome
    @testadrome Před měsícem +1

    Does it work with scanned pdf docs?

  • @brandonvelasquez3530
    @brandonvelasquez3530 Před měsícem

    This seems similar to GraphRAG. What is the difference?

    • @sahiljain9376
      @sahiljain9376 Před měsícem

      GraphRAG is a more powerful solution than this baseline RAG. In GraphRAG, the data is stored in the graph with entities and relationships and also doing community summaries in detail which excels in retrieval flow. For eg: questions like "Did company underperform in Q4 vs Q3?" This kind of question would be difficult to answer using Baseline-RAG which can be answered easily using GraphRAG

    • @awakenwithoutcoffee
      @awakenwithoutcoffee Před 22 dny

      @@sahiljain9376 you can enhance RAG with agentic frameworks to allow these questions e.g. an SQL Agent with meta-data filtering. I love graphRAG but its a.) super expensive since entity extraction requires a ton of LLM calls b.) takes allot of time to set-up the graph, c.) has additional challenges to be overcome before it can really be used for non-enterprise.

    • @__m__e__
      @__m__e__ Před 18 dny

      @@sahiljain9376 I was unaware of GraphRAG, and it looks really interesting thanks. It looks like it's beyond my skill level now, but hopefully MS integrates it into Azure soon