Elastic's Ajay Nair: agents need one retrieval layer, not one database
Key takeaways from theCUBE interview with Elastic GM of Elasticsearch and platform Ajay Nair at AWS re:Invent (November 2026):
Agents are now the main data consumer. A year ago most enterprise data was consumed by people or dashboards; now it is agents that run 20 queries in a loop, pull context, pivot and act. That makes retrieval a compounding, search-like problem across many sources, which most data infrastructure was not built for.
"Demo is not production". Agents that shine on packaged sample data often fail on real enterprise data spread across systems, formats and languages. Nair said this is rarely the model's fault; the context layer around the agent is what separates demos from production.
Consolidate retrieval, not databases. Rather than merging every data store, Nair argues for one structured, auditable, permission-driven retrieval layer that reaches out to existing sources. Elastic's recent federated data source launch is built for this. Because agents act rather than just answer, a wrong action is destructive, not merely embarrassing.
Search and analytics on one platform. Every seam between separate systems costs the model money and accuracy. Elastic says a newly launched feature makes storing and querying time-series data in Elasticsearch 16-18x cheaper. Adobe runs live search and recommendations on Elasticsearch on AWS and measured a 15% lift in conversion and about 20% higher order value.
Measure tokens, not just accuracy. Nair splits retrieval quality into exact match (precision and recall), intent-based or vector search, and token efficiency. Early agentic apps spent 20-30x the cost of a simple database call by recomputing relationships and access control each time. In Elastic's tests, context-engine optimisations cut one agent's tool calls from 33 to nine, with 71% fewer tool tokens.
Elasticsearch retrieves, Bedrock generates. On AWS, Elastic is the context provider for agents built with Amazon Bedrock models such as Claude or Titan, combining keyword, vector and geo search in one query, and swapping the model is a configuration change. Elastic has also integrated its observability context with the AWS DevOps agent so the two can diagnose incidents together.
Models are a commodity, data is durable. Seven new model families or versions launched in September alone, Nair said, so teams should invest in a durable retrieval and evaluation layer. Freshness is a cost trade-off, and permissions must be enforced inside the query by the data layer: a model that guesses permissions right 99.9% of the time causes a breach the other 0.1%.
Read more: theCUBE on YouTube