An Introduction to LLM Agents | From OpenAI Function Calling to LangChain Agents

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • #automation #python #LLM #langchain #chatgpt
    In this video, we’ll go through an introduction on LLM-based agents. We'll start with discussing some intuitions about agents in general and their implementation, covering from Python + API implementations, to OpenAI function calling and LangChain agentic implementations. Then we dive into LangChain as a framework to build interesting agents exploring some core features.
    📚 Chapters:
    00:00: Introduction to the video and the topic of agents.
    00:36: Personal introduction and definition of agents as a combination of thought and action.
    00:51: Tools and three complexity levels of agents.
    01:03: Discussion on the OpenAI's Function API.
    01:38: Defining an agent in simple terms and the decision-making process.
    02:05: Example of the decision-making process applied to attending a live training.
    02:58: Simplistic definition of an agent in the context of LLMs.
    03:20: Introduction to LLMs and their basic function.
    03:51: Example of LLM output and introduction to tools for real-world actions.
    04:19: Discussion on seminal papers on combining LLMs with tools.
    05:02: Python functions as tools for LLMs and system setup.
    05:36: Introduction to the paper "React" and its contributions to agents.
    06:41: Recap of fundamental papers on agents and LLMs.
    07:00: Surge in popularity of LLM-based agents and applications.
    08:04: Popular agent implementations and their features.
    09:14: Discussion on GPT-based agents and their functionalities.
    10:01: Complexity levels in building agents and setting up task executions.
    11:02: Level one of agent implementation using Python functions.
    12:27: Execution of Python functions and the limitations of this approach.
    13:37: Introduction to OpenAI's Function API and its usage.
    14:43: Detailed explanation of setting up and using OpenAI's Function API.
    17:12: Introduction to LangChain as a framework for agents.
    17:52: Cognitive architecture and its relevance to agents.
    18:53: The routing process in agent implementation.
    19:19: LangChain's framework features and core elements.
    20:07: Use of LangChain for common tasks and integrations.
    21:21: Prompt templating and dynamic prompts in LangChain.
    22:25: Output parsing with LangChain and integration with Pantic.
    23:09: LangChain expression language for building application chains.
    24:21: The agent loop and its key components in LangChain.
    25:31: Schema and structured interactions in LangChain.
    26:28: Inputs to the agent and the loop structure.
    27:19: Discussion on the agent loop code and runtime.
    28:15: Tools in LangChain as functions for agents to invoke.
    29:37: LangChain's focus on action and real-world applications.
    30:38: The future of LangChain and its ease of use.
    31:18: LangChain toolkits and integrations for LLMs.
    31:31: References for the presentation and closing remarks.
    🔗 Links:
    - Subscribe!: / @automatalearninglab
    - Join Medium: / membership
    - Tiktok: www.tiktok.com...
    - Twitter: / lucasenkrateia
    - LinkedIn: / lucas-soares-969044167
    Support the Channel!
    - Buy me a cup of coffee: tr.ee/7tYsD-tUu2
    - Paypal: paypal.me/luca...
  • НаукаНаука

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

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

    this video is a goldmine of knowledge, thank you

  • @IPlayWithFire135
    @IPlayWithFire135 6 месяцев назад +1

    I myself am fascinated by everything to do with this topic and I can’t wait to get started with my own projects. Subscribed.

  • @nonycount-je8uf
    @nonycount-je8uf 5 месяцев назад +2

    awesome video. I like the balance of concept explanation and high level code explanations! perfect for beginners without dumbing down! Thank you so much

  • @medoeldin
    @medoeldin 4 месяца назад +1

    Excellent video! Very educational and easy to understand!

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

    Very insightful content. Thanks a lot

  • @DrBeeWay
    @DrBeeWay Месяц назад +1

    Great video with deep insights and high levels. It will be good to combine a second video with runnable codes to visually see the results.

  • @margaretebarbosanicolosiso7784
    @margaretebarbosanicolosiso7784 6 месяцев назад +1

    Very good! Thanks.

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

    Great video

  • @user-bm4ih9ve9x
    @user-bm4ih9ve9x 6 месяцев назад +1

    Congratulations! Great!

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

    Cannot find level 2 in this video. Level 1 is function in prompt, level 3 is about langchain. what should level 2 be? : )

  • @TanveerKhan-km5pr
    @TanveerKhan-km5pr 3 месяца назад +1

    At 12:12 in the timestamp, you indicated that you would include the repository link in the description, but I'm unable to locate it.

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

      Check out this repo, the notebooks that start with 1..... should contain all the code you're looking for. github.com/EnkrateiaLucca/oreilly_live_training_agents/tree/main/notebooks

  • @kenchang3456
    @kenchang3456 6 месяцев назад +1

    Nice explanation, thank you. I'm interested in your opinion of Autogen vs LangGraph.

    • @automatalearninglab
      @automatalearninglab  6 месяцев назад +1

      I Think LangGraph is langchain's reaction to AutoGen, in the short term future I think we'll see both being used for agent orchestration, however for controlling outputs of agents, Langchain does a much better job, so if LangGraph can allow langchain specific agents to be even more useful, I think it could give it the edge, given that AutoGen gives you more higher level type control of how agents communicate with each other rather than something like chains and llm output control which is what you see with LangChain

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

      @@automatalearninglab thank you for replying. I was wondering, for learning and developing a POC whether I should start with Autogen or LangGraph. Thanks for your input.

  • @zanderrossouw1929
    @zanderrossouw1929 4 месяца назад +1

    Do you have the repo or an example video where you make an agent with optional call functions?

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

      I think my video on the 3 levels of complexity maybe would be interesting to you? I'll make more in the future just about function calling.

  • @TheSardOz
    @TheSardOz 5 месяцев назад +1

    Hi Lucas, grazie for the nice content.... would love to hear you opining about in what case would be better to use LLAMA vs Langchain....

    • @automatalearninglab
      @automatalearninglab  4 месяца назад +1

      So they are not necessarily mutually exclusive, langchain is more about orchestration, llama 2 is more about using a good local model. I'd say that if you just need a simple llm running locally you can use something like ollama which is straight forward API to use llama2 (although langchain also has a pretty simple one). If you want to have like a more complex application that does more interesting stuff like chains running summarization others running like extraction and so on, then something like langchain starts to make more sense.

    • @TheSardOz
      @TheSardOz 4 месяца назад +1

      @@automatalearninglab thank you!

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

      @@TheSardOz Oh! Thank youuu! :)

  • @beatrizbelbut4862
    @beatrizbelbut4862 6 месяцев назад +1

    oh my god 😍

  • @aj-kl7de
    @aj-kl7de 4 месяца назад +1

    nice vid bro, only one suggestion: the mic quality could be better

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

    The audio is almost unbearable. Probably should fix that.

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

      Yep I did! Thanks for the feedback! ( you are so very right)

  • @DraggaPlayz
    @DraggaPlayz 4 месяца назад +1

    im pretty sure u got the wrong mic plugged in 💀

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

      kkkk, maybe. My latest videos now have the proper decent audio, hopefully I won't make this mistake again.