@@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()
@@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
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.
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.
Excellent intro to langgraph, thx. "Conditional path" kwargs have changed since post
Glad you liked it,
Is it on the conditional path? Can you please share the updated code for the viewers if possible...
@@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()
@@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
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.
High quality content ❤👏 keep up the good work man!
Amazing tutorial !
Very Good tutorial!
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.
Thanks for sharing the detailed feedback, appreciated !!