Python: Create a ReAct Agent from Scratch

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 51

  • @alejandro_ao
    @alejandro_ao  День назад

    🔥Join the AI Engineer Bootcamp:
    Hey there! The second edition of the AI Engineering Cohort is starting soon 🚀
    - Learn with step-by-step lessons and exercises
    - Join a community of like-minded and amazing people
    - I'll be there to personally answer all your questions 🤓
    - The spots are limited since I'll be directly interacting with you
    You can join the waitlist now 👉 course.alejandro-ao.com/
    Cheers!

  • @rembautimes8808
    @rembautimes8808 21 час назад

    Thanks so much for this tutorial. Appreciate going deep inside so we at least have a conceptual view of how these agentic tools work

  • @amanzholdaribay9871
    @amanzholdaribay9871 2 месяца назад +1

    Beautiful of pure Python - it gives you really deep understanding unlike frameworks! Thank you, man! You have great talent of explaining everything in simple way!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      i appreciate it my friend :) take care!

  • @joreilly
    @joreilly 12 дней назад

    Great video! Please do a video on llama index with librechat.

  • @cohen2804
    @cohen2804 10 дней назад +1

    Excellent video!
    You mentioned the JSON format towards the end. Actually, you can ask for a JSON directly in the prompt.
    I’ve tried it, and it works really well!”
    Example session:
    Question: What is the mass of Earth times 2?
    Thought: I need to find the mass of Earth
    Action: {"action_name": "get_planet_mass", "param": { "planet": "Earth" }}
    PAUSE

    • @gazzalifahim
      @gazzalifahim 7 дней назад

      Can you please share your prompt in this case?

    • @cohen2804
      @cohen2804 7 дней назад

      @@gazzalifahim The only difference in the prompt is already mentioned in my comment.
      Actually, the credit goes to Hasan Aboul Hasan; this is his example:
      ruclips.net/video/cDm5vPXVln8/видео.html&ab_channel=HasanAboulHasan

    • @alejandro_ao
      @alejandro_ao  2 дня назад

      indeed! you can do this with function-calling LLMs. i am adding this to the next video in the series. was gonna upload it before but had been super busy working on a cohort coruse that i'm doing with some subscribers!

  • @JonathanLyon
    @JonathanLyon 3 месяца назад +1

    I'm super excited to be considered to be part of your first AI Engineer Cohort Alejandro! Hopefully see you in August. hi from New Zealand!

    • @alejandro_ao
      @alejandro_ao  3 месяца назад

      Hey Jonathan! Thank you! I saw you signed up for the waitlist! Please let me know if you have any questions! 🔥

    • @kushal8372
      @kushal8372 3 месяца назад

      @@alejandro_ao I am trying to sign up but I am trying to learn more of the curriculum that will be covered in it. Could you provide more details? I couldn't find it on the website

  • @luanabarros6242
    @luanabarros6242 Месяц назад

    Hi! Thanks for the video, very helpful. Can you explain an example on how to have two or more agents talking to each other? Each one if its own loop

  • @wreckball2315
    @wreckball2315 21 день назад

    You also use arc? Nice. I was confused as why is my sidebar not closing. Pressed command s multiple times before realising.

  • @andydataguy
    @andydataguy 3 месяца назад

    This is such an important training! Thank you for sharing brother 🙌🏾💜

    • @alejandro_ao
      @alejandro_ao  3 месяца назад

      hey andy! thank you man! more coming up in this agents series!

  • @alejandro_ao
    @alejandro_ao  3 месяца назад +2

    Hey! I am going to start teaching and I will be taking a few students.
    In short, it is 12 weeks of weekly lectures, exercises and live QAs. We will cover GenAI, LangChain, CrewAI, LangGraph and deployment.
    I made a quick landing page to explain what the program is: course.alejandro-ao.com/
    I would appreciate your feedback about the landing page, as I am not great at marketing 😅

  • @none-hr6zh
    @none-hr6zh 21 день назад

    So this works only for mass of the earth but how to make it autonomus for different querys

  • @ZaferCan
    @ZaferCan 2 месяца назад

    thanks for very clear and simple explanation

  • @hoangng16
    @hoangng16 3 месяца назад

    It would be great to have a video about utilizing ReAct in LlamaIndex after this one. A very advanced one with query rewriting (if possible) and mainly the ReAct in the LlamaIndex. To me, the document load and parse are easy to pick up but ReAct is confusing.

    • @alejandro_ao
      @alejandro_ao  3 месяца назад

      i completely agree with you. query rewriting is one of the best features of llamaindex indeed. that's definitely coming up in this series 😎

    • @hoangng16
      @hoangng16 3 месяца назад +1

      @@alejandro_ao I know about LlamaIndex from your videos. I'm very impressed with LlamaParse, especially when they split the document by pages for PDF and presentation files. It's exactly how we consume documents in real life; we read page by page. I mean, it's very natural.

  • @gregas3068
    @gregas3068 3 месяца назад

    Great explenation. Keep them coming.

  • @luanabarros6242
    @luanabarros6242 Месяц назад

    I tried to run the same code with Gemini, but its actually answering all things at once, such as the thought and the action

  • @free_thinker4958
    @free_thinker4958 3 месяца назад +1

    It would be great if you could orchestrate those agents❤️🙏 using langgraph

    • @alejandro_ao
      @alejandro_ao  3 месяца назад +3

      i'm working on some videos covering langgraph indeed!

  • @mohibahmed5098
    @mohibahmed5098 3 месяца назад

    Awesome vid. Really helpful

    • @alejandro_ao
      @alejandro_ao  3 месяца назад

      thank you mate, it's my pleasure!

  • @arthuraquino8356
    @arthuraquino8356 3 месяца назад

    Alejandro, analyzing the current scenario, do you prefer langgraph/langchain, crewai or without fremeworks?

    • @alejandro_ao
      @alejandro_ao  3 месяца назад +1

      hey there. for production code, i would probably go for langchain/langgraph or llamaindex. they make all the abstractions easier and they allow you to be more flexible about the changes in the industry. about crewai, i love it, but i only use it for internal applications rn. i am not sure it is robust enough yet to power a b2c app (but it is getting there!)

    • @hrushikeshdokala
      @hrushikeshdokala 3 месяца назад

      you can try AutoGen

  • @phonetempacc
    @phonetempacc 3 месяца назад

    hey can you please edit this tutorial or create a tutorial for accomplishing an actual task with the agents instead of just a simple search? please please edit it to demonstrating the use of the reasoning capacity of the llms

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      yes! been very busy recently, but that's the plan 😅

  • @Arkantosi
    @Arkantosi 2 месяца назад

    So why do we even need to do this when OpenAI's GPT's already have these internet-search capabilities as well as reading uploaded documents?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +2

      right, you would probably not create this if you are only interested in being a user! this vide is mostly for those who want to understand what goes on under the hood of these kind of technologies or build a product around it :)

    • @Arkantosi
      @Arkantosi 2 месяца назад

      @@alejandro_ao Thanks for the answer Alejandro. Ofcourse, this is a learning channel after all :) By the way, video tips: Multi-Agents with LangGraph! Thanks for your work.

  • @j0hnc0nn0r-sec
    @j0hnc0nn0r-sec 3 месяца назад

    Hell, yeah brother

  • @shurikengaming2138
    @shurikengaming2138 3 месяца назад

    can you change the course price as i am from india and cannot afford that much !!
    but super video i learnt about some interesting things

    • @alejandro_ao
      @alejandro_ao  3 месяца назад +1

      hello there! i'm glad that helped! About the course price, totally! I am aware that the pricing is USA/Europe market price range. So you can fill this google form to get financial aid specifying your country and how much you would be able to afford: forms.gle/UjttgZSJnzwLwYJD6
      let me know if you have any questions!

    • @shurikengaming2138
      @shurikengaming2138 3 месяца назад

      @@alejandro_ao thank you sure will fill the form

    • @rhythamnegi
      @rhythamnegi 3 месяца назад

      Thanks ​@@alejandro_ao, I submitted too

    • @alejandro_ao
      @alejandro_ao  3 месяца назад

      @@rhythamnegi awesome! thank you for your support!

  • @jakubzboina7246
    @jakubzboina7246 День назад

    Lol it's so wrong xD That does not work, agent will drop your observation if there is something like mass of mercury in it's prompt. You are using tools outside of llm and what it does it's force LLM to use it's general knowlege rather then your observations. Change mass values to some random numbers eg. 1,2,3,4,5,6,7 and see what happens if you want to use Llama 3.1 70B. Tutorial is quite nicly done but this method of passing values won't work in 5 out 10 :p

  • @AlexCasimirF
    @AlexCasimirF 3 месяца назад

    Pluto 🥲

    • @alejandro_ao
      @alejandro_ao  3 месяца назад

      i get sad when i think about pluto