LangChain Tutorial (Python) #6: Self-Reasoning Agents with Tools

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

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

  • @leonvanzyl
    @leonvanzyl  8 месяцев назад +6

    Let me know how you plan on using agents in your projects 😎

  • @ahassan7270
    @ahassan7270 8 месяцев назад +5

    Do you Know that you have a WONDERFUL style in communicating the information?. You are Superman. You make difficult things very easy to understand.Thank you so much for your effrost and sgaring such valuble presenation.👏👏

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

      Thank you for the supportive message. Glad I could help

  • @healthyengineerhub
    @healthyengineerhub 7 месяцев назад +1

    Super useful tutorial. I am a recent subscriber and have been learning a lot from you.
    Quick question, about agents. Did you ever get an error that max context length exceeded. I am getting that with the agent 🤔

    • @leonvanzyl
      @leonvanzyl  7 месяцев назад +1

      Thank you.
      That means that your prompt is too big based on the model you're using.
      You have a few options. First, ensure you're not passing in a massive prompt. If you're fetching data from a document, ensure that you split it into smaller chunks.
      You could try to increase the max token size on the model.
      Or select a model with a larger context length (worst case).

  • @jofjofjof
    @jofjofjof Месяц назад

    Hi Leon, Thanks for this wonderful videos. Is there a way to create a tools in Flowise as a Function call to SSH or SNMP to a certain device? Then LLM interpret the result based on the document in the Vector Store? I have create a Python code that can SSH to a device, but I don't know how I can integrate it to Flowise. Can you help create a video about SSH or SNMP to a device please? . 🙂God bless you my friend.

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

    One question at 2:50 of the video, "from langchain.agents import create_openai_functions_agent, ...", is there any equivalent function of "create_openai_functions_agent" for groq?

  • @HyperUpscale
    @HyperUpscale 8 месяцев назад +1

    This is an amazing video - super useful!
    Is it possible to add few seconds only (maybe to the next video) to explain what we need to do if we are using ollama, instead of OpenAI?

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

      It'll take a bit longer than a few seconds but we will have a look at Open Source models 😁.
      You need to set your expectations though. Working in industry, I've seen companies ditch open source for OpenAI for many reasons. I highly recommend learning OpenAI if you plan to build a business / career out of this.

    • @Cloudways-AI
      @Cloudways-AI 8 месяцев назад

      Excellent comment, trying to convince anyone without any knowhow that there is something better than OpenAI will take a great salesman. Great work@@leonvanzyl

  • @zahramovahedinia1896
    @zahramovahedinia1896 15 дней назад

    I will definitely subscribe to your channel!

  • @kartiksaha5826
    @kartiksaha5826 7 месяцев назад +1

    Please make more videos on other topics of langchain . Your videos are very helpful

    • @leonvanzyl
      @leonvanzyl  7 месяцев назад

      I will, and working on them 😁. Anything specific you would like to see?

  • @683javad
    @683javad Месяц назад

    Can we use historyAwareRetriever here as a tool instead to retriever ?

  • @altonjones5271
    @altonjones5271 8 месяцев назад +2

    Fantastic work again Leon - I got my RAG agent working with Qdrant online vector store. Now to add more tools and see what else we can do!

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

      That's awesome!

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

      Long term I'll build a customer support tool. Based on the issu reported by thr customer, or the request, execute a different tool...can't say more lol

    • @leonvanzyl
      @leonvanzyl  8 месяцев назад +1

      @@Aidev7876 that really is the perfect use case for these AI assistants.

  • @jatiquep5543
    @jatiquep5543 3 месяца назад +1

    This is much more better than even Udemy courses and other paid courses......I could not understand the langchain docs... But it seems I would be able to call myself an AI developer now ❤❤❤

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

      Amazing comment, thank you!!

  • @CharlesFinneyAdventure
    @CharlesFinneyAdventure 8 месяцев назад +2

    you have the best courses on RUclips so Grateful

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

      Thank you Charles 🙏

  • @beemerrox
    @beemerrox 2 месяца назад +1

    I have to agree with other ppl here, your choice of materials and the format you deliver is the best 👍

  • @junkitchong5632
    @junkitchong5632 7 месяцев назад +1

    Best tutorial by far in RUclips. Informative yet precise. Thanks!

  • @WayneBruton-n9j
    @WayneBruton-n9j 8 месяцев назад +1

    Great series Leon, thoroughly enjoying it.

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

      You're welcome 🤗

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

    the github repository is empty, please update

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

      Dis you select the relevant branch?

  • @fengshi9462
    @fengshi9462 6 месяцев назад

    Excellent work! I just wanna to further improve this case. if the tools chosen cannot provide the needed answer, then the supervisor will turn to another tool for help. i think this maybe more useful.

  • @ramp2011
    @ramp2011 7 месяцев назад

    The github link you shared does not have code you shared in the video. Could you please upload the code you shared in the code in github so we can follow along? Thank you

    • @leonvanzyl
      @leonvanzyl  7 месяцев назад

      Hi there. Just double checked. The code is definitely there.
      Did you remember to change the branch to lesson 6?

    • @ramp2011
      @ramp2011 7 месяцев назад

      @@leonvanzyl I see it. I missed that. Thank you so much

  • @jcneto25
    @jcneto25 7 месяцев назад

    In the first lessons, I made an app to scrape the news section of a federal agency. Based on the news list, I tried to submit a pre-defined question (if some target subject is on the news list), but the result was disappointing (even with several prompt options). Now, using an agent with Tavily search, the accuracy of the results has gotten much better. Thank you once more for sharing!

    • @leonvanzyl
      @leonvanzyl  7 месяцев назад

      It's possible that you didn't scrape all the pages that you needed perhaps, or your chunk size was too small.
      Tavily is simply doing an online search, as aposed to scraping.
      Glad you found a solution that works for you though 👍.

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

    amazing video leon, when are u using Streamlit as UI for better output view ?

    • @leonvanzyl
      @leonvanzyl  8 месяцев назад +3

      Haha, you know me too well.
      I was planning to create web interfaces as the next video in the JS and Python series.

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

    You are so amazing. Will you show sql database chat updated version for conversational retrieval chain ?

    • @leonvanzyl
      @leonvanzyl  8 месяцев назад +1

      Thank you 🙏.
      Yes, I'll definitely cover SQL Retrieval soon.

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

      @@leonvanzyl Hello, I sent you an email to get help, I wonder if you have a chance to read it in detail :) I also wrote to the site, I can make a chatbot for you to the part you said

    • @eneso8657
      @eneso8657 7 месяцев назад

      Hi leon, I want help from you on an important issue, I sent a message, but you didn't see it, I think because of the intensity, I'm sending exactly the same message, I'd be very glad if you'd return my message .I have an educational chatbot project that perfectly examines pdf, text,url and excel files(because the tabular information in the url may not be taken into account, I want it to review large files in high quality) I want it to respond in quality according to the information there and the gpt3.5 turbo 1106 model, I use langchain at this time, I also connect my database to this bot and the relational information in the database(mssql) along with the files is also analyzed correctly and provided in a high-quality way with the information in the files and create a q&a chat advanced chatbot i want to do all the files and I want the database to be examined and I want it to give the correct answer properly. I also want to customize the behavior as I want by entering instruction into my code. Please help me for the fee ?

  • @kannamor1706
    @kannamor1706 6 месяцев назад

    Thank you! Awesome videos here!

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

    Great video, thank you!
    short note: at 10:45 it should be
    vectorStore = FAISS.from_documents(splitDocs, embedding=embedding)