Build Your Own Auto-GPT Apps with LangChain (Python Tutorial)

Поделиться
HTML-код
  • Опубликовано: 1 июн 2024
  • 👉🏻 Kick-start your freelance career in data: www.datalumina.io/data-freela...
    This video is an introduction to the Python LangChain library. LangChain is a framework for developing applications powered by language models like OpenAI's GPT-3.5 and GPT-4. I will go over all the modules, provide examples, explain the quick start guide, and then show a demo of an intelligent assistant that can answer questions about any specific RUclips video. You can use LangChain to build your own intelligent systems, similar to Auto-GPT and BabyAGI. I believe there is an amazing opportunity right now for data scientists and AI engineers to become a front-runner using these tools.
    🔗 Links
    github.com/daveebbelaar/langc...
    python.langchain.com/
    ⚙️ Copy my VS Code Setup
    • How to Set up VS Code ...
    ⏱️ Timestamps
    00:00 Introduction
    00:26 What is LangChain
    01:19 Job opportunities
    02:55 LangChain's Modules
    03:47 Models
    05:37 Prompts
    06:43 Memory
    08:21 Indexes
    08:58 Chains
    11:06 Agents
    14:32 Use Case: RUclips Video Assistant
    27:45 Why I am all in on this
    28:15 What is Data Freelancer?
    👋🏻 About Me
    Hey there, my name is @daveebbelaar and I work as a freelance data scientist and coach. You've stumbled upon my RUclips channel, where I give away all my secrets when it comes to working with data. I'm not here to sell you any data course - everything you need is right here on RUclips. Making videos is my passion, and I've been doing it for 18 years. I just genuinely enjoy helping people.
    While I don't sell any data courses, I do offer a coaching program for data professionals looking to start their own freelance business. If that sounds like you, head over to www.datalumina.io/ to learn more about working with me and kick-starting your freelance career.
  • НаукаНаука

