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

  Рет қаралды 4,312

Leon van Zyl

Leon van Zyl

Күн бұрын

#openai #langchain #langchainjs
Agents are one of the most important features of Langchain and extremely fun to use.
We can give our agent an instruction, and it will use the power of LLM's and Tools to figure out the actions to take, the sequence of events and then use tools the achieve it's goals.
☕ Buy me a coffee:
www.buymeacoffee.com/leonvanzyl
📑 Useful Links:
Langchain JS docs: js.langchain.com/docs/get_sta...
Source Code: github.com/leonvanzyl/langcha...
Tavily Search API: app.tavily.com/home
Langsmith: www.langchain.com/langsmith
💬 Chat with Like-Minded Individuals on Discord:
/ discord
🧠 I can build your chatbots for you!
www.cognaitiv.ai
🕒 TIMESTAMPS:
00:00 - Intro
00:27 - Project setup
01:25 - Agent Scratchpad
02:06 - Create Agent
02:59 - Agent Types
03:31 - Agent Executor
04:21 - Invoking Agent
04:39 - Adding Tavily Search Tool
05:40 - Tavily Search API
06:23 - Get Input from Terminal
09:41 - Adding Chat History
12:49 - Langsmith
13:40 - Adding retriever as tool
17:00 - Thank you

Пікірлер: 26
@leonvanzyl
@leonvanzyl 5 ай бұрын
I absolutely love working with agents and find the reasoning aspect fascinating! Let me know what you think of agents and what the opportunities are?
@eivanmtzleal9547
@eivanmtzleal9547 4 ай бұрын
This video serie is Awseome... Thanks So Much!
@alejoforeroforero
@alejoforeroforero 23 күн бұрын
Amazing, thanks for sharing all that!
@docp84
@docp84 5 ай бұрын
Great video, like all the others in the playlist. I can't wait to see the video where you'll implement all these things with the UI.
@leonvanzyl
@leonvanzyl 5 ай бұрын
Thank you ❤️
@sauravk5010
@sauravk5010 4 ай бұрын
This is pure gold thanks a bunch !!!
@leonvanzyl
@leonvanzyl 4 ай бұрын
You're welcome 🤗
@danialchippa8772
@danialchippa8772 4 ай бұрын
Very well explained👏
@leonvanzyl
@leonvanzyl 4 ай бұрын
Thank you 😊
@robenriquez5474
@robenriquez5474 Ай бұрын
hi, is it possible to use Ollama model and ollamaEmbeddings, then pass them as the llm and retriever tool in the createOpenAIFunctionsAgent? If not how do you create Agents based on Ollama? thanks
@Razor1David
@Razor1David 3 ай бұрын
I tried to do something similar but using Claude 3, but I don't know if I'm not understanding correctly. Isn't there an agent that supports multitools for Anthropic?
@leonvanzyl
@leonvanzyl 3 ай бұрын
Not yet, but I believe it's coming soon. OpenAI unfortunately has a monopoly on function calling, but with Mistral and Claude rolling out support for function calling this will change soon.
@gazier20
@gazier20 5 ай бұрын
Great video. I'm wondering why you used in the past flowise and the OpenAI assistant and now you code everything. Is there a reason? Is there a limit in the OpenAI assistant?
@leonvanzyl
@leonvanzyl 5 ай бұрын
Thank you, and don't worry. I am.working on the latest Flowise series as well 😁. Flowise is developed using Langchain, and since this is a coding channel, I also wanted to spend some time learning the underlying technology. I haven't abandoned the low-code frameworks though, and still use Flowise for my client projects. However, I had to switch over to Langchain for some bespoke solutions as well.
@gazier20
@gazier20 5 ай бұрын
@@leonvanzyl thank you. I guess we can have more control on the choice of the tools by the agent. The openAi assistant doesn't always choose the right tool.
@Aidev7876
@Aidev7876 5 ай бұрын
Wonderful video as usual. I am wondering why you are slowly moving to JS and not sticking with Python. Is ther ea hidden hint that JS is the future? If not, maybe getting the same tutorial in python whould be great. and if you can wrap it all with REST API (langserve?) and some web app (as opoosed to command line). sorry if I am too demanding and thanks again! Trying to help you and me :)
@ytubeguruji863
@ytubeguruji863 5 ай бұрын
I had the exact same thought. Also, I wanted to experiment with pyscript and test for the issues. Do share your thoughts.
@leonvanzyl
@leonvanzyl 5 ай бұрын
Hey there, I am creating the series in both JS and Python 😂. Check it the playlists on my channel. Herewith the link to the Python series: kzfaq.info/get/bejne/m9GgobmZktKXiXU.html
@Aidev7876
@Aidev7876 5 ай бұрын
@@leonvanzyl thanks Leon. What about the second part of my comment? Tutorial on wrapping the code into some langserve app ?thanks again
@leonvanzyl
@leonvanzyl 5 ай бұрын
@@Aidev7876 Apologies. Yes, we'll create a small project where we expose our Langchain code to a web app. Probably not LamgServe at this points as it's not publicly available yet.
@Aidev7876
@Aidev7876 5 ай бұрын
@leonvanzyl no worries, boss. I guess it would be stramlit or fastApi? It's important to be exposed as an API to be consumed from a chat bot lole Voiceflow, for example
@rgb2647
@rgb2647 2 ай бұрын
I hate that everything is based on openai, I wish this version without openai, can we use groq or localllm for building agents?
@leonvanzyl
@leonvanzyl 2 ай бұрын
There are a limited amount of models that are able to call functions, and they're all paid services.
@nicholasmassie
@nicholasmassie Ай бұрын
@@leonvanzyl Do you know if gemini supports function calling and agents with langchain?
@eivanmtzleal9547
@eivanmtzleal9547 4 ай бұрын
Awesome!!!
@leonvanzyl
@leonvanzyl 4 ай бұрын
Thank you
LangChain Tutorial (JS) #7: Long Term Conversation Memory
19:06
Leon van Zyl
Рет қаралды 3,9 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 127 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 32 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 24 МЛН
Build Your First No-Code AI Agent | Full Relevance AI Tutorial
1:05:18
Creating an AI Agent with LangGraph Llama 3 & Groq
35:29
Sam Witteveen
Рет қаралды 41 М.
LangChain Tutorial (Python) #6: Self-Reasoning Agents with Tools
13:21
LangGraph: Multi-Agent Workflows
24:02
LangChain
Рет қаралды 55 М.
Build an AI RAG Application with LangChain & Next.js
33:34
Dave Gray
Рет қаралды 15 М.
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,6 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,2 МЛН