Building a LangGraph ReAct Mini Agent

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 38

  • @imadsaddik
    @imadsaddik 2 หลายเดือนก่อน +1

    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 2 หลายเดือนก่อน +4

    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 ❣️

  • @juanmanuelzwiener4447
    @juanmanuelzwiener4447 2 หลายเดือนก่อน +4

    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  2 หลายเดือนก่อน +2

      do you have a dataset, I can't use client data for tutorials etc

    • @juanmanuelzwiener4447
      @juanmanuelzwiener4447 2 หลายเดือนก่อน

      @@samwitteveenai yes i do, want it to practice?

  • @pycoder8233
    @pycoder8233 หลายเดือนก่อน

    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.

  • @shaunwhite8204
    @shaunwhite8204 14 วันที่ผ่านมา

    Great Content! This was super helpful!

  • @viperactual
    @viperactual 2 หลายเดือนก่อน +1

    Great stuff! Well done on the presentation.

  • @gauravgarg-wc4zl
    @gauravgarg-wc4zl 2 หลายเดือนก่อน

    Great ! , i was able to swap the prompt and test it , great learning ...

  • @sergiozavota7099
    @sergiozavota7099 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน

      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

  • @parthdeshwal4419
    @parthdeshwal4419 2 หลายเดือนก่อน +2

    thanks man ...keep on the great work

  • @ItachiUchiha-fo9zg
    @ItachiUchiha-fo9zg หลายเดือนก่อน +1

    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  หลายเดือนก่อน

      yes certainly different models will respond to differently prompts. thanks for sharing that one

  • @Diego_UG
    @Diego_UG 2 หลายเดือนก่อน

    What a great explanation, thank you

  • @deeplearning7097
    @deeplearning7097 2 หลายเดือนก่อน

    Very nice work, as always, thank you.

  • @satvikparamkusham7454
    @satvikparamkusham7454 2 หลายเดือนก่อน +2

    This is very helpful!

  • @ynboxlive
    @ynboxlive 2 หลายเดือนก่อน

    Thanks Sam! Can you do a comparison of this model to a multi-agent framework like crewAI?

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน

      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.

  • @srikanthch1524
    @srikanthch1524 2 หลายเดือนก่อน

    Very interesting and thanks for the code. I tried modifying your code to build code assistant agent. How to add human in the loop ?

  • @arjunparmar6121
    @arjunparmar6121 หลายเดือนก่อน

    what if you have math node with math tools and search tool separate as a node? you cant bind llm. how to approach this?

  • @kenchang3456
    @kenchang3456 2 หลายเดือนก่อน +1

    Thanks Sam.

  • @waneyvin
    @waneyvin 2 หลายเดือนก่อน

    It is a better alternative than o1 model of openAI!

  • @allok501
    @allok501 2 หลายเดือนก่อน

    thanks man, what about using this reasoner to supervise agents instead of tools?

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน

      Good idea, I think I'll make something about controlling subgraphs with Reasoner.

  • @autoflujo
    @autoflujo 2 หลายเดือนก่อน

    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”?

  • @joaopaulopresa
    @joaopaulopresa 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน

      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.

  • @ofrylivney367
    @ofrylivney367 2 หลายเดือนก่อน

    great content! thanks!!

  • @micbab-vg2mu
    @micbab-vg2mu 2 หลายเดือนก่อน +1

    thanks

  • @Divyv520
    @Divyv520 2 หลายเดือนก่อน

    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 ?

  • @ibrahimhalouane8130
    @ibrahimhalouane8130 2 หลายเดือนก่อน

    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 2 หลายเดือนก่อน

    Can anyone share some langgraph projects which can help me land some job or freelance work?

  • @Lirim_K
    @Lirim_K 2 หลายเดือนก่อน

    What happens if the history becomes so large that it falls outside the models context window?

    • @samwitteveenai
      @samwitteveenai  2 หลายเดือนก่อน

      We can trim the history pretty easily, maybe I'll do a video about that soon.

    • @Lirim_K
      @Lirim_K 2 หลายเดือนก่อน

      @@samwitteveenai yes but then you’d lose valuable context and the model would “forget” stuff.

  • @poisonza
    @poisonza 2 หลายเดือนก่อน

    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  2 หลายเดือนก่อน +2

      I don't totally disagree with you. I do have some agents vids coming with no frameworks used