
A demo runs on neat, digitized information, but a real enterprise runs on metrics, logs, PDFs, and tickets spread across many systems, along with rules that differ from one company to the next. That difference explains much of the gap between a promising AI pilot and a dependable production system.
Ajay Nair, GM of Elasticsearch and Platform at Elastic, spoke with Shivani Muthanna of YourStory about where that gap opens up and why a more powerful model rarely closes it. He also shared what enterprises can do before they scale.
Where pilots start to break
Nair said demos have moved from chatting with data to AI taking action on a user’s behalf, most visibly in coding and customer support. He finds it helpful to think in three layers: how data is stored, how it is retrieved, and how models or agents act on it. Problems show up in all three, and once a pilot meets real enterprise data, three come up most often.
The first is data readiness, and Nair sees it more than any other. “The number one biggest problem I see customers face is their data isn’t AI-ready,” he said. Most enterprises, he added, have not yet worked out how to bring that scattered information together and make it usable for AI.
The second is context. “Models are great at general-purpose workflows. When you start coming into enterprises, everything is specific,” he said. One company’s way of resolving tickets can look different from another’s, shaped by its rules, regulations, and people. Giving a model or agent that business context means digitizing it, or getting it out of people’s heads.
The third is cost. Every action a model takes on real enterprise data comes with a cost, and teams often look at their token bills and say, in Nair’s words, “This is way more than I estimated.”
The model is not the whole story
When results wobble, the model is the usual suspect. Nair said that is getting harder to justify as models improve. The larger issue is that enterprises expect too much of them. He likes to say that “models are great at probabilities, but enterprise data requires a lot of certainty”. Being right 99.9% of the time and 100% of the time are very different things in an enterprise workflow.
Models also work only with what they are given. Most are trained on public data, so a use case like food delivery in India or job search in Singapore needs extra tuning. The instinct is to swap in a bigger model. But without fixing the inputs and the system around it, “you’re just signing up for the same failure mode again, just with a different model to blame.”
Fixing the inputs leads to the second of Nair’s three layers: retrieval. Enterprise information is spread across documents, databases, logs, tickets, and applications. For an AI system, Nair said, the big question is what counts as relevant information and what counts as the right information.
Getting retrieval right
Retrieval is not a new problem, but AI has raised the stakes because it acts autonomously and at a scale humans never did. Take customer support. Looking up a customer’s record means being accurate about who the customer is, where they are, their transactions, and any compensation offered if something went wrong, with no room for mistakes. That information sits across several systems. A human knows where to pull each piece from and puts it together. For a model, that knowledge has to be built into the technology.
Nair splits the task into three jobs: connecting to data sources securely, pulling the right set of information, and using judgment to combine it. “You don’t want to pull millions of customer records and transactions just to find yours,” he said. Models excel at judgment. The other two jobs are best optimised for search systems and data stores, which have handled them for decades. That is especially true of Elasticsearch, he noted, whose ability to search unstructured data has long been a reason customers choose it.
From RAG to context engineering
Retrieval-augmented generation (RAG) lets a model combine its general knowledge with a business’s own data. But it makes the model rebuild that understanding on every transaction, spending GPU cycles and producing a probabilistic answer. Context engineering flips the approach.
As Nair describes it, the idea is to say “let’s precompute that as fast as we can.” Whatever can be handed to the AI deterministically is prepared ahead of time, leaving the model with true judgment calls. Even the actions themselves, he noted, are getting codified into things like workflows. The shift, he said, is to engineer the relevant information and signals at data preparation or index time, rather than only at retrieval.
Permissions and freshness
In India, enterprises also work under the DPDP Act, sector guidance from regulators such as the RBI, and data residency policies, while employee access keeps changing. Nair called it a problem a company like Elastic wrestles with every day, and one that has to be treated as a retrieval problem. “You cannot separate the data design problem from a retrieval problem,” Nair said. Many enterprises, he added, start by assuming that giving a model access to the data is enough, then quickly step back, because the model does not know when that data has changed.
Take a search that ranks the 10 best of 100,000 documents and only then applies permissions. If nine are off limits, the user is left with one result, even though better candidates may exist. Permissions must be a signal inside retrieval itself, and freshness needs the same treatment. A model only pulls data when it needs to, so something in the background has to keep pushing new information to it. Those freshness and permission signals, he said, are becoming critical to context engineering as an emerging discipline. The aim, Nair said, is to separate retrieval, ranking, and judgment, and let the model focus on judgment.
When agents act
Agents raise the stakes further. Nair put it bluntly: “A wrong answer is embarrassing for a company. A wrong action is catastrophic.” A model cannot guess who has access to what, because even a 0.1% miss is a security breach. Just as important are guardrails on the action itself. Every action an agent takes should be auditable and predictable to some degree, Nair said, which ties back to the regulations enterprises face. That means handing it to systems that can act deterministically.
Token costs are a moving target, Nair said, and can change between the time a pilot runs and the time it launches. Before scaling a pilot, he suggested three checks. How does the system react when data and permissions change? An intermediate query layer or data store helps here, he said, because it can carry those signals at query time. Is each job matched to the right model? In Nair’s view, “it is never one model for all jobs.”
One model may prepare data for the data store, another may extract vectors to make it searchable, and a third works with the user. Cheaper, specialized models can handle the earlier steps, and picking the right model for each job is one of the most cost-effective moves available. And can the workflow be codified? If not, “expecting a model to recreate that is just setting you up for a very expensive experiment”. That bit of preparation, he added, can save a lot of tokens.
What will separate enterprises that get from demo to production, in Nair’s view, is preparing data for AI: inventory your data sources, understand how access works on each, and make them consumable for AI, an area where search solutions such as Elasticsearch can make a difference. Retrieving across petabytes of data, extracting the most relevant signal, and feeding it to the model is, in his view, the most efficient way to get there. “Prepare your data for AI, and that sets you up for success,” he ended.


Comment
0Upholding journalistic discourse. No registration required.
No comments yet. Share your perspective!