Building AI Agents: Lessons Learned over the past Year
Building production AI agents proved far harder than early prototypes suggested; agents initially struggled to generalize to all real-world scenarios across disparate data sources and businesses.
Agents on weaker models hallucinated table names instead of searching for real ones; agents silently ignored columns listed in tool-call responses due to markdown formatting; fine-tuned models degraded reasoning by causing agents to short-cut their directions.
After extensive iteration, the team achieved a baseline of stability and performance across disparate data sources and businesses, with Fortune 500 users relying on the agent daily for data analysis.
Frequently asked questions
What did this team achieve with this AI workflow?
After extensive iteration, the team achieved a baseline of stability and performance across disparate data sources and businesses, with Fortune 500 users relying on the agent daily for data analysis.
What tools did this team use?
gpt-4o, Claude Opus, Claude, Command R+, gpt-4-turbo, gpt-3.5-turbo, gpt-4–32k, RAG, LangChain, LlamaIndex.
What results were reported?
text-to-SQL benchmark accuracy ceiling: 80%; ACI iterations: hundreds of times; SQL error resolution rate: a vast majority of the time; New model deployment speed: within 15 minutes (source-reported, not independently verified).
What failed first in this deployment?
Agents on weaker models hallucinated table names instead of searching for real ones; agents silently ignored columns listed in tool-call responses due to markdown formatting; fine-tuned models degraded reasoning by ca…
How is this back office ops AI workflow structured?
User submits objective → Model called for completion → Tool calls executed on data → SQL errors fed back to agent → Agent delivers final output.