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
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
110
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
8
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
17
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
17
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
26
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
26
"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
20
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
43
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
23
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
31
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
25
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
24
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
24
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
22
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
38
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
22
The riskiest number in a legal AI summary is a deadline. "Respond within 30 business days." Letter lands March 3. The LLM counts calendar days: April 2. Real deadline: mid April. Count days in code with a holiday calendar, never in the model. #LegalTech #NeuroSymbolicAI
27
Insurance AI reads the policy right and the date wrong. Water backup cover added in June. Basement flooded in April. The LLM reads today's policy, says covered. What counts is the version in force on the loss date. That's a lookup, not judgment. #InsurTech #AIAgents
2
1
92
Your fraud model's newest training data is its most wrong. A stolen card gets used today. The chargeback can land weeks later. Until then, the row says "legit." Retrain on last week and you teach the model this month's fraud is normal. #FraudDetection #MLOps
1
31
I made my agent write down what it expected before every tool call. Then I diffed that against what happened. Happy path: almost always right. Right after a failed step: mostly wrong. That gap is the world model it's missing. #WorldModels #AIAgents
1
26
I kept tuning embeddings for a docs bot that missed one question: "who approves this?" New reranker, bigger chunks. Still wrong. The fix was a small graph: teams, owners, approvers. Similarity finds related text. It can't follow a chain. #NeuroSymbolicAI #KnowledgeGraphs
28