Рет қаралды 56,226
Large Language Models (LLMs) are incredibly powerful, yet they lack particular abilities that the "dumbest" computer programs can handle with ease. Logic, calculation, and search are examples of where computers typically excel, but LLMs struggle.
With these weaknesses in today's generation of LLMs, we must find solutions to these problems. One "suite" of potential solutions comes in the form of "agents".
These agents don't just solve the problems mentioned above but many others. In fact, adding agents has an almost unlimited upside in their LLM-enhancing abilities.
In this video, we'll talk about agents. We'll learn what they are, how they work, and how to use them within the LangChain library to superpower our LLMs.
🌲 Pinecone article:
pinecone.io/learn/langchain-a...
🙋🏽♂️ Francisco:
/ fpingham
📌 LangChain Handbook Code:
github.com/pinecone-io/exampl...
📌 Notebook 1:
github.com/pinecone-io/exampl...
📌 Notebook 2:
github.com/pinecone-io/exampl...
👋🏼 NLP + LLM Consulting:
aurelio.ai
🎙️ Support me on Patreon:
/ jamesbriggs
👾 Discord:
/ discord
00:00 Why LLMs need tools
02:35 What are agents?
03:33 LangChain agents in Python
04:25 Initializing a calculator tool
05:57 Initializing a LangChain agent
08:01 Asking our agent some questions
12:39 Adding more tools to agents
14:29 Custom and prebuilt tools
16:40 Francisco's definition of agents
17:52 Creating a SQL DB tool
19:49 Zero shot ReAct agents in LangChain
24:18 Conversational ReAct agent in LangChain
26:57 ReAct docstore agent in LangChain
28:31 Self-ask with search agent
30:33 Final thoughts on LangChain agents
#artificialintelligence #nlp #openai #langchain