Building a LangGraph ReAct Mini Agent

  Рет қаралды 17,101

Sam Witteveen

Sam Witteveen

Күн бұрын

Пікірлер: 41
@imadsaddik
@imadsaddik 3 ай бұрын
Oh Sam, thank you so so much. This solution is crazy simple. The agent never enters in loops unlike the solution I develop with pure langchain. The agent used to get stuck in loops when asking simple questions like hi or hello Thanks again
@mohamedsamy9723
@mohamedsamy9723 3 ай бұрын
HI sam , we hope to work more closely with open source models such llama3, command R some of this technique not working with such this models and need some of customisations we need to reuse this concepts with open source models and thanks a lot ❣️
@viperactual
@viperactual 3 ай бұрын
Great stuff! Well done on the presentation.
@parthdeshwal4419
@parthdeshwal4419 3 ай бұрын
thanks man ...keep on the great work
@shaunwhite8204
@shaunwhite8204 Ай бұрын
Great Content! This was super helpful!
@gauravgarg-wc4zl
@gauravgarg-wc4zl 3 ай бұрын
Great ! , i was able to swap the prompt and test it , great learning ...
@deeplearning7097
@deeplearning7097 3 ай бұрын
Very nice work, as always, thank you.
@Diego_UG
@Diego_UG 3 ай бұрын
What a great explanation, thank you
@satvikparamkusham7454
@satvikparamkusham7454 3 ай бұрын
This is very helpful!
@pycoder8233
@pycoder8233 2 ай бұрын
Great video! I've been following your channel to learn LangGraph. I've watched your previous videos on LangGraph and have learned a lot. Could you please revisit one of your older projects using this new method? It would help us understand it better.
@kenchang3456
@kenchang3456 3 ай бұрын
Thanks Sam.
@juanmanuelzwiener4447
@juanmanuelzwiener4447 3 ай бұрын
Hi Sam, please provide a video about the SQL agent that manages fields with high cardinality to generate the correct query in Langgraph, improving even the ones uploaded in the oficial documentation
@samwitteveenai
@samwitteveenai 3 ай бұрын
do you have a dataset, I can't use client data for tutorials etc
@juanmanuelzwiener4447
@juanmanuelzwiener4447 3 ай бұрын
@@samwitteveenai yes i do, want it to practice?
@allok501
@allok501 3 ай бұрын
thanks man, what about using this reasoner to supervise agents instead of tools?
@samwitteveenai
@samwitteveenai 3 ай бұрын
Good idea, I think I'll make something about controlling subgraphs with Reasoner.
@ofrylivney367
@ofrylivney367 3 ай бұрын
great content! thanks!!
@MLGJuggernautgaming
@MLGJuggernautgaming 27 күн бұрын
Great video! How could you have this print only the final response though from the stream? I can't figure it out. For example, I don't want it to print "First, i'll look up x..." just print the final response. I'm using astream_events, but can't see any way to descriminate the responses.
@sergiozavota7099
@sergiozavota7099 3 ай бұрын
Thanks Sam, great video! One doubt I still have about ReAct agents in langgraph is the "component" that makes the LLM to think in the ReAct style. In the ReAct paper, the prompt instructs the LLM to think, act and observe. However in this example I don't see any of these instructions. Where are they "hidden" in this version with Langgraph?
@samwitteveenai
@samwitteveenai 3 ай бұрын
yeah I pointed this out in the video that they aren't using the standard prompts. You could put that in in there if you wanted. With Function Calling / Tool use and much better models we have today you don't need it as much, but for anything serious I would massively tune that prompt in the reasoner
@johnpiscani5885
@johnpiscani5885 18 күн бұрын
Hi Sam, I am currently trying to follow this to learn more about this architecture. Right now, I am using a tool for getting a stock price and one for searching Wikipedia. When asking 'What is the stock price of Tesla and what can you tell me about the history of the company?', I keep running into a GraphRecursionError. I confirmed both tools work independently but when trying to put it together, I am seeing this recursion error, even with stock price and addition tools. Why may using two tools cause a recursion error?
@autoflujo
@autoflujo 3 ай бұрын
Nice tutorial as always Sam! Some months ago I tried to use this approach of one node for reasoning and one for tool calling but the LLM always went nuts. It iterates over and over with the same tool. Is there a way to control how many times the agent can call a tool or how many times it can iterate the tool node before saying “I don’t know”?
@micbab-vg2mu
@micbab-vg2mu 3 ай бұрын
thanks
@srikanthch1524
@srikanthch1524 3 ай бұрын
Very interesting and thanks for the code. I tried modifying your code to build code assistant agent. How to add human in the loop ?
@RaviPrakash-dz9fm
@RaviPrakash-dz9fm 6 күн бұрын
Does it internally make the LLM follow the Thought Action Observation pattern? Like, I don't see any thought part in the trace
@ItachiUchiha-fo9zg
@ItachiUchiha-fo9zg 2 ай бұрын
I tried this with groq free api mixtral model... and i faced issues as the search tool didnt get the age sometimes.. so I have to change the prompt..."You are a helpful assistant tasked with using search and performing arithmetic on a set of inputs. you are only allowed to use the tools add, multiply, divide and search. repeat the tool until you think you got the expected output"
@samwitteveenai
@samwitteveenai 2 ай бұрын
yes certainly different models will respond to differently prompts. thanks for sharing that one
@joaopaulopresa
@joaopaulopresa 3 ай бұрын
How to use it as a subgraph? Do I need a router? For example if I want to isolate heavy function calls from the main agent history? Is making it a tool an option? Can it have its own messages and state and be reset when it finishes processing like a subgraph?
@samwitteveenai
@samwitteveenai 3 ай бұрын
This is a really good idea. A number of people have asked for this, so I'll make something with showing off subgraphs and how you could use this kind of style for a subgraph.
@waneyvin
@waneyvin 3 ай бұрын
It is a better alternative than o1 model of openAI!
@ynboxlive
@ynboxlive 3 ай бұрын
Thanks Sam! Can you do a comparison of this model to a multi-agent framework like crewAI?
@samwitteveenai
@samwitteveenai 3 ай бұрын
At a low level, CrewAI is using a lot of things like this from LangGraph and LangChain and other agent frameworks. The big difference is that CrewAI is not on a guided flow as strictly as something like LangGraph is.
@arjunparmar6121
@arjunparmar6121 2 ай бұрын
what if you have math node with math tools and search tool separate as a node? you cant bind llm. how to approach this?
@Lirim_K
@Lirim_K 3 ай бұрын
What happens if the history becomes so large that it falls outside the models context window?
@samwitteveenai
@samwitteveenai 3 ай бұрын
We can trim the history pretty easily, maybe I'll do a video about that soon.
@Lirim_K
@Lirim_K 3 ай бұрын
@@samwitteveenai yes but then you’d lose valuable context and the model would “forget” stuff.
@ibrahimhalouane8130
@ibrahimhalouane8130 3 ай бұрын
I have been trying too many frameworks some of them looks over engineered including Langraph, you don't really have control on what's under the hood specially when you are using less capable models, I'm trying Phidata as a small library that just work yet flexible enough for most basic tasks. Can you make a video on how to use it to make an autonomous agents ?
@MrAhsan99
@MrAhsan99 3 ай бұрын
Can anyone share some langgraph projects which can help me land some job or freelance work?
@Divyv520
@Divyv520 3 ай бұрын
Hey Sam , very good video ! I was wondering if I can help you with more Quality Editing in your videos and make Highly Engaging Thumbnails which will help your videos to get more views and engagement . Please let me know what do you think ?
@poisonza
@poisonza 3 ай бұрын
i might try to implement this without langraph... langchain shitty library and langraph is just a state transition library with some weird abstraction
@samwitteveenai
@samwitteveenai 3 ай бұрын
I don't totally disagree with you. I do have some agents vids coming with no frameworks used
Multi-Agent AI EXPLAINED: How Magentic-One Works
16:39
Sam Witteveen
Рет қаралды 18 М.
Understanding ReACT with LangChain
21:10
Sam Witteveen
Рет қаралды 52 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Learn LangGraph - The Easy Way
28:29
AI with Misbah
Рет қаралды 35 М.
How I animate 3Blue1Brown | A Manim demo with Ben Sparks
53:41
3Blue1Brown
Рет қаралды 1,2 МЛН
AI Agentic workflow - How to build AI Agents with Python.
13:29
Masters of Technology
Рет қаралды 12 М.
LangGraph Crash Course with code examples
39:01
Sam Witteveen
Рет қаралды 93 М.
PydanticAI - The NEW Agent Builder on the Block
21:45
Sam Witteveen
Рет қаралды 29 М.
The Best RAG Technique Yet? Anthropic’s Contextual Retrieval Explained!
16:14
Creating an AI Agent with LangGraph Llama 3 & Groq
35:29
Sam Witteveen
Рет қаралды 48 М.
Introduction to LangGraph: A Quick Dive into Core Concepts
21:54
Coding Crash Courses
Рет қаралды 15 М.
LangChain vs LangGraph: A Tale of Two Frameworks
9:55
IBM Technology
Рет қаралды 51 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 104 М.