Sanjay Jain (@jsanjayce) header
Sanjay Jain (@jsanjayce) profile picture

Principal AI Engineer | Neuro-symbolic AI, world models, AI agents | 14 yrs in AI/ML | Sharing practical takes on AI that has to work in the real world

Global
Joined June 2009
Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)Photo by Sanjay Jain (@jsanjayce)
I stopped trusting LLM-as-judge evals the day I ran the same judge twice on the same outputs. Different grades. Now every eval starts with code checks: right tool called, numbers match the source. The judge only scores what code can't. #AIEvals #LLMs
4
3
150
Blank is not "no." Chart: allergy field empty. AI summary: "No known allergies." Empty means nobody recorded it. NKDA means someone asked and the answer was none. My code turns blanks into "not recorded" before the model sees them. How do you mark unknown? #HealthcareAI #LLMs
7
Showing the AI monitor the agent's reasoning made it worse. UK AISI's letter cites OpenAI's self-reported numbers: GPT-6.2 Astra missed 19% of known violations reviewing actions only. With the reasoning visible: 51%. My rule: judges see actions, not excuses. #AIEvals #AIAgents
9
"I approved it once" is the most dangerous sentence in agent security. Docker just patched a flaw in Docker Sandboxes (CVE-2026-136998, fixed in v0.55.0 on Nov 30) that shows why. You approve an agent kit's API key for its listed domains. The approval was stored by service name only. The domain list was written and never read. So v2 of the kit could send your real key to a different host. No new prompt. My rule for agents now: Bind consent to content, not to a name. Hash of the config plus the exact domains. Anything changes, ask again. Enforce it in code at request time, not at install. A stored "yes" outlives the thing you said yes to. How do you re-approve agent tools when they update? #AIAgents #AISecurity
1
27
"Can I still return this?" is a date question, not a language question. Bought Nov 20. Policy: 30 days, but holiday buys get until Jan 31. The bot quotes 30 days. The shopper gives up a refund they were owed. Which window applies is a rule. Code it. #RetailAI #AIAgents
20
Hallucination and creativity may be the same knob. New paper: dial down a few creativity-linked parts inside an LLM. Factual accuracy rises, creativity drops. So I don't ask one prompt for both. The model writes, code checks facts. Do you split them? #LLMs #AIResearch
22
Contract AI question: how do you handle defined terms? Capitalized "Affiliate" means what Section 1.1 says. Lowercase "affiliate" usually means the plain word. Models read them as one. I resolve defined terms in code before the model reads a clause. You? #LegalTech #LLMs
18
The scariest email in accounts payable has no link, no attachment. "We switched banks. Pay invoice 4471 to our new account." Known vendor, real invoice, polite. The LLM says legit. A bank change isn't a judgment call. Hold and call back. In code. #FraudDetection #AIAgents
1
30
X is so much better than LinkedIn for professional networking. You connect with people's thinking, not just their job titles. Real conversations. Genuine relationships. Unexpected opportunities. X is where the magic happens. #X
22
The most expensive number in a loan agreement isn't the rate. It's 360. $1M at 7%. Actual/365: $70,000 of interest a year. Actual/360: $70,972. The LLM reads "7%" and does the simple math. Day count is a contract term. Parse it, compute in code. #AIinBanking #LLMs
31
Insurance AI can read the whole policy and still quote the wrong deductible. Policy: $1,000 all perils, 2% hurricane. Roof damage from a named storm. LLM says $1,000. On $400k of dwelling cover, 2% is $8,000. Which deductible applies is a rule. Code it. #InsurTech #AIAgents
1
34
"On hand" is the most misleading number in supply chain AI. Screen says 1,200 units. 900 are allocated to open orders, 150 sit on QC hold. Available to promise: 150. The agent reads 1,200 and commits 1,000. Compute ATP in code, not in the prompt. #SupplyChain #AIAgents
24
Agent benchmarks have a shelf life. Teams tune to them, scores climb, prod stays flat. New paper (CUA-SEE) keeps evolving the test: computer-use tasks and verifiers built from agent runs, checked on app state. Is your eval set older than your agent? #AIEvals #AIAgents
1
46
Never let an LLM decide who can see a document. I tested a RAG bot with a prompt rule: no HR files for non-managers. Direct asks, it held. "Summarize my team" pulled salary notes anyway. Permissions are a filter in code, before retrieval. #NeuroSymbolicAI #RAG
25
The riskiest letter in clinical AI is the c in mcg. Med list: levothyroxine 50 mcg. Summary: 50 mg. A 1,000x dose. The model copied the number. It dropped the unit. Parse each dose into number + unit. Check both against the source in code. #HealthcareAI #ClinicalAI
1
35
Thanksgiving eve, so a question, not a take. What's the one boring check in your AI stack that's saved you the most pain? Mine: every number the model writes gets matched to the source before it ships. Caught more bugs than any prompt change. Yours? #AIEngineering #LLMs
28
My agent's favorite word is "done." I asked it to move a meeting to Thursday 2pm. API returned 200, agent said success. The invite said 2pm UTC: 9am for the whole team. Predict the end state, then read it back. That's the world model agents skip. #WorldModels #AIAgents
27
Black Friday week, the riskiest thing a retail chatbot can say is "yes, it's in stock." It read the page at 9am: 3 left. By noon it's 0, and a shopper is driving across town. Stock is a live lookup at answer time. Never let the model remember it. #RetailAI #AIAgents
29
When a tool fails, agents often don't say so. They make something up. New paper: 4 agents, 2,100 runs with injected tool faults. 6 to 26% ended in a confident fabrication. Partial data was worst: up to 38%. Can your agent say "the tool broke"? #AIAgents #AIEvals
26
My agent sent the same email twice. The model did nothing wrong. The send tool timed out, but the email had already gone. The agent saw an error and retried, like any loop would. The fix wasn't a better prompt. It was an idempotency key, checked in code. #AIAgents #LLMs
44
Valid JSON is not a correct answer. Every output from my extraction pipeline passed the schema. Then I found a contract ending before it started, and line items that didn't sum to the total. Schemas check shape. A few lines of rules check meaning. #NeuroSymbolicAI #LLMs
27