LangGraph : Self Corrective RAG (CRAG) to Reduce hallucination in RAG Pipeline : Part4

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • Learn how you can use LangGraph to create corrective RAG to reduce hallucination
    Notebook : github.com/ari...

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

  • @junaidiqbal4104
    @junaidiqbal4104 12 วันที่ผ่านมา +1

    Awesome brother, these are not only words, i mean its support from you for us. Thanks for your effort. Liking your effort from Lahore.

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

    This demo is awesome.

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

    cloned repo but validation error on cell 2 relating to build_rag.py
    ValidationError: 1 validation error for HuggingFaceBgeEmbeddings
    model_name
    none is not an allowed value (type=type_error.none.not_allowed)
    can you give sample .env

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

      Added dot env with the name env.sample...
      Once you clone please rename it to .env

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

      @@AritraSen Thx! Those .env settings helped me get on the right 'path' to get it working :) FYI, I tried script with old gpt4 turbo preview and it didint work in my first run in that despite judging most docs as relevant, it transformed to a web query. When i switched to gpt-4o it was smooth as silk. Another FYI, i've got an old CPU and old gtx 1660ti GPU. When i first ran embeddings it took approx 9 minutes. Pip installed a gpu pytorch version and got to run on GPU doing embeddings in only 52 seconds!. Well worth changing the setting I guess even on old GPU. This was a great tutorial thank you. Have you looked at a RAPTOR RAG? Langchain did a good video on it here. th-cam.com/video/jbGchdTL7d0/w-d-xo.htmlsi=tMV2mFZHrphLFGEi
      I'm trying to get to just one complex RAG approach i can lock in as "good enough". Thanks again!