(Retrieval-Augmented Generation) simply retrieves relevant documents and generates responses based on them. It doesn't involve any complex reasoning or decision-making process beyond retrieving and generating.
on the other hand, uses agents or advanced systems to actively plan, make decisions, which tool to use againt the query utilize external resources (i.e., the tools and external search queries) before generating responses to improve the accuracy and relevance of the generated responses, adding a layer of reasoning or autonomy.
Step 1: add these creds LANGCHAIN_TRACING_V2 LANGCHAIN_PROJECT LANGCHAIN_API_KEY Step 2 : Build Workflow Step 3 : Set Entry Point Step 4: Conditional Edge for routing Step 5: Connect dots Step 6: Compile Step 7: Invoke the query