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

  Рет қаралды 8,152

Automata Learning Lab

Automata Learning Lab

3 ай бұрын

#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/@enkrateialucc...
- Twitter: / lucasenkrateia
- LinkedIn: / lucas-soares-969044167
Support the Channel!
- Buy me a cup of coffee: tr.ee/7tYsD-tUu2
- Paypal: paypal.me/lucasenkrateia?coun...

Пікірлер: 29
@nonycount-je8uf
@nonycount-je8uf 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
@automatalearninglab
@automatalearninglab 2 ай бұрын
Nice! Glad to hear! :)
@IPlayWithFire135
@IPlayWithFire135 2 ай бұрын
I myself am fascinated by everything to do with this topic and I can’t wait to get started with my own projects. Subscribed.
@automatalearninglab
@automatalearninglab 2 ай бұрын
Nice!
@medoeldin
@medoeldin Ай бұрын
Excellent video! Very educational and easy to understand!
@automatalearninglab
@automatalearninglab Ай бұрын
thanks!!! :)
@margaretebarbosanicolosiso7784
@margaretebarbosanicolosiso7784 3 ай бұрын
Very good! Thanks.
@automatalearninglab
@automatalearninglab 3 ай бұрын
You're very welcome!
@user-bm4ih9ve9x
@user-bm4ih9ve9x 3 ай бұрын
Congratulations! Great!
@automatalearninglab
@automatalearninglab 3 ай бұрын
Thanks! :)
@TanveerKhan-km5pr
@TanveerKhan-km5pr 4 күн бұрын
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 2 күн бұрын
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 3 ай бұрын
Nice explanation, thank you. I'm interested in your opinion of Autogen vs LangGraph.
@automatalearninglab
@automatalearninglab 3 ай бұрын
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 3 ай бұрын
@@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 Ай бұрын
Do you have the repo or an example video where you make an agent with optional call functions?
@automatalearninglab
@automatalearninglab Ай бұрын
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 Ай бұрын
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 Ай бұрын
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 Ай бұрын
@@automatalearninglab thank you!
@automatalearninglab
@automatalearninglab Ай бұрын
@@TheSardOz Oh! Thank youuu! :)
@lexiqiu9796
@lexiqiu9796 8 күн бұрын
Cannot find level 2 in this video. Level 1 is function in prompt, level 3 is about langchain. what should level 2 be? : )
@automatalearninglab
@automatalearninglab 8 күн бұрын
level 2 was supposed to be openai function calling
@beatrizbelbut4862
@beatrizbelbut4862 3 ай бұрын
oh my god 😍
@automatalearninglab
@automatalearninglab 3 ай бұрын
kkk thank youuu
@aj-kl7de
@aj-kl7de 29 күн бұрын
nice vid bro, only one suggestion: the mic quality could be better
@automatalearninglab
@automatalearninglab 29 күн бұрын
Yep noted
@draggaplayz5522
@draggaplayz5522 Ай бұрын
im pretty sure u got the wrong mic plugged in 💀
@automatalearninglab
@automatalearninglab Ай бұрын
kkkk, maybe. My latest videos now have the proper decent audio, hopefully I won't make this mistake again.
AI Leader Reveals The Future of AI AGENTS (LangChain CEO)
16:22
Matthew Berman
Рет қаралды 74 М.
What is LangChain?
8:08
IBM Technology
Рет қаралды 113 М.
The magical amulet of the cross! #clown #小丑 #shorts
00:54
好人小丑
Рет қаралды 21 МЛН
Көтіңді қысып, ауылға қайт! | АСАУ | 2 серия
33:16
Getting Started with Comments in Drupal
WebWash
Рет қаралды 2
[1hr Talk] Intro to Large Language Models
59:48
Andrej Karpathy
Рет қаралды 1,8 МЛН
Building RAG at 5 different levels
24:25
Jake Batsuuri
Рет қаралды 8 М.
AI Pioneer Shows The Power of AI AGENTS - "The Future Is Agentic"
23:47
Build Anything with AI Agents, Here's How
29:49
David Ondrej
Рет қаралды 141 М.
LangGraph 101: it's better than LangChain
32:26
James Briggs
Рет қаралды 34 М.
What is Retrieval-Augmented Generation (RAG)?
6:36
IBM Technology
Рет қаралды 471 М.
Adding Agentic Layers to RAG
19:40
AI User Group
Рет қаралды 10 М.
Вы поможете украсть ваш iPhone
0:56
Romancev768
Рет қаралды 541 М.
Вы поможете украсть ваш iPhone
0:56
Romancev768
Рет қаралды 541 М.
Вы поможете украсть ваш iPhone
0:56
Romancev768
Рет қаралды 541 М.
Самый маленький Iphone в мире!📱(@ghoul.arena)
0:22
Взрывная История
Рет қаралды 1,3 МЛН