Learn RAG From Scratch - Python AI Tutorial from a LangChain Engineer

  Рет қаралды 112,729

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

Learn how to implement RAG (Retrieval Augmented Generation) from scratch, straight from a LangChain software engineer. This Python course teaches you how to use RAG to combine your own custom data with the power of Large Language Models (LLMs).
💻 Code: github.com/langchain-ai/rag-f...
If you're completely new to LangChain and want to learn about some fundamentals, check out our guide for beginners: www.freecodecamp.org/news/beg...
✏️ Course created by Lance Martin, PhD.
Lance on X: / rlancemartin
⭐️ Course Contents ⭐️
⌨️ (0:00:00) Overview
⌨️ (0:05:53) Indexing
⌨️ (0:10:40) Retrieval
⌨️ (0:15:52) Generation
⌨️ (0:22:14) Query Translation (Multi-Query)
⌨️ (0:28:20) Query Translation (RAG Fusion)
⌨️ (0:33:57) Query Translation (Decomposition)
⌨️ (0:40:31) Query Translation (Step Back)
⌨️ (0:47:24) Query Translation (HyDE)
⌨️ (0:52:07) Routing
⌨️ (0:59:08) Query Construction
⌨️ (1:05:05) Indexing (Multi Representation)
⌨️ (1:11:39) Indexing (RAPTOR)
⌨️ (1:19:19) Indexing (ColBERT)
⌨️ (1:26:32) CRAG
⌨️ (1:44:09) Adaptive RAG
⌨️ (2:12:02) The future of RAG
🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
👾 Oscar Rahnama
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news