Комментарии • 213

  • @daveebbelaar
    @daveebbelaar  Год назад +32

    What are you going to build with this? 🤑

    • @infinityshort3988
      @infinityshort3988 Год назад +1

      can i add this to my website

    • @daveebbelaar
      @daveebbelaar  Год назад +10

      @@infinityshort3988 Yes, you'll need to set up a server-side application to handle the function execution and use JavaScript to communicate between the front-end (HTML and JavaScript) and the back-end (Python). You can use Flask or Django for this.

    • @john_says_hi
      @john_says_hi Год назад

      the perfect servant? I feel you excitement. What a cool future and a little scary.

    • @adriengorrell5169
      @adriengorrell5169 Год назад +1

      Not telling you !! Hahaha

    • @greendsnow
      @greendsnow Год назад +1

      Can you please do the same thing with an excel file? splitting dataFrames into 1000 token pieces didn't seem to make sense to me, there's a continueation of data, I might break it if I split it.

  • @bwilliams060
    @bwilliams060 Год назад +31

    This is an excellent video. I’ve been deep diving into LangChain for about a month and this summarised pretty much the extent of what I’ve learnt in 30 mins. Brilliant! Looking forward to watching many more LangChain vids from you Dave. Cheers!

  • @dmartin6577
    @dmartin6577 Год назад

    I can feel the doors of understanding unlocking with your great explanation mate! I’m gonna add this video to my assistant’s db so I can always use this awesome resource. Keep it up! I want to see a lot more from you!

  • @user-ps3jj1ey5k
    @user-ps3jj1ey5k 9 месяцев назад +2

    This is THE best LangChain tutorial on RUclips

  • @MaverickReynolds
    @MaverickReynolds Год назад +3

    Man I love this video! Followed along with it this afternoon and everything worked well. Sometimes stuff just doesn't work from some video tutorials but this one really made me feel like the time I spent was worth it! Having a working 'applet' at the end! Thanks so much

  • @Deco354
    @Deco354 Год назад +3

    Great tutorial, thanks for this.
    For any python noobs who get stuck like I did with the dependencies not being found within the downloadable langchain-experiments example. Be sure to open the entire folder and not just the python file within VSCode otherwise the environment you setup won't be used.

  • @PeterDrewSEO
    @PeterDrewSEO Год назад +25

    Dude, you are killing it with these videos. Such clear instruction, so helpful Thank you. Got so many script ideas running around my head :)

    • @daveebbelaar
      @daveebbelaar  Год назад +2

      Thanks man, really appreciate the kind words! My head is also exploding with ideas haha!

    • @nathanduncan9396
      @nathanduncan9396 Год назад +1

      @@daveebbelaar I agree these are incredible, I'm very grateful that you are sharing these

  • @davediamond
    @davediamond 9 месяцев назад

    This has been extremely helpful. As a total noob coder you've made it so easily to understand.
    Thank you so much!

  • @johnpaul4301
    @johnpaul4301 Год назад

    Great video! Just started working as a developer and got assigned a task that uses langchain. This is very helpful

  • @WillSteffen1
    @WillSteffen1 Год назад +1

    Killer demo, straight to the point and left me with a really clear idea of how to start implementing in projects. This stuff is turning low code hackers like me into Harry Prompters 😅

  • @mysticaltech
    @mysticaltech Год назад

    Dave, amazing video! You are good at this man. Thank you!

  • @winsonsou
    @winsonsou Год назад

    Dude you're a rockstar. awesome quality video! Thank you !

  • @kevon217
    @kevon217 Год назад

    This was an absolutely illuminating demo. Thanks so much!

  • @calebiua
    @calebiua Год назад

    So far the best video i've seen of Langchain. Thx a lot for investing your time on promulgate valuable knowledge for everyone 🙌

  • @mushroomthump
    @mushroomthump Год назад

    Legendary video my guy. I feel like this came to me at the perfect time. Thank you!

  • @yameen3448
    @yameen3448 Год назад

    I'm a python dev. And this is really interesting! Would definitely be using this!

  • @user-jh9ho6os9u
    @user-jh9ho6os9u 11 месяцев назад

    Very good summary and explanation, thank you!

  • @patrickwhite9902
    @patrickwhite9902 Год назад +4

    This is the first youtube vid that I've seen that talks about embeddings with LangChain. This for me is an lightbulb moment as the small context window is the major limitation for ChatGPT atm. Giving it the ability to take new source data and chunk it to referenceable bites feels like a work-around for the context window limitation, but it's an awesome work-around nonetheless. Good stuff!

    • @daveebbelaar
      @daveebbelaar  Год назад

      Thanks Patrick! That really opened my eyes as well. Until LLM APIs allow more tokens, this is the way to go.

    • @thirdpartycookie
      @thirdpartycookie Год назад

      2 weeks later: Claude enables 100k tokens

  • @gregcharles92
    @gregcharles92 Год назад

    This is awesome, thanks Dave!

  • @matten_zero
    @matten_zero 10 месяцев назад

    The best explained Lang Chain video!

  • @jasonvanwyngaard4387
    @jasonvanwyngaard4387 Год назад

    Thank you for this, exactly what I was looking for to optimise my helpdesk so that customers can find answers faster.

  • @ArifSoylu
    @ArifSoylu Год назад

    Finally a video that mentiones the technical details and capabilities, not AI-influence hype!

  • @user-do2wd8hg6v
    @user-do2wd8hg6v 11 месяцев назад

    Wonderful content... Good to get started. Best thing was that you decided to put this out in public. Thanks a lot🙏😃.

  • @rodrigoorellana9799
    @rodrigoorellana9799 Год назад

    Thank you so much Dave, I just subscribed, this info is amazing.

  • @kushagrgoyal9614
    @kushagrgoyal9614 Год назад +1

    glad to see ur video on langchain!! awesome work as usual!

  • @TT-tg9yj
    @TT-tg9yj Год назад

    Thanks for very clear and concise video!

  • @rashadulislamsumon9815
    @rashadulislamsumon9815 Год назад

    You tutorial was rally awsome I was looking long time like this tutorial . Thank you sir !

  • @sethhavens1574
    @sethhavens1574 11 месяцев назад

    excellent exposition of langchain, super helpful thanks for sharing and looking forward to more 👍

  • @gkennedy_aiforsocialbenefit
    @gkennedy_aiforsocialbenefit Год назад

    Awesome sauce. Thanks Dave!

  • @treystonc
    @treystonc Год назад

    Thanks for the video, such a good lesson for beginners! :)

  • @TheCouncellor7
    @TheCouncellor7 Год назад

    Excellent and detailed Video Dave, thank you for sharing, much appreciated👍🙏

  • @dentonhess5810
    @dentonhess5810 Год назад

    Eye opening content. TY Dave.

  • @DJPapzin
    @DJPapzin Год назад

    Amazing, thank you for sharing your knowledge

  • @DI3GOskill
    @DI3GOskill Год назад

    Lekker bezig man!!!, thanks for sharing 👏

  • @stevelongdong5521
    @stevelongdong5521 Год назад

    Great video! Thanks for sharing!

  • @Grantrude
    @Grantrude Год назад

    Thank you for sharing. Extremely interesting.

  • @KlausSzyska
    @KlausSzyska 9 месяцев назад

    your video is superb and well beyond the usual LangChain chitchat video. Keep up the good work and start expanding your company...

  • @caioghp
    @caioghp Год назад

    Great video! Even a lawyer can understand it. Thanks!

  • @kylarosborne698
    @kylarosborne698 Год назад +2

    Hey Dave, I really love this video. I had heard about langchain, but with so many new things popping up I didn’t give it a lot of attention until now.
    In terms of things to build with this, I’d like to use all of my past long form journal entries to create a virtual representation of myself.
    I’m on Upwork, but my domain of expertise is embedded systems. I have a little experience with data science, but not enough to easily market myself in that way.
    Anyway, thanks for sharing this info about langchain! Looking forward to more videos

    • @kylarosborne698
      @kylarosborne698 Год назад

      I used a text file of a few months of journal entries, and I find it has a problem.
      The response seems to just be based on a narrow view. As if it only takes in one of the journal entries and then can only talk about that one. It makes general questions like "what are some highlights of your travels" very bad.
      Is there a way to make the context more broad? @daveebbelaar

  • @QuangNguyenJI
    @QuangNguyenJI Год назад +1

    So Exciting 🔥 🔥

  • @lfmtube
    @lfmtube Год назад

    An excellent channel and your videos are truly great. Thanks! I've been exploring langchain for a few days. I see that it can be an alternative to give my application architecture's the concept of pipes that I need, but I just realized that doesn't integrate natively with SpaCy, so I'm looking to see if I can make the integration using Agents to connect SpaCy with the transformer models in a clean and maintainable way.

  • @iftrejom
    @iftrejom Год назад

    This information is worth tons of gold... Thank you a lot!

  • @tradingwithwill7214
    @tradingwithwill7214 Год назад +2

    Amazing video . one concern i have for startup idea would be the API costs to let people access it publicly

  • @vmartme
    @vmartme 9 месяцев назад

    Wow! Thank you :)

  • @alvinpinoy
    @alvinpinoy Год назад +1

    Nice and helpful vid! The ecosystem of LangChain really feels like the missing toolset for developers to connect anything you want with those LLM's all popping up. It also really helps to build businesses not only relaying on a single LLM which might be quite risky imo.

  • @roberthuff3122
    @roberthuff3122 Год назад

    Excellent! Subscribed.

  • @lorenzomijorus
    @lorenzomijorus Год назад

    thanks a lot! awesome video

  • @md.saifulislamtanim
    @md.saifulislamtanim 11 месяцев назад

    Wow, this video really Informative, Looking forward to more content about this!

  • @lucianopacheco2008
    @lucianopacheco2008 Год назад +1

    Your videos are awesome. I was able to build a flutter app to work with a python backend running in replit, using fastapi to serve API endpoints. In my app, I can upload a PDF file and chat with it using an agent with memory. It works fine. However, I need to allow multiple users, each one to have its own agent with its own memory. I have no idea how to acomplish this. What path would you recommend?

  • @imanonymus5745
    @imanonymus5745 Год назад

    Hey Dave it's request to you that pls make more videos like this... I have some Questions
    1) How can we make it interact with basically anything on our computer screen(Cause there are a lot of work that should be automated most of them do not even have API and can we use chrome extensions cause they are really helpfull)
    2) How can i use my finetuned model as a model.

  • @patrickwalchshofer4004
    @patrickwalchshofer4004 Год назад

    HI Dave! Thank you for your very detailed explanations. I watched also your video about auto-GPT. I am just wondering how could I use all Plugins with your langchain-experiment repo?

  • @bw8450
    @bw8450 Год назад

    I never comment under videos but this was just great. Goed gewerkt pik.

  • @pythonforbeginnersnow
    @pythonforbeginnersnow Год назад

    awesome video!

  • @romasiladiy2164
    @romasiladiy2164 Год назад

    Sounds very promising! What companies are usually interested in this type of stuff? I mean the use case is interesting but not sure how to use it in a commercial way...

  • @DRUMtheG
    @DRUMtheG 11 месяцев назад

    I am completely new to coding but, even I feel like I can replicate this thanks to your amazing explanation.

    • @daveebbelaar
      @daveebbelaar  11 месяцев назад

      That's awesome, thanks!! Good luck with your coding journey 💪🏻

  • @viresearch3897
    @viresearch3897 Год назад

    Mind Blown!

  • @goonie79
    @goonie79 Год назад +1

    This is a great video, it was very inspiring. I just get worried about cost controls when I see that it can connect with all of those external APIs. I'm assuming there's free tier usage, but that's one thing I'd be concerned about when it comes to small businesses and their budgets if API calls get out of control. Great video either way. I'll just have to figure out how to put in API call controls.

    • @daveebbelaar
      @daveebbelaar  Год назад +1

      Thanks! You can set spending limit or call limits on most APIs

  • @simonraj
    @simonraj Год назад +1

    Very clear tutorial. How do you do it with text documents instead of transcripts from RUclips. 1. Read the text from a text file 2. Carries out the document splitting. 3. Get a query from user . 4) writes the response to another text file. Do let me know if you with to collab on this.

    • @mattzucca4102
      @mattzucca4102 Год назад

      Use the Directory Loader documentation. It's the same

  • @DemoGPT
    @DemoGPT 10 месяцев назад

    This is great video, thanks for your effort. Do you plan to make a video about DemoGPT?

  • @emanuelm2399
    @emanuelm2399 Год назад

    AMAZING!!

  • @archiee1337
    @archiee1337 10 месяцев назад

    Excellent

  • @DocuFlow
    @DocuFlow Год назад

    Is this the best way though? What if I want to, for example, build a C# or nodejs application to do something similar with my company data. Would I use langchain or build the logic into my app? Serious question.

  • @haiderkhalilpk
    @haiderkhalilpk Год назад

    Great video

  • @MrKferi
    @MrKferi Год назад +1

    The multiplication in 14:02 (year of python creation * 3) is wrong. Is llangchain able to call multiple tools in a single prompt? After the wikipedia info it should have called llm-math.
    Awesome vid btw!

  • @ZackHughes
    @ZackHughes Год назад

    Thanks for this

  • @Novainvent
    @Novainvent Год назад

    Super!!

  • @cocccinelle1
    @cocccinelle1 Год назад

    Thanks for the video. It is inspiring. When using a Loader like Confluence can this be done without sending my private content to openai?

  • @felipesilvatech
    @felipesilvatech Год назад

    You should definitely create a udemy course on this subject. I would definitely buy.

  • @vladkuz6974
    @vladkuz6974 Год назад

    Thank you for sharing this, this is amazing! I hope I'm not too late to the LLM party 😂😂😂

  • @rishabpoddar3866
    @rishabpoddar3866 Год назад

    When trying to ceate a database why does it show you are out of tokens; after running the video url when I am running the db command the error pops up

  • @topvladis
    @topvladis Год назад +15

    Great vid! A funny thing though: in the python year *3 example, the model didn't use the llm-math, and hallucinated the calculation (5783 instead of 1991*3=5973). 👻👻

    • @christian-schubert
      @christian-schubert 11 месяцев назад +3

      THAT'S a VERY important issue though!
      Just imagine you want to create an A.I. that assists lawyers, feeding it legal documentation. Now, in THAT case, you want to make ABSOLUTELY sure that the model ONLY comes up with replies it finds in your docs and will ALWAYS 100% return "I don't know" when it can't connect the dots with the material it's been provided.
      Also, you might not only want to get an overview, you're most probably interested in retrieving ALL necessary information on a given topic.
      Sadly, this is never really discussed - I'd be REALLY grateful if anyone could point me to a video where those issues are actually addressed.

  • @gabe5446
    @gabe5446 Год назад +3

    Great video, really clearly laid out! As somebody new to web development. Could you explain how I could take this python code and then build it into a web app? Any tips on what to focus on learning or really good web dev tools to pair with lang chain? My goal is to be able to build something like this and then quickly make it accessible online. I have one idea in particular in somewhat of a niche

    • @daveebbelaar
      @daveebbelaar  Год назад +2

      I have future video's planned for that, so stayed tuned!

    • @gabe5446
      @gabe5446 Год назад +1

      @@daveebbelaar awesome can’t wait, love the content!

    • @ColeJunc
      @ColeJunc Год назад

      @@daveebbelaarwaiting on this! I am currently in the stage of introducing AI to my web app and would love your guidance

  • @Krafter37
    @Krafter37 10 месяцев назад

    Would it be possible to take an example like that and do a full tuto from the python script to a web app plz ? :) Can't find this on internet if someone have resources for this I'm interested.
    Very interesting video btw

  • @AMoktar
    @AMoktar 3 месяца назад

    Thanks bro for this video. I'm new to all llm , I don't know where to start. I just can write python . Any advice?

  • @ziga1998
    @ziga1998 Год назад

    Is it possible for a model to have existing knowledge of like gpt-3.5-turbo and also add those videos or files knowledge? Because when I do this, my davicnhi model loses every knowledge and than it knows only knowledge about file or video provided.. haha

  • @bandui4021
    @bandui4021 Год назад

    One thing is for sure. If you are making an AI/langchain course I am on it!!!

  • @saisrinivasabotta674
    @saisrinivasabotta674 Год назад +1

    Hi Dave, this is good video, how secure is the data that we input to GPT indexes ? Is there any option to restrict the data usage and access ?

    • @digitald74
      @digitald74 Год назад +1

      keep in mind that everything you sent to openai will be processed by there servers (usa)… you can use azure open ai to be gdpr compliant in europe… if you are using a chroma db you can store ur data on your server.. keep in mind that you should better not use any internet database. especially in the us while you are processing critical data

    • @daveebbelaar
      @daveebbelaar  Год назад

      @@digitald74 Great answer, thanks!

  • @ronbridegroom8428
    @ronbridegroom8428 Год назад

    Is there a way of getting the time code with the transcript? That way a search could be done for the video segments when a particular subject was discussed.

    • @daveebbelaar
      @daveebbelaar  Год назад

      That is possible with Whisper 👌🏻

  • @consejosdeaprendiz2x232
    @consejosdeaprendiz2x232 Год назад

    Amazing video, i have a newbe question, i´m learning python and i wanted to ask you how you configure visual studio code to show you the right window, do you have a video teaching that? Thank you very much.

    • @daveebbelaar
      @daveebbelaar  Год назад

      Thanks, this video should help: ruclips.net/video/zulGMYg0v6U/видео.html

  • @rafaelmartinsdecastro7641
    @rafaelmartinsdecastro7641 10 месяцев назад +1

    After the similarity search, I got kinda lost between the definition of docs_page_content and the injection of {docs} in your "template parameter". I was under the impression that you would have passed docs_page_content instead.

    • @Deco354
      @Deco354 10 месяцев назад

      Did you figure this out? I'm going to try and debug it tomorrow as this baffles me. When I swap docs out for docs_page_content it no longer works too.

  • @Einzry
    @Einzry Год назад

    Cool!

  • @adamgdev
    @adamgdev Год назад

    What type of Mac are you running?? I have a MacBook pro Intel. Been having trouble running code with LLM. Any help or suggestions on this would be really appreciated!!

    • @naturallydope247
      @naturallydope247 Год назад

      I have an intel mac too. What's the specific issue with running the code?

  • @polisettybalaji
    @polisettybalaji 8 месяцев назад

    can i use csv loader and create pivot tables using langchain?

  • @naturallydope247
    @naturallydope247 Год назад +11

    What do you use to display the output on the right?

    • @naturallydope247
      @naturallydope247 Год назад +1

      @masidawoud your link disappeared. Can you message me?

  • @naturallydope247
    @naturallydope247 11 месяцев назад

    This is great. How would I make a web ui for this?

  • @android69_
    @android69_ Год назад +1

    how does he get each line to execute on command? i have to run the entire script. i press shift+enter (on PC) to run a selected line, but it always gives me 'NameError: name 'xyz' is not defined'

    • @daveebbelaar
      @daveebbelaar  Год назад

      Check this out: ruclips.net/video/zulGMYg0v6U/видео.html

  • @digitald74
    @digitald74 Год назад

    what i am missing is someone implementing a custom agent.. like for some kind of api that is not available at the moment

  • @bandui4021
    @bandui4021 Год назад

    At the moment i am stuck to install FAISS (with "pip install faiss" in my conda env. Downgraded python to 3.8.16 as in the vido but still get this error and also could not found another solution.
    ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)
    ERROR: No matching distribution found for faiss.
    Has someone an idea?
    For future videos it would also be nice to see how you created the env. and in which errors you run.

  • @xugefu
    @xugefu 3 месяца назад

    Thanks!

  • @78inn
    @78inn 5 месяцев назад

    Great. Do I need to have an Openai API key? Looking for a free solution please. Thanks

  • @dianaliu7543
    @dianaliu7543 4 месяца назад

    How to handle the query function execution and deploy on AWS?

  • @CitizUnReal
    @CitizUnReal 10 месяцев назад

    is there any chance of langchaining for free by not using the official chatgpt channel but via local lm models provided for the oobabooga webui?

  • @AO-ip9hi
    @AO-ip9hi Год назад

    Great video bro. Where can I find more reading material on this

    • @daveebbelaar
      @daveebbelaar  Год назад

      Thanks! Soon on my channel, but for now, the LangChain docs: python.langchain.com/

  • @sanesanyo
    @sanesanyo Год назад

    What is the difference between Conversation Chain and Open AI Chat End Point? For me, it is effectively the same. I love Langchain but I don't think it works for every use case that I have had. Works fine for simple conversational agents.

    • @daveebbelaar
      @daveebbelaar  Год назад

      I cannot tell you exactly right now. Have to dive deeper into this for that. In general, LangChain is a framework that supports all kinds of models, not just OpenAI's. So, you can also implement, for example, open-source LLMs that don't have a chat end-point.

  • @lucascaetano3171
    @lucascaetano3171 Год назад

    Hey Dave 👋

  • @betterstack
    @betterstack 2 месяца назад

    Great tutorial Dave 🚀If anyone’s looking for more Python tutorials, we’ve released Loguru logging, task scheduling, and more to help the community too 💪

  • @ankitjadhav3344
    @ankitjadhav3344 10 месяцев назад

    Just a question. If you are using OpenAi, what will happen to your data? I mean it's going to be saved on openai server's right ?

    • @daveebbelaar
      @daveebbelaar  10 месяцев назад

      openai.com/api-data-privacy

  • @Chasingaxl
    @Chasingaxl Год назад

    Can you show how to post online with the python code

  • @DikkeKoelie
    @DikkeKoelie Год назад

    how can i let it use my data in database like mongodb?

  • @rahulmahaseth4519
    @rahulmahaseth4519 Год назад +1

    Can you make tutorial on converting this to a website