Back

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 20d

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. ๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ฒ ๐—ฎ๐—ฝ๐—ฝ ๐—ผ๐—ฏ๐—ท๐—ฒ๐—ฐ๐˜๐—ถ๐˜ƒ๐—ฒ โ€“ 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.

1 Reply
15
21
Replies (1)

More like this

Recommendations from Medial

Image Description
Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 3m

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
Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 29d

4 different ways of training LLM's. I've given a simple detailed explanation below. 1.) ๐—”๐—ฐ๐—ฐ๐˜‚๐—ฟ๐—ฎ๐˜๐—ฒ ๐——๐—ฎ๐˜๐—ฎ ๐—–๐˜‚๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป (๐˜€๐˜๐—ฒ๐—ฝ-๐—ฏ๐˜†-๐˜€๐˜๐—ฒ๐—ฝ) Prepares clean, consistent, and useful data so the model learns effectively. 1. Collect text

See More
Reply
1
9
1

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 26d

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

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 27d

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...ย โ€ขย 1m

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
Image Description

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 29d

LangGraph vs Autogen vs CrewAI, which to choose? I've given a breakdown of which is best for you. ๐—Ÿ๐—ฎ๐—ป๐—ด๐—š๐—ฟ๐—ฎ๐—ฝ๐—ต (๐—–๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜… ๐—ช๐—ผ๐—ฟ๐—ธ๐—ณ๐—น๐—ผ๐˜„๐˜€) LangGraph is ideal for ๐—ฏ๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐—ฐ๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜…, ๐—บ๐˜‚๐—น๐˜๐—ถ-๐˜€๐˜๐—ฒ๐—ฝ ๐—”๐—œ ๐˜„๐—ผ๐—ฟ๐—ธ๐—ณ๐—น๐—ผ

See More
Reply
12
1

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 25d

SLM vs LLM โ€” which AI model is best for you? Iโ€™ve explained both in simple steps below. ๐—ฆ๐—Ÿ๐—  (๐—ฆ๐—บ๐—ฎ๐—น๐—น ๐—Ÿ๐—ฎ๐—ป๐—ด๐˜‚๐—ฎ๐—ด๐—ฒ ๐— ๐—ผ๐—ฑ๐—ฒ๐—น) (๐˜ด๐˜ต๐˜ฆ๐˜ฑ-๐˜ฃ๐˜บ-๐˜ด๐˜ต๐˜ฆ๐˜ฑ) Lightweight AI models built for speed, focus, and on-device execution. 1. ๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ฒ

See More
Reply
1
12
Image Description
Image Description

Vishu Bheda

ย โ€ขย 

Medialย โ€ขย 8m

๐— ๐—ผ๐˜€๐˜ ๐—ฝ๐—ฒ๐—ผ๐—ฝ๐—น๐—ฒ ๐˜๐—ต๐—ถ๐—ป๐—ธ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—ฏ๐˜‚๐˜†๐˜€ ๐—ฝ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜๐˜€. Wrong. Microsoft buys ๐ฆ๐จ๐ฆ๐ž๐ง๐ญ๐ฎ๐ฆ. ๐—Ÿ๐—ผ๐—ผ๐—ธ ๐—ฎ๐˜ ๐˜๐—ต๐—ฒ๐—ถ๐—ฟ ๐—ฏ๐—ถ๐—ด๐—ด๐—ฒ๐˜€๐˜ ๐—บ๐—ผ๐˜ƒ๐—ฒ๐˜€: ๐Ÿ. ๐‡๐จ๐ญ๐ฆ๐š๐ข๐ฅ (๐Ÿ๐Ÿ—๐Ÿ—๐Ÿ•) โ€” $๐Ÿ’๐ŸŽ๐ŸŽ๐Œ โ†’ 10M users in 18 months โ†’

See More
4 Replies
12
28
Image Description

AI Engineer

AI Deep Explorer | f...ย โ€ขย 8m

๐Ÿ” Understanding How Language Models Think โ€“ One Circuit at a Time "Circuit Tracing: Revealing Computational Graphs in Language Models" by Anthropic โ†ณintroduces a method to uncover how LLMs process and generate responses by constructing graph-bas

See More
2 Replies
4
12

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 26d

Steps to building real-world AI systems. I've given a simple detailed explanation below. ๐—ฆ๐˜๐—ฒ๐—ฝ 1 โ€“ ๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜†๐—บ๐—ฒ๐—ป๐˜ & ๐—–๐—ผ๐—บ๐—ฝ๐˜‚๐˜๐—ฒ ๐—Ÿ๐—ฎ๐˜†๐—ฒ๐—ฟ โ€ข This is where all the ๐—ต๐—ฒ๐—ฎ๐˜ƒ๐˜† ๐—ฝ๐—ฟ๐—ผ๐—ฐ๐—ฒ๐˜€๐˜€๐—ถ๐—ป๐—ด ๐—ต๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ป๐˜€. โ€ข It provides the ๐—ต๐—ฎ๐—ฟ๏ฟฝ

See More
Reply
1
1

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