RAG From Scratch: Part 1 (Overview)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025
  • LLMs are a powerful new platform, but they are not always trained on data that is relevant for our tasks. This is where retrieval augmented generation (or RAG) comes in: RAG is a general methodology for connecting LLMs with external data sources such as private or recent data. It allows LLMs to use external data in generation of their output. This video series will build up an understanding of RAG from scratch, starting with the basics of indexing, retrieval, and generation. It will build up to more advanced techniques to address edge cases or challenges in RAG.
    Code:
    github.com/lan...
    Slides:
    docs.google.co...

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

  • @anonymous6666
    @anonymous6666 ปีที่แล้ว +35

    Having more, shorter videos is really helpful and makes the content far easier to consume and learn from. Thanks for teaching us!
    Please keep making tutorial playlists with shorter videos.

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

    This series is gold! The short format is great. Thanks so much for making it publicly available

  • @bramd_
    @bramd_ 10 หลายเดือนก่อน +6

    Great tutorial. 2 small fixes to get the code running. (1) add bs4 to ! pip install (2) and the os.environ['OPENAI_API_KEY'] = 'Your key' to import os. Have fun!

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

      So I must pay in order to be able to follow up with this tuto ?

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

    short videos are a great idea , it works well and the explanations are as well good

  • @ZivRivkis
    @ZivRivkis ปีที่แล้ว +3

    Great walkthrough. Thank you for taking the time to put this together.

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

    Would love a video series going over using langchain in combination with your own local SQL data.

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

    🎯 Key points for quick navigation:
    00:03 *📹 The "RAG from Scratch" series will cover basic principles and advanced topics for building LLM applications with LangChain.*
    00:15 *🔒 LLMs haven't seen all data, including private or recent data, due to limited pre-training runs.*
    00:44 *📊 LLMs have context windows that are increasing in size, representing dozens to hundreds of pages of information.*
    01:10 *💻 Retrieval-Augmented Generation (RAG) is a popular paradigm for connecting LLMs to external data, involving three stages: indexing, retrieval, and generation.*
    02:06 *📝 Future videos will explore methods and tricks for RAG's three basic components in detail.*
    Made with HARPA AI

  • @slipthetrap
    @slipthetrap ปีที่แล้ว +6

    Very nice, thanks! It would be great to see a RAG tutorial that was totally off the internet, well, except for installation and downloading. I can't find any such demo's; there's always an API of some sort. In a way, I get it, but still it would be nice to see a RAG with WiFi off and no internet ... just once. Thanks as I've learned a bit more.

    • @r.lancemartin7992
      @r.lancemartin7992 11 หลายเดือนก่อน +5

      (This is Lance from the video.) I did one on local RAG. It shows how to set up local LLM and embedding model w/ Ollama and Nomic: th-cam.com/video/E2shqsYwxck/w-d-xo.html

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

    Looks promising! I will keep watching the playlist

  • @Sss-zl8qj
    @Sss-zl8qj 6 หลายเดือนก่อน

    Thank you. This series is super helpful!

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

    Thanks so much for the hands on tutorial! Very nicely made.

  • @mori-hosseini
    @mori-hosseini 11 หลายเดือนก่อน +1

    Great playlist!

  • @Arvolve
    @Arvolve ปีที่แล้ว +1

    Nice walkthrough. thanks!

  • @OccamsPlasmaGun
    @OccamsPlasmaGun 11 หลายเดือนก่อน +17

    Can you use a higher resolution for your videos? At least 1080p for anything with text.

    • @r.lancemartin7992
      @r.lancemartin7992 11 หลายเดือนก่อน +6

      (Lance is Lance from the video.) Yes, will do. It was a problem w/ Loom. Apologies.

  • @micbab-vg2mu
    @micbab-vg2mu ปีที่แล้ว +1

    Great video :) thank you

  • @VivekGautam-o8v
    @VivekGautam-o8v ปีที่แล้ว +1

    Hoping that too have production ready checklists, Hoping to do the same with JavaScript

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

    Hi,
    Great tutorial series here. A quick question as I am not able to find the right documentation for this. Can you tell me how rag_chain = ( | ).invoke snippet works. Per my understanding we are piping one result to another as we would with grep. is it similar?

  • @____2080_____
    @____2080_____ ปีที่แล้ว +2

    Guest We're too early for the Notebook to be ready. #timeofcomment

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

    Hi, how are you bypassing rate limit error of openAi

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

    unfortunately, under 720P resolution, some text in the slides are very difficult to see clearly. I will be much better, if we can get 1080p or even higher resolution.

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

      There is a link to the slides in the description.

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

      @@nellatara many thanks to your help

  • @JuneRay-tg3gd
    @JuneRay-tg3gd 10 หลายเดือนก่อน +1

    Could you provide the code demo? Thanks!

  • @JohnSmith-ub9pb
    @JohnSmith-ub9pb 3 หลายเดือนก่อน

    Just wondering, where did the part 15 reranking go? I can’t find the video.

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

    So RAG builds the prompt and this can scale with context window size?

  • @Erick-ds5cu
    @Erick-ds5cu 6 หลายเดือนก่อน

    Does anyone know in which tool those block diagrams are made?

  • @YvettePan-s7r
    @YvettePan-s7r 5 หลายเดือนก่อน

    Can RAG helpful to text-image-generation?

  • @rohanbsahu3651
    @rohanbsahu3651 ปีที่แล้ว

    great start. but the code link is broken. 404 error.

  • @kalkal0099
    @kalkal0099 ปีที่แล้ว +2

    Great video, but please fix the code link.

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

    How can I run those Jupiter notebook locally, i've clone them now what?

  • @daspradeep
    @daspradeep ปีที่แล้ว

    anything beyond "frozen" rag?

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

    why 720p?

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

    0:50

  • @peterbliznak8652
    @peterbliznak8652 ปีที่แล้ว +3

    code URL == 404

    • @antoniome5278
      @antoniome5278 ปีที่แล้ว

      Yes, It would be great to have access

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

    gemini 1.5