Dev Narware (@devnarware) header
Dev Narware (@devnarware) profile picture

20, Building, breaking, learning daily

Home
Joined April 2024
You Become what you think about....
1
2
7
187
bro is the happiest man alive rn
Replying to @PopBase
I DIDNT SELL MY NVIDIA STOCK
6
217
Replying to @iamsaranhere
you got scammed
1
11
Replying to @iamsaranhere
the greatest estate developer
1
1
6
Yeah.. so we are cooked
2
5
60
Replying to @amanntwt
Smasher
1
1
239
Replying to @IAmManware
wait... i watch your videos, great videos btw
21
Replying to @parthak
thanks bro
1
8
Replying to @ireapreward
free code camp?? i watched the akhil sharma video, i wouldn't say i did it completely on my own, but i didn't just copy-paste either
2
78
What a manhwa! Found something interesting after a very long time, tbh after a year Spent a full day on it, and I'm just halfway through.
1
1
3
105
Replying to @krishkaneki
damn this looks cool, who's concert is it?
24
take care about the things which are imp, X is just shit
1
14
Replying to @Himanshi1286
100 days on leetcode too, great 🙌
2
6
Thanks for 500 followers Grateful for everyone who's following me 🥺
3
1
14
170
Replying to @avinxshKD
Happy Birthday bhai 🥳
4
Q: Explain the ReAct pattern. Why is it foundational? Ans: ReAct stands for Reasoning + Acting. Instead of answering i n one go, the model alternates between thinking and doing: Thought: works out what it needs next Action: calls a tool (API, DB, search, etc.) Observation: reads what the tool returned Repeat until it has enough to answer Nearly every agent framework you’ll use (LangGraph, OpenAI Agents SDK, CrewAI) runs some version of this loop under the hood. Example trace: “Why is the payments service failing?” Thought: I should check the service’s recent error logs first. Action: get_logs(service="payments", level="error", last="15m") Observation: 240 errors, all “connection refused: db-primary:5432” Thought: It’s failing to reach the database. Let me check the DB’s health. Action: get_db_status(instance="db-primary") Observation: {“status”: “down”, “reason”: “disk full”} Thought: Root cause found. I can answer now. Answer: The payments service is failing because db-primary is down with a full disk. Why it’s foundational: 1. Grounded in reality Each step is based on real data from tools, not on what the model happens to remember. That cuts down hallucination. 2. Debuggable The reasoning is visible, so when it picks the wrong tool you can see why. 3. Errors become input A failed tool call comes back as just another observation. The model can read it, adjust, and retry or switch tools instead of crashing. The limit you should mention: The “Thought” text is NOT a faithful record of what the model actually computed. It’s a plausible story the model writes, so don’t treat it as an audit log. In production: Keep actions structured (JSON schemas) Validate every tool call before you run it Log the real tool calls and results, not just the thoughts Common mistake in interviews: Describing ReAct as “the model thinks step by step.” That’s chain-of-thought. The whole point of ReAct is the action-observation loop that ties the model to the real world. Common follow-up: “How is ReAct different from Chain-of-Thought?” CoT: reasons in one pass, never touches the outside world ReAct: reasons, acts, observes, and uses the world as its source of truth One-line summary for interviews: “ReAct alternates reasoning with tool calls, so every step is checked against reality. That loop is what turns a model that talks into an agent that works.”
4
21
666