Back

Rahul Agarwal

Founder | Agentic AI... • 25d

LangGraph vs LangChain, many people get confused. I've explained each in simple below. 𝗟𝗔𝗡𝗚𝗚𝗥𝗔𝗣𝗛 (𝘀𝘁𝗲𝗽-𝗯𝘆-𝘀𝘁𝗲𝗽) LangGraph is a graph-driven framework for building dynamic, multi-agent AI workflows. 1. 𝗗𝗲𝗳𝗶𝗻𝗲 𝗮𝗽𝗽 𝗼𝗯𝗷𝗲𝗰𝘁𝗶𝘃𝗲 – Clearly state what your app should achieve. 2. 𝗕𝘂𝗶𝗹𝗱 𝗴𝗿𝗮𝗽𝗵-𝗯𝗮𝘀𝗲𝗱 𝗻𝗼𝗱𝗲𝘀 – Divide the workflow into nodes, each handling a specific function. 3. 𝗜𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗲 𝗟𝗮𝗻𝗴𝗖𝗵𝗮𝗶𝗻 𝗽𝗮𝗿𝘁𝘀 – Use LangChain components (tools, prompts, retrievers) inside these nodes. 4. 𝗔𝘀𝘀𝗶𝗴𝗻 𝗻𝗼𝗱𝗲 𝘀𝘁𝗮𝘁𝗲𝘀 – Give each node a status like 𝘢𝘤𝘵𝘪𝘷𝘦, 𝘸𝘢𝘪𝘵𝘪𝘯𝘨, or 𝘤𝘰𝘮𝘱𝘭𝘦𝘵𝘦 to track progress. 5. 𝗖𝗼𝗻𝗻𝗲𝗰𝘁 𝘀𝘁𝗮𝘁𝗲 𝘁𝗿𝗮𝗻𝘀𝗶𝘁𝗶𝗼𝗻𝘀 – Define how one node leads to another based on outcomes or triggers. 6. 𝗗𝗲𝗽𝗹𝗼𝘆 𝗮𝗻𝗱 𝗺𝗼𝗻𝗶𝘁𝗼𝗿 – Launch the app and keep track of performance, uptime, and user behavior. 7. 𝗧𝗿𝗼𝘂𝗯𝗹𝗲𝘀𝗵𝗼𝗼𝘁 𝗲𝗱𝗴𝗲 𝗰𝗮𝘀𝗲𝘀 – Identify rare or confusing user inputs and handle them gracefully. 8. 𝗧𝗲𝘀𝘁 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝘄𝗼𝗿𝗸𝗳𝗹𝗼𝘄 – Run the entire graph end-to-end to ensure smooth communication between nodes. 9. 𝗘𝗻𝗮𝗯𝗹𝗲 𝗽𝗮𝗿𝗮𝗹𝗹𝗲𝗹 𝘁𝗮𝘀𝗸 𝗲𝘅𝗲𝗰𝘂𝘁𝗶𝗼𝗻 – Allow multiple nodes to run simultaneously for faster results. 10. 𝗔𝗱𝗱 𝗺𝗲𝗺𝗼𝗿𝘆 𝗵𝗮𝗻𝗱𝗹𝗲𝗿 – Integrate memory so the app remembers previous interactions or states. ___________________________________ 𝗟𝗔𝗡𝗚𝗖𝗛𝗔𝗜𝗡 (𝘀𝘁𝗲𝗽-𝗯𝘆-𝘀𝘁𝗲𝗽) LangChain is a developer-focused framework for creating modular, tool-powered LLM applications. 1. 𝗣𝗶𝗰𝗸 𝘆𝗼𝘂𝗿 𝗟𝗟𝗠 𝗽𝗿𝗼𝘃𝗶𝗱𝗲𝗿 – Choose the base model (like OpenAI, Anthropic, or Gemini). 2. 𝗦𝗲𝘁 𝘂𝗽 𝗽𝗿𝗼𝗺𝗽𝘁 𝘁𝗲𝗺𝗽𝗹𝗮𝘁𝗲𝘀 – Design reusable prompt formats for consistent LLM responses. 3. 𝗕𝘂𝗶𝗹𝗱 𝗺𝗼𝗱𝘂𝗹𝗮𝗿 𝗰𝗵𝗮𝗶𝗻𝘀 – Connect multiple prompts and tools to form a logical pipeline. 4. 𝗔𝗱𝗱 𝗳𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝗮𝗹 𝘁𝗼𝗼𝗹𝘀 – Attach external tools like search APIs or calculators. 5. 𝗟𝗶𝗻𝗸 𝗲𝘅𝘁𝗲𝗿𝗻𝗮𝗹 𝗱𝗮𝘁𝗮 𝘀𝗼𝘂𝗿𝗰𝗲𝘀 – Connect databases, PDFs, or APIs to provide context-rich information. 6. 𝗠𝗼𝗻𝗶𝘁𝗼𝗿 𝗮𝗻𝗱 𝘂𝗽𝗱𝗮𝘁𝗲 – Regularly check performance and make updates to prompts or logic. 7. 𝗗𝗲𝗽𝗹𝗼𝘆 𝗮𝘀 𝗮𝗽𝗽 – Turn the workflow into a production-ready application. 8. 𝗗𝗲𝗯𝘂𝗴 𝗮𝗻𝗱 𝗿𝗲𝗳𝗶𝗻𝗲 𝗹𝗼𝗴𝗶𝗰 – Fix errors, optimize chains, and refine responses through testing. 9. 𝗘𝘃𝗮𝗹𝘂𝗮𝘁𝗲 𝗽𝗿𝗼𝗺𝗽𝘁 𝗽𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 – Measure how accurately prompts generate desired outputs. 10. 𝗜𝗺𝗽𝗹𝗲𝗺𝗲𝗻𝘁 𝗺𝗲𝗺𝗼𝗿𝘆 𝘀𝘆𝘀𝘁𝗲𝗺 – Add short-term or long-term memory for contextual continuity. In short: • 𝗟𝗮𝗻𝗴𝗚𝗿𝗮𝗽𝗵 builds 𝗱𝘆𝗻𝗮𝗺𝗶𝗰, 𝗺𝘂𝗹𝘁𝗶-𝗮𝗴𝗲𝗻𝘁 𝗔𝗜 𝗳𝗹𝗼𝘄𝘀. • 𝗟𝗮𝗻𝗴𝗖𝗵𝗮𝗶𝗻 builds 𝘀𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗲𝗱, 𝘁𝗼𝗼𝗹-𝗯𝗮𝘀𝗲𝗱 𝗟𝗟𝗠 𝗮𝗽𝗽𝘀. ✅ Repost for others in your network who can benefit from this.