Пікірлер: 60
@mr.daniish
@mr.daniish 17 күн бұрын
Lance is the man! Love his content
@jplkid14
@jplkid14 5 күн бұрын
The complete happenstance of the phrase "do rag" sounding like "durag" coming from this video was awesome. Sorry, totally unrelated...but it made me chuckle.
@faisalmushtaq2287
@faisalmushtaq2287 17 күн бұрын
I was waiting for this particular course. Thanks
@iqtech6065
@iqtech6065 16 күн бұрын
Assala mu alaikum brother
@sagarkeshave5357
@sagarkeshave5357 17 күн бұрын
Include more of langchain, llms, industry level based tutorials
@geekyprogrammer4831
@geekyprogrammer4831 17 күн бұрын
This man is amazing!
@ser1ification
@ser1ification 17 күн бұрын
This is great! Thank you so much!
@mukilloganathan1442
@mukilloganathan1442 17 күн бұрын
Always a fan of a lance video
@utk1000
@utk1000 7 күн бұрын
VERY WELL EXPLAINED. THANK YOU
@janeslt
@janeslt 17 күн бұрын
Thank you!!!
@yashtiwari3565
@yashtiwari3565 15 күн бұрын
Please let us know when the blog related to adaptive RAG will be uploaded, Lance mentioned that he will be uploading it in a day or so. Also I wanted to ask this question to general public, which one is better, State machines or Guardrails?? (In the context of creating complex flows using llms)
@karimelfa1394
@karimelfa1394 17 күн бұрын
thank you
@izzatullobaltabayev8619
@izzatullobaltabayev8619 6 күн бұрын
Thank you !
@devloper_hs
@devloper_hs 2 күн бұрын
Awesome as always
@claudiodisalvo9925
@claudiodisalvo9925 12 күн бұрын
This is great content. Speaking of that 95% of private data I guess a lot of practitioner are finding it hard to convince business people to share their data with an LLM provider. And of course concerns are very much understandable. I guess people would feel more comfortable if a RAG application would be able to clearly define a partition of data that it can work on for the benefit of the tool, and a partition that can be either used as obfuscated or simply never shared, not even by chance.
@Kalmaos
@Kalmaos 10 күн бұрын
Maybe the solution would be running the model locally?
@juanpablopenaloza5093
@juanpablopenaloza5093 3 күн бұрын
NVDIA CHATRTX might just do the job
@FranciscoJPolo
@FranciscoJPolo 17 күн бұрын
Great!!
@afrazhussain3778
@afrazhussain3778 17 күн бұрын
great content
@cristian_palau
@cristian_palau 4 сағат бұрын
Great video! What software is used to create these nice diagrams ?
@CodeKitchen
@CodeKitchen 17 күн бұрын
Love the teaching style! at 9:00 you mention that you've walked through the code previously. Is there another video to go with this one or did I miss something?
@KOTAGIRISIVAKUMAR
@KOTAGIRISIVAKUMAR 11 күн бұрын
those are shorts videos and they combined them to form an long single video. when lance referring previous video means not another video.
@shraeychikker694
@shraeychikker694 4 күн бұрын
I think this is the playlist from the videos are taken: kzbin.info/aero/PLfaIDFEXuae2LXbO1_PKyVJiQ23ZztA0x
@CodeKitchen
@CodeKitchen 3 күн бұрын
@@shraeychikker694 Nice one - many thanks :)
@ivant_true
@ivant_true 16 күн бұрын
Thanks
@utkarshkapil
@utkarshkapil 17 күн бұрын
GOLD
@tubege
@tubege 3 күн бұрын
Question:. Is it possible to do RAG across different vector stores that use different embedding strategies?
@iCeTainment
@iCeTainment 17 күн бұрын
❤❤❤
@Yomi4D
@Yomi4D 3 күн бұрын
Amazing.
@GeandersonLenz
@GeandersonLenz 8 күн бұрын
What the name of this screen recorder used by Lance?
@willcheng8257
@willcheng8257 17 күн бұрын
Like first and then watch
@VipinAp-iy9tt
@VipinAp-iy9tt 11 күн бұрын
How to add coverstional memory to it?
@teddysalas3590
@teddysalas3590 14 күн бұрын
is it possible i can do rag and combine data with huggingface models?
@iuseh
@iuseh 12 күн бұрын
llama 3 in 15T tokens, chart would be different if you released video 3 days later :)
@andyhall7032
@andyhall7032 17 күн бұрын
And there was me thinking "how can it take over 2 hours to talk about applying RAG status to your project plans"
@Andrew-Tsegaye
@Andrew-Tsegaye 17 күн бұрын
LLM Agents plzzz... ❤
@Josholsan
@Josholsan 15 күн бұрын
Hello, at 27:13 why is he using itemgetter to pass the question? What's the difference between doing that and setting a RunnablePassthrough() in there?
@flaviobrienza6081
@flaviobrienza6081 14 күн бұрын
No difference, just that with RunnablePassThrough() you don't need a dictionary in the invoke
@Thomas_Leo
@Thomas_Leo 17 күн бұрын
Amazing videos but how does this translate into careers or jobs? What positions are employers looking for? Would they even hire anyone without experience? How do you even get started? I'm aware this channel mostly focuses on the coding and hands-on experience but I wish there was an actual channel focused on employment. I'm pretty sure there are channels out there and if anyone has recommendations, I'll be grateful.
@samtx
@samtx 15 күн бұрын
look on linkedin jobs title descriptions keywords if any with llm ai
@vcool
@vcool 9 күн бұрын
Start working on some AI projects first, on your own, in your spare time. Show some results. Once you have two to show, getting a job should be easier. You don't actually need this langchain thing. As for how you get started, if you've already used GPT-4, etc., thinking about larger workflows that chain inputs and outputs in creative ways to solve problems. Also think about when you need to use embeddings for distance computation. You can use the LLM+embedding APIs directly or via an SDK, optionally sometimes with a local vector database. You don't need to go fancy.
@samtx
@samtx 8 күн бұрын
@@vcool what results? What you done
@sanjaybhatikar
@sanjaybhatikar 6 күн бұрын
Thanks for the excellent video! If your goal is to democratize gen AI to as diverse an audience as possible, I suggest you stop using OpenAI in these tutorials. In many parts of the world, having a credit card is not an option and OpenAI quickly backs you into that corner. Use, promote and support open-sources alternatives instead. Thank you.
@nawaz_haider
@nawaz_haider 17 күн бұрын
Udemy created 50 accounts to dislike this video
@vishwanathnb128
@vishwanathnb128 15 күн бұрын
😂😂😂
@zaidnadeem4918
@zaidnadeem4918 15 күн бұрын
I will create 50 accounts to like your comment 😂
@roberth8737
@roberth8737 17 күн бұрын
This is the way...
@vcool
@vcool 9 күн бұрын
This seems like it's going to pigeonhole me and tie my hands into a small dogmatic set of patterns, when what I need is broader freedom that I can accomplish without it.
@vcool
@vcool 6 күн бұрын
Does this video have everyone brainwashed? If you know basic programming, you don't need langchain at all. I don't like unnecessary abstractions.
@Haz2288
@Haz2288 5 күн бұрын
Yeah but the building blocks are useful. Do you write your own sorting functions?
@bradyanderson2250
@bradyanderson2250 2 күн бұрын
@vcool would you mind expanding on what the alternative is to langchain? Genuinely curious on learning, not attacking
@USER-A566
@USER-A566 17 күн бұрын
This video getting massive viewership🇮🇱
@blacklight8318
@blacklight8318 17 күн бұрын
You mean 🇵🇸 ?
@USER-A566
@USER-A566 17 күн бұрын
@@blacklight8318 No
@farhanlabib2833
@farhanlabib2833 17 күн бұрын
Get and eat dudu
@junaidiqbal4104
@junaidiqbal4104 17 күн бұрын
Palestine
@USER-A566
@USER-A566 17 күн бұрын
Thanks, but that was on the menu yesterday... today is rice and beans
What is RAG? (Retrieval Augmented Generation)
11:37
Don Woodlock
Рет қаралды 60 М.
Duck sushi
00:54
Alina Saito / 斎藤アリーナ
Рет қаралды 36 МЛН
APIs for Beginners 2023 - How to use an API (Full Course / Tutorial)
3:07:07
freeCodeCamp.org
Рет қаралды 1,7 МЛН
Why flat earthers scare me
8:05
Sabine Hossenfelder
Рет қаралды 172 М.
What is Retrieval-Augmented Generation (RAG)?
6:36
IBM Technology
Рет қаралды 438 М.
Students Vs Mentors | iNeuron
iNeuron Intelligence
Рет қаралды 3
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 171 М.
Let's build GPT: from scratch, in code, spelled out.
1:56:20
Andrej Karpathy
Рет қаралды 4,2 МЛН
RAG from the Ground Up with Python and Ollama
15:32
Decoder
Рет қаралды 16 М.
Duck sushi
00:54
Alina Saito / 斎藤アリーナ
Рет қаралды 36 МЛН