I Built an Insanely Complex RAG Flow with LangGraph - You Won't Believe How Easy It Is

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ค. 2024
  • I've been working on an open source git repo for advanced RAG techniques with LangChainAI 's LangGraph🦜🕸️, heavily inspired by the LangChain Cookbook by @RLanceMartin and @sophiamyang!
    This repo not only implements Corrective RAG, Adaptive RAG, and Self-RAG with LangGraph but also focuses on structuring the code for maintainability, testing & clean code. 🌟
    We leverage LangGraph to build an advanced RAG flow using ideas from 3 papers:
    Corrective-RAG (CRAG): Self-grading on retrieved documents and web-search fallback.
    Self-RAG: Self-grading on generations for hallucinations.
    Adaptive RAG: Routes queries based on complexity.
    Explore the repo here:
    github.com/emarco177/langgaph...
    Original cookbook:
    github.com/mistralai/cookbook...
    Official LangChain video:
    • Advance RAG control fl...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Leonid.Shamis
    @Leonid.Shamis หลายเดือนก่อน +1

    Really great and intuitive refactoring of the original code - well done!

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

    Really nice work, Eden. Thank you for such a great content.

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

    yet another awesome tutorial that takes advanced AI concepts and makes them dead simple 🎲
    thanks Eden !

  • @leonardjin910
    @leonardjin910 22 วันที่ผ่านมา

    Thank you for clearly explaining the system architecture, helps everyone understand.

  • @mahoanghai3364
    @mahoanghai3364 22 วันที่ผ่านมา +1

    Thank you very much. It's really cool

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

    amazing! but i'm struggling to understand when RAG should be used and when it should not be used

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

    Can you make a video going through at a high level each branch in order?
    Also could you cover LangGraph workflows involving tool use / function calling? Thank you!

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

    thank you!, one idea I saw and think is a good improvement to the architecture is adding a search into a knwoledge graph module, like dbpedia or similar KGdatabase with the posibilty of adding triplets extracted from the RAG documents itself. The result of the semantic and keyword queries to vectorDb and KGDb will enrich the context provided to the LLM

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

    Eden, lang graph doesn't have any good checkpoint libraries apart from sqlite for production use cases like you have for langchain. Do you know anything about that?

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

      Great question ... what about some nosql ways like redis etc ...for checkpointing ... also ended up creating my own way of selecting last K messages ... you can't pass the whole conversational history for a thread to the model (i.e implementing react agent with memory)

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

      @@todormishinev I am just using a history aware retriever with RedisChatMessageHistory to get around this memory thingy. Works flawlessly

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

    🎯 Key points for quick navigation:
    00:13 *📁 The speaker has been working on a public GitHub repository that implements advanced RAG workflows using LangGraph.*
    00:40 *💡 The speaker felt that the existing notebook was missing a software engineering perspective on how to structure an advanced LangGraph application and write maintainable code.*
    01:07 *🔩 The speaker refactored the notebook to make it more maintainable, splitting it into sub-modules and writing tests for each chain.*
    01:47 *📊 The speaker emphasizes the importance of writing unit tests for code.*
    02:44 *🚀 The Advanced RAG workflow involves choosing whether to retrieve documents from a vector store or use a web search, grading documents, and generating an answer while checking for hallucinations and relevance.*
    04:23 *💡 The implementation is a combination of three papers on Advanced RAG, corrective RAG, adaptive RAG, and self-RAG.*
    Made with HARPA AI

  • @amiranvarov
    @amiranvarov 22 วันที่ผ่านมา +1

    drop that bullshit thumbnail. Be better!

    • @EdenMarco
      @EdenMarco  21 วันที่ผ่านมา

      So true :) LOL