Reply
1

More like this

Recommendations from Medial

Image Description

Rahul Agarwal

Founder | Agentic AI... • 3m

2 frameworks powering next generation of AI apps. Here’s how LangGraph and LangChain make it happen. 𝗟𝗔𝗡𝗚𝗚𝗥𝗔𝗣𝗛 (𝘀𝘁𝗲𝗽-𝗯𝘆-𝘀𝘁𝗲𝗽) LangGraph is a graph-driven framework for building dynamic, multi-agent AI workflows. 1. 𝗗𝗲𝗳𝗶𝗻𝗲

See More
1 Reply
15
21
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI... • 6m

3 ways how most AI systems are built. I’ve explained each one step-by-step. 1) 𝗧𝗿𝗮𝗱𝗶𝘁𝗶𝗼𝗻𝗮𝗹 𝗔𝗜 (𝘀𝘁𝗲𝗽-𝗯𝘆-𝘀𝘁𝗲𝗽) 1. 𝗦𝗲𝘁 𝘁𝗮𝘀𝗸 – Decide what problem the model should solve. 2. 𝗖𝗼𝗹𝗹𝗲𝗰𝘁 𝗱𝗮𝘁𝗮 – Gather lots of example

See More
1 Reply
8
18
1

Rahul Agarwal

Founder | Agentic AI... • 17d

Traditional vs AI workflows, what exactly changed? I’ve explained in simple detail below. 𝗙𝗶𝗿𝘀𝘁: 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗦𝗗𝗟𝗖? SDLC = Software Development Life Cycle It means the full journey of building software from idea → launch → improvement. 1

See More
Reply
4

Rahul Agarwal

Founder | Agentic AI... • 3m

3 ways AI systems are deployed today. I’ve explained each method below in simple steps. 1.) 𝗖𝗹𝗼𝘂𝗱 𝗗𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁 (𝘀𝘁𝗲𝗽-𝗯𝘆-𝘀𝘁𝗲𝗽) 𝗙𝗹𝗼𝘄: • 𝗨𝘀𝗲𝗿 𝘀𝘂𝗯𝗺𝗶𝘁𝘀 𝗿𝗲𝗾𝘂𝗲𝘀𝘁 - User types a query or command. • 𝗖𝗹𝗼𝘂𝗱 𝗿

See More
Reply
2
8
Image Description
Image Description

Hemant Prajapati

 • 

Techsaga Corporations • 11m

𝗣𝘂𝘀𝗵 𝗡𝗼𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻𝘀 = 𝗙𝗿𝗲𝗲 𝗠𝗮𝗿𝗸𝗲𝘁𝗶𝗻𝗴 + 𝗥𝗲𝗹𝗮𝘁𝗶𝗼𝗻𝘀𝗵𝗶𝗽 𝗕𝘂𝗶𝗹𝗱𝗶𝗻𝗴 Most apps send push notifications like: “𝗥𝗲𝗺𝗶𝗻𝗱𝗲𝗿: 𝗬𝗼𝘂 𝗵𝗮𝘃𝗲𝗻’𝘁 𝗼𝗽𝗲𝗻𝗲𝗱 𝘁𝗵𝗲 𝗮𝗽𝗽 𝗶𝗻 𝟮 𝗱𝗮𝘆𝘀.” 𝗖𝗼𝗼𝗹. 𝗔

See More
8 Replies
6
20

Rahul Agarwal

Founder | Agentic AI... • 2m

The fastest AI apps aren’t using the cloud. I've explained the reason for this below. Most people think the cloud is the go-to solution for AI, but when speed and real-time results are a must, other deployment options outperform it. 1.) 𝗖𝗹𝗼𝘂𝗱

See More
Reply
3
4

Rahul Agarwal

Founder | Agentic AI... • 3m

People know vibe tools, but struggle to use them. I've prepared a solid framework that works across all platforms. 1) 𝗗𝗲𝗳𝗶𝗻𝗲 𝘁𝗵𝗲 𝗽𝗿𝗼𝗱𝘂𝗰𝘁 𝗶𝗻 𝗼𝗻𝗲 𝘀𝗲𝗻𝘁𝗲𝗻𝗰𝗲 (5 𝗺𝗶𝗻𝘂𝘁𝗲𝘀) Be brutally simple. Your app must do ONE thing

See More
Reply
2
7
Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI... • 4m

12 MCP servers every person should know. I've explained each one in a simple way. 1. 𝗙𝗶𝗹𝗲 𝗦𝘆𝘀𝘁𝗲𝗺 𝗦𝗲𝗿𝘃𝗲𝗿 • Gives AI access to your local files. • It can 𝗿𝗲𝗮𝗱, 𝘄𝗿𝗶𝘁𝗲, 𝗮𝗻𝗱 𝗰𝗿𝗲𝗮𝘁𝗲 files on your computer (under safe per

See More
2 Replies
44
31
6

Rahul Agarwal

Founder | Agentic AI... • 4m

Steps to building AI systems with LLM's. I've given a simple detailed explanation below. 𝗦𝘁𝗲𝗽 1 – 𝗟𝗟𝗠𝘀 (𝗟𝗮𝗿𝗴𝗲 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲 𝗠𝗼𝗱𝗲𝗹𝘀) • These are the 𝗯𝗿𝗮𝗶𝗻𝘀 of the system. • Examples: GPT (OpenAI), Gemini, Claude etc. • Th

See More
Reply
8
8

Rahul Agarwal

Founder | Agentic AI... • 1m

Most people skip guardrails, their AI systems break. I’ve explained in a very simple way below. 1. 𝗜𝗻𝗽𝘂𝘁 & 𝗢𝘂𝘁𝗽𝘂𝘁 𝗚𝘂𝗮𝗿𝗱𝗿𝗮𝗶𝗹𝘀 This is the 𝗲𝗻𝘁𝗿𝘆 𝗮𝗻𝗱 𝗲𝘅𝗶𝘁 𝗰𝗵𝗲𝗰𝗸 of the system. • User input is checked for safety •

See More
Reply
1
3

Download the medial app to read full posts, comements and news.