Building a RAG application using open-source models (Asking questions from a PDF using Llama2)

Sdílet
Vložit
  • čas přidán 8. 03. 2024
  • GitHub Repository: github.com/svpino/llm
    I teach a live, interactive program that'll help you build production-ready machine learning systems from the ground up. Check it out at www.ml.school.
    Twitter/X: / svpino
  • Věda a technologie

Komentáře • 98

  • @GaurangDave
    @GaurangDave Před 2 měsíci +3

    Oh please don't stop creating these videos, this is really helpful. Very detailed and well explained! Thank you so much for this!

  • @TooyAshy-100
    @TooyAshy-100 Před 2 měsíci +1

    Santiago, your videos on LLMs have been incredibly helpful! Thank you so much for sharing your expertise.
    I'm eager to see more of your content in the future.

  • @anonymoustechnopath1138
    @anonymoustechnopath1138 Před 2 měsíci +7

    Thanks a lot Santiago!!
    Really needed these videos for LLMs.
    Keep them coming!

  • @berkbatuhangurhan708
    @berkbatuhangurhan708 Před 2 měsíci +7

    Came from X, this is an amazing and very detailed walk through. Thanks for explaining even the tiniest bits of everything. Highly recommend this.

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

    This is an amazing video. Literally answered all the questions I had on building a RAG and it was really useful to see the comparison between GPT, Llama, and Mixtral

  • @QuentinFennessy
    @QuentinFennessy Před 2 měsíci +2

    This is an excellent walk through - easy to follow and very practical

  • @lokeshsharma4177
    @lokeshsharma4177 Před 24 dny

    This is the BEST video ever made comparing all the LLMs performing same task. God Bless You

  • @liuyan8066
    @liuyan8066 Před 2 měsíci +1

    I like this fundamental courses, especially the last RAG one, I followed other training to build AI products, some teaching is over 10 hours. After i finished, I still didn't fully understand why I coded like that. Now these courses can make the connection step by step. Thank you.

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

    This is really Helpful. Specially the explainations behind why do it. Keep up the good work. Respect to you man.

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

    This was just Amazing, You are a Star. Thanks for all the effort.

  • @swatantrasohni5235
    @swatantrasohni5235 Před 2 měsíci +1

    Thanks Santiago for wonderful video..running LLM locally is something very handy for variety of task..Eventually everyone will have their own LLM running locally in device..thats the future..

  • @sushanths.l4865
    @sushanths.l4865 Před 2 měsíci +5

    This is the great video santiago I really learned a lot

  • @bhusanchettri8594
    @bhusanchettri8594 Před 2 měsíci +1

    Great piece of work. Well explained!

  • @asifm3520
    @asifm3520 Před 24 dny

    That was a really clear explanation. Even novices will have no trouble following along.

  • @junaidali1853
    @junaidali1853 Před 2 měsíci

    Lovely. Super useful video. I’ll be building a RAG system with a Vector Database and langchain for my freelance client for around $2,000 or more. Thanks Santiago for helping make my life better.

  • @sumitrana8114
    @sumitrana8114 Před 2 měsíci

    Thank you for leaving your job and starting your channel.

  • @SuhasKM-tl1rg
    @SuhasKM-tl1rg Před 2 měsíci

    I love your content. More of this in my feed please!

  • @dannysuarez6265
    @dannysuarez6265 Před 7 dny

    What a great presentation! Thank you so much, sir!

  • @koko9712
    @koko9712 Před 2 měsíci +1

    Nice video Santiago ! Keep up the good work

  • @RameshBaburbabu
    @RameshBaburbabu Před 2 měsíci

    Wow gr8 video, I am able walk with you and finished till the end. "Batch" is gr8 . Thanks please post more videos .. 🙏🙏

  • @adinathdesai6880
    @adinathdesai6880 Před 22 dny

    Amazing Video. You added great value to our knowledge. Thank you so much.

  • @fredericv3497
    @fredericv3497 Před 16 dny

    Really good job and clear tutorial ! Thank you

  • @alextiger548
    @alextiger548 Před 15 dny

    Ma, thanks for what you are doing! Fantastic stuff.

  • @chanukyapekala
    @chanukyapekala Před 2 měsíci

    excellent work! so clear and concise..

  • @ThamBui-ll7qc
    @ThamBui-ll7qc Před měsícem +1

    Great video, I would love to see how to properly structure the prompt and make the bot remember context as conversation goes on...

  • @toddroloff93
    @toddroloff93 Před dnem

    Nicely done. Always learn something from your video's. Looking forward to more content. Thanks for doing them.

  • @alexstele5315
    @alexstele5315 Před 2 měsíci

    Thanks a bunch! 🎉 I've been looking for something like that.

  • @square007tube
    @square007tube Před 23 dny

    Many Thanks for this video. I walked through the video, I was able to install Ollama3 on my machine, but I have nvidia GPU MX250, which is taking long time to answer the questions. it take 7 mins to answer two questions. I will watch your playlist of LLM.

  • @epicfootball007
    @epicfootball007 Před 2 měsíci

    you are by far the best teacher on youtube regarding ML/AI. please consider launching a course on generative AI.

  • @kergee
    @kergee Před 21 dnem

    The lesson was very good, thanks

  • @seanb9949
    @seanb9949 Před 2 měsíci

    Another great video Santiago! I really look forward to seeing more of these. Heck, I'll watch the ads to make sure you get some $$$ 🙏

  • @TheMunishk
    @TheMunishk Před 2 měsíci

    Congrats and well done for producing this useful content. Exactly what I was looking to kick start my langchain journey with the models. Let me practice this but I was also looking for how to integrate all this in the front end. Do you have a video of which tools to build a front end for the prompt that will interact with the backend LLMs?

  • @user-dg9by2ju2y
    @user-dg9by2ju2y Před 2 měsíci

    Very informative video, Santiago!

  • @fintech1378
    @fintech1378 Před 2 měsíci +2

    is searching via embedding always better compared to 'traditional' search aka very long context window? where should we use one or the other..how bout if we wanna build multimodal video recommendation system

  • @MarkoKhomytsya
    @MarkoKhomytsya Před 2 měsíci +1

    Thank you for the video!
    I found it particularly intriguing to consider the possibility of obtaining more accurate responses from the PDF using the Llama2 model. Given that local Language Models (LMs) tend to be highly sensitive to how queries are formatted, I believe it's crucial to refine your example further. Here are a couple of suggestions:
    1) Instead of relying on a basic parser, it would be beneficial to prepare a set of predefined questions and answers. For instance, a question like "How much does the course cost?" could have a straightforward answer like "$400."
    2) It's also important to determine the optimal format for prompts, specifically tailored for models like Mistral.
    By addressing these points, you could develop a truly functional product that delivers accurate responses. As it stands, most examples seem to demonstrate that local models struggle with practical applications and aren't quite ready for real-world deployment.

    • @underfitted
      @underfitted  Před 2 měsíci

      Great suggestions!

    • @mehmetbakideniz
      @mehmetbakideniz Před 2 měsíci +1

      hi. prompt engineering would definetely solve the problem of verbose answers but do you think it would also correct hallucinations as seen in the video?

    • @MarkoKhomytsya
      @MarkoKhomytsya Před 2 měsíci

      good question @@mehmetbakideniz ! I would like to know answer too!

  • @mehmetbakideniz
    @mehmetbakideniz Před 2 měsíci +1

    this was super helpfull. I noticed that using m2 pro some cells took 16 seconds in my laptop while it just took 0.5 second in your computer. then you said you are using m3gpu. How can I make sure that I am using gpu instead of cpu in executing this code? or does langchain already utilize gpu when needed?

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

    dude, its awesome! do not stop pls

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

    Great video! incredibly helpful!!!

  • @samcavalera9489
    @samcavalera9489 Před 2 měsíci

    Thanks Santiago! I am a student of your ML School course and I haven taken your course in two different cohorts. You ML School course is definitely the best of its kind in the market. Can you please design a new course on RAG that covers everything about this awesome technology including evaluation techniques and deployment? That will be wonderful and I cannot wait to enrol in your RAG (and any other AI) course!

  • @tipiapagupo
    @tipiapagupo Před 6 dny

    Amazing video! Are you still planning to make the video on how to communicate with websites? I'm really curious about the technologies you consider most relevant.

  • @fatiga2426
    @fatiga2426 Před 21 dnem

    Santiago, muy buen video!
    Una pregunta, por que usas un parser para obtener el output del modelo como string? Por que mejor no obtener el content directamente?
    Saludos

  • @Sam-oi3hw
    @Sam-oi3hw Před 4 dny

    Thank you very much for your explication !!!

  • @nevildev
    @nevildev Před 2 měsíci

    Thx! Very straightforward

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

    Thanks for the video.....
    Well Explained....!

  • @noa2427
    @noa2427 Před 2 měsíci +3

    I am running in to vector store problem saying import error docarray which i installed. I tried many ways i tried many vertions of docarray and DocArrayInMemorySearch any helpfull thanks

  • @azharsham
    @azharsham Před 5 dny

    Brilliant video! but one quick question , are you passing the same string to both question and context here ? If yes does it always work in case of document reader

  •  Před 2 měsíci

    Love your video ! Thanks !

  • @researchpaper7440
    @researchpaper7440 Před 2 měsíci +1

    Looking for these videos, next i am looking a model to train on SQL data

  • @joeldartez829
    @joeldartez829 Před 2 měsíci

    Truly, you're the best. I've never met someone who explains things so well.
    I apologize if it is written somewhere and I missed it, but I wanted to ask if I buy your course today, can I have access to the past content today? I don't want to wait until the live sessions in April (or I want to arrive prepared for them). Thank you very much.

    • @underfitted
      @underfitted  Před 2 měsíci +1

      Yes, you get immediate access to everything from day 1.

  • @peacefullmusic8374
    @peacefullmusic8374 Před 17 dny

    best tutorial for start

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

    This video is awesome so so great!!! Thank you so much for such a quality video.
    Question: what’s the best way to improve the results being accurate to the document, can using structured data such as spreadsheets and CSV files give you a more accurate answer and maybe the model prefers interacting with them?
    Also, if there was more instances of the data, say multiple different documents, containing the same information that needs to reference ?
    Anyone who has found the best way to optimize getting correct answers from your retrieval. Please let me know! Thanks

  • @mrskenz1068
    @mrskenz1068 Před 2 měsíci +1

    Thanks for the vidéo. How we can do for scientific PDF that contains a lot of mathematical and chemical formulas.

  • @Jonathan-ru9zl
    @Jonathan-ru9zl Před měsícem

    Great! Can this model and setup serve as an assistant to, lets say, a board design engineer that have thousands of components specs in pdf files?
    To find and analyze the components faster?

  • @sam-uw3gf
    @sam-uw3gf Před 2 měsíci

    good video and your tweets are more informative....✌

  • @researchpaper7440
    @researchpaper7440 Před 2 měsíci

    Amazing channel just a great guy'

  • @nguyenquocviet4287
    @nguyenquocviet4287 Před 2 měsíci

    Dear Santiago,
    I would like to ask you about the evaluation metric?
    Do you know any evaluation metric for evaluating between the generated answers and true answers? (eg. Rouge metric)
    Thank you so much!

  • @malikgaruba4079
    @malikgaruba4079 Před 2 měsíci

    Awesom video. Thanks

  • @MarcosScheeren
    @MarcosScheeren Před 2 měsíci

    Came here from X. Great overview on how to implement an LLM+RAG locally. Any multimodal ones incoming?

  • @andresfelipeestradarodrigu301

    AMAZING BRO, THANKS

  • @TomasTrenor
    @TomasTrenor Před 22 dny

    Amazing video Santiago ! Many thanks . Just tried it with Llama3 8b and, as it seems , is not so accurate as Llama2 ( what does not make sense obviously). I need to deep into it

  • @lindavid1975
    @lindavid1975 Před 6 dny

    Thank you Santiago - sorry about the code red.

  • @user-pb8qi4ht4h
    @user-pb8qi4ht4h Před 19 dny

    Sir how can i do this project using java or spring boot

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

    Thanks

  • @Hizar_127
    @Hizar_127 Před 19 dny

    i want to deploy it on cloud. does it is possible?

  • @KumR
    @KumR Před 2 dny

    Can u also pl add an UI using streamlit

  • @mehmetbakideniz
    @mehmetbakideniz Před 2 měsíci

    Thanks!

    • @underfitted
      @underfitted  Před 2 měsíci

      Thank you so much! Really appreciate you!

  • @basantsingh6404
    @basantsingh6404 Před 2 měsíci

    if you are using open_ai key, it means you are paying to use the open ai model. how is it open source ?

  • @user-uu1ko7oi8z
    @user-uu1ko7oi8z Před 6 dny

    Can I use LLama 3 models with your tutorial?

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

    kindly create another video in which you use Pinecone and also give a GUI making it a complete standalone application

    • @serhiua
      @serhiua Před 19 dny

      Pinecode already explained here czcams.com/video/BrsocJb-fAo/video.html&ab_channel=Underfitted

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

    This video is supposed to have a link to ANOTHER "from scratch" video as a popup - but WHEN that link pops up, I think it's ACTUALLY a link within this video pointing in a circular loop BACK TO THIS VIDEO, instead of the "pointing elsewhere" link to the other video it's supposed to be. (This video has a link to itself, if I didn't get MY wires crossed.)

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

      I don’t think that’s possible? Anyway, you’ll find the other video here: czcams.com/video/BrsocJb-fAo/video.htmlsi=BVJfS_0Iq9lwRX0B

  • @theDrewDag
    @theDrewDag Před 2 měsíci +5

    Is it actually true that you need models to be aligned with their respective embeddings? I don't think so 🤔 Embeddings are used only for the vector search and lookup functionality. At the end of the day all the model is seeing is your textual prompt. You can use OpenAI embeddings with any open source models and viceversa.

    • @underfitted
      @underfitted  Před 2 měsíci +7

      You are right. In this example I only use the embeddings for the search, so what I said is irrelevant here.

  • @user-rj1eu6kp3u
    @user-rj1eu6kp3u Před 2 měsíci

    has anybody used ollamaembedding and got it working?

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

    kindly convert the same project into a GUI based application

  • @mohamadhasanzeinali3674

    good video, but i see a lot of Ads.

  • @Sam-oi3hw
    @Sam-oi3hw Před 4 dny

    Does anyone know of similar videos on CZcams? I'd really appreciate it.

  • @samcavalera9489
    @samcavalera9489 Před 2 měsíci

    Many thanks Santiago!
    Before watching this video, I was mainly using the series of tests from this video for my rag applications:
    czcams.com/video/nze2ZFj7FCk/video.htmlsi=-69PI_cJqJn4SgVf
    Now, my life is much simpler than ever 😂
    Thanks hero 🙏

  • @serhiua
    @serhiua Před 19 dny

    Thank you again for the wonderful explanations; they are works of art!
    This was a very good logical continuation of czcams.com/video/BrsocJb-fAo/video.html.

  • @fredericv3497
    @fredericv3497 Před 16 dny

    Merci !

  • @RameshBaburbabu
    @RameshBaburbabu Před 2 měsíci

    Thanks Santiago, for wonderful videos !! , I am still pending to do step by step instructions shown in czcams.com/video/BrsocJb-fAo/video.html . wonderful explanation. Thanks , it keep coming and helping us to follow and gain some knowledge..

  • @UditAgarwalBME
    @UditAgarwalBME Před 17 dny

    langchain_community is not working, unable to import it.

    • @UditAgarwalBME
      @UditAgarwalBME Před 17 dny

      worked after pip install langchain-community, thanks