LangGraph: Getting Started: Step by Step tutorial to build Agents : Part1

Поделиться
HTML-код
  • Опубликовано: 27 апр 2024
  • - Nodes
    - Edges
    - Graph creation
    - Conditional Edges
    - Adding LLM calls
    - Adding RAG Calls
    Notebook: github.com/aritrasen87/LLM_RA...

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

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

    Excellent intro to langgraph, thx. "Conditional path" kwargs have changed since post

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

      Glad you liked it,
      Is it on the conditional path? Can you please share the updated code for the viewers if possible...

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

      @@AritraSen Was on definition of conditional edge cell:
      from langgraph.graph import StateGraph,END
      graph = StateGraph(AgentState) ### StateGraph with AgentState
      graph.add_node("agent", function_1)
      graph.add_node("RAG", function_2)
      graph.add_node("LLM", function_3)
      graph.set_entry_point("agent")
      # ###### HERE I CHANGED TO SOURCE, PATH AND PATHMAP ...conditional edges are controlled by our router
      graph.add_conditional_edges(
      source="agent", # where in graph to start
      path=router, # function to determine which node is called
      path_map={
      "RAG Call": "RAG",
      "LLM Call": "LLM",
      }
      )
      graph.add_edge("RAG", END)
      graph.add_edge("LLM", END)
      app = graph.compile()

    • @SagarDabgar-r8u
      @SagarDabgar-r8u 13 дней назад

      @@IdPreferNot1 After This solution I got a different topic.
      -->Calling Agent
      Received question: Tell me about Japan's Industrial Growth
      Generated response: Topic='Array Data Type in JSON'
      -->Router-->
      Array Data Type in JSON
      -->calling LLM-->
      Every time I run code it gives Topic='Array Data Type in JSON'
      I tried every possible solution but could not solve it. Please Help me @AritraSen
      @IdPreferNot1

  • @rakeshkumarrout2629
    @rakeshkumarrout2629 Месяц назад +1

    Thank you for sharing such amazing topic.which is much required for realtime rag, i was stuck in such task from long time in my company task ,since i am starter in this sector, this will definitely help me build a better product ,where i work.kindly make some thing like , how to give a name to a rag system and other details as well.

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

    High quality content ❤👏 keep up the good work man!

  • @athariitkgp9278
    @athariitkgp9278 Месяц назад +1

    Amazing tutorial !

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

    Very Good tutorial!

  • @MoiezIzmail
    @MoiezIzmail 5 дней назад +1

    Nice, thank you for doing this but I believe your sytle is way too fast and repetitive. I would suggest not repeating and going over again and again on the simple parts, and slowing down and explaining the more signifiant parts slowly and taking your time with their explanations rather than speeding through the video. Also, please take breaks in your speaking.

    • @AritraSen
      @AritraSen  5 дней назад +1

      Thanks for sharing the detailed feedback, appreciated !!