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

Sdílet
Vložit
  • čas přidán 27. 04. 2024
  • - Nodes
    - Edges
    - Graph creation
    - Conditional Edges
    - Adding LLM calls
    - Adding RAG Calls
    Notebook: github.com/aritrasen87/LLM_RA...

Komentáře • 7

  • @athariitkgp9278
    @athariitkgp9278 Před 7 dny +1

    Amazing tutorial !

  • @free_thinker4958
    @free_thinker4958 Před 8 dny +1

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

  • @rakeshkumarrout2629
    @rakeshkumarrout2629 Před 5 dny +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.

  • @ddzmitry
    @ddzmitry Před měsícem +1

    Very Good tutorial!

  • @IdPreferNot1
    @IdPreferNot1 Před měsícem

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

    • @AritraSen
      @AritraSen  Před měsícem +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 Před měsícem

      @@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()