AIAI EngineerJul 22, 2026· 11:06

Thinner Agents on a Smarter Substrate: The Ontology-based Semantic Layer — Emil Eifrem, Neo4j

Emil Eifrem of Neo4j argues that scaling AI agents at large enterprises requires thin agents on a smarter shared substrate built from three pillars: a business ontology naming real concepts (customers, accounts) in plain language, a technical ontology cataloging all data sources and schemas with a mapping between them, and execution traces recording each agent's attempts and outcomes. These three layers solve four problems: data discovery (teams no longer hunt from scratch), trust (top-down curation and bottom-up success signals), DRY (a single mapping propagates changes across all agents), and cross-agent learning (agents improve over time via traces). The approach is based on work with a Fortune 20 bank, a Bay Area tech platform, and a leading fintech. Eifrem says this enables many more agents without re-engineering each time.

Transcript

Agent Wiring0:00

Emil Eifrem0:13

Alright. At Neo4j, we work with some of the largest companies in the world to help make their data ready for AI agents. And today I want to talk to you about a problem that we saw emerging over the last, call it, 6 to 9 months, and propose a solution blueprint for that.

So let's say that we work at a big organization, a big bank, and we want to write an agent. Let's say that agent is helping automate the opening of a bank account,right? You can imagine that's very ripe for automation.

You want to be able to orchestrate that process. And I'm going to use the powers bestowed upon me by a short keynote slot to grossly simplify what that agent looks like. I'm going to say there's two pieces. The first one is, let's call it the business logic.

Some version of interpreting intent and plan, act, and we loop around that. It's what your agent does. And we know that when an agent acts, it doesn't always operate on data, but we equally know that in order for agents to be successful, a huge part of that is giving it access to theright data at theright time.

So the second big bucket is, let's call it the data sources. Need to identify, figure out, OK, in order to solve my problem, I need access to these few things, and wire them up and make them available to the agent.

In the example of our account opening agent, maybe we can imagine that we need to be able to validate identity. And so we might look at two data sources for that: the Department of Motor Vehicles, the DMV registry, and maybe some kind of passport verification service.

So we wire that up into our agent, and it works. It's great. It's fantastic. And at the same time, you and other teams in your organization are building other agents, and conceptually, they look very similar. So that's great.

It's fantastic. It works. But it has a few problems. So first of all, every single time a team has to build an agent, they have to figure out from scratch where the data that they require for that agent to operate, where it sits, which if you work at a startup and you have one application, it sits on top of one Postgres database, that's not hard.

Data Problems2:00

Emil Eifrem2:21

The data is in that Postgres database. But in an enterprise ecosystem, you don't have one database. You have 100 databases. And you have Snowflake and Databricks, probably, and you have S3 buckets, and so on and so forth. You have to do that work manually from scratch every single time.

And then when you've found the data sources, you know in an enterprise, there's lots of duplication of data. So then you need to figure out, like, is this theright data? Is it theright version? Can I trust it? Am I allowed to access it?

So on and so forth. It also violates one of the core principles of software engineering, the DRY principle. Don't repeat yourself. So when something changes, that cascades across all of your agents. You have to kind of manually rewire all of them all the time, which works, but it's just a lot of work.

And then finally, there's no learning around the data sources and how your agents operate on them. So when your agent wakes up tomorrow, it's not smarter than it was today. And there certainly isn't any cross-agent learning because all of that wiring between business intent and the data sources is encoded in a combination of code and prompts.

So I know what you're all thinking. Markdown files, skills to the rescue. And yes and no. You can come talk to me afterwards for kind of the full version of this, but we've seen a ton of teams that tried to solve this problem using just Markdown files.

And the summary is, it is part of the solution, but it is not the solution. But don't take it from me. Take it from Swix. A week ago on the Latent Space podcast, he said, hey, guys, you've got to learn your databases.

You cannot vibe code with just Markdown files. So we've been solving this problem at scale for some really massive organizations recently, including a Fortune 20 global bank, a massive tech platform company based here in the Bay Area, and a leading fintech company.

And the pattern that is emerging is that in order to do agents at scale, we need thin agents on a smarter shared substrate. Thin agents on a smarter shared substrate. And what does that look like in practice? There are three pillars to that.

Thin Agents4:17

Emil Eifrem4:35

The first pillar is a business-facing ontology. And the word ontology, like, I grew up in this world. People talked about ontologies forever. More recently, it's become very hyped, probably thanks to Palantir, but also the rise of AI. And there's a lot of people who want to make ontologies really complex.

Business Ontology4:35

Emil Eifrem4:53

But the core concepts are actually super simple. What are the key concepts in your organization? In our banking example, customers, accounts, debit cards, checks, transactions, and how do they all relate? But very importantly, they are expressed in a way that makes sense to all the human beings working in your universe,right?

All the people working in your company, it's expressed in that name, in that way. In other words, you don't say f_name. No, you have a customer and they have a first name. So that's the first, a business-facing ontology.

The second pillar is the technical ontology. This is all the metadata of all the data sources and data assets in your enterprise ecosystem. I have 14 Oracle databases. I have 15 Neo4j databases. I have Snowflake and Databricks, and I have S3 buckets and all of that kind of stuff.

Technical Ontology5:28

Emil Eifrem5:47

Where do they sit? What are the schemas? All of that kind of good stuff. You construct that technical ontology in three key ways that we can talk about later, though not in this talk. And then you have a mapping between the two.

So that customer that has a first name, that first name has a system of record, and over there, there's an Oracle database with a column called f_name. The mapping between the two. And then the third pillar is the runtime signals out of your agents when they walk this graph and they execute, they leave the traces around, what have I tried?

Execution Traces6:19

Emil Eifrem6:22

Was I successful? What was the outcome? The execution traces. Those three pillars. OK, so let's look at that in the context of our bank account opening agent. This is a simplified view, but you can see this graph here.

Graph Applied6:35

Emil Eifrem6:35

It has a combination of business concepts, like checks and accounts and credit history and stuff like that. This is a process-following agent or a process-guided agent. We want this type of agent to actually follow a process. We've also encoded that in the ontology, a business process.

And then if you look at the node that is surrounded by green, the check compliance one, we flip to the technical ontology. And we've put in the graph here, we've discovered and encoded that in order to do a compliance check, you might imagine that you need to resolve a government-issued ID.

And then we say that in this particular organization, there are two data sources that can help us with that. It's the motor vehicle records and the passport verification one. OK, so that's really great. So then when our agents come in here and they realize I'm going to check compliance, I need a government-issued ID.

Here are the two ways that I can resolve that. When they execute and they try that, they leave the third pillar, the execution traces for that. And they're more sophisticated than what's on this simplified slide, but it involves things like, OK, where was I?

What did I do? What is my context? And was I successful? And ultimately, it leads out to some kind of a score. And you use that as input. It's like, OK, I've been very successful using the DMV lookup, for example.

Then I'm more likely to choose one if I'm in theright context in my next invocation. Three pillars of the ontology-based semantic layer: a business ontology, a technical ontology. The execution traces taken together, they solve all four of the problems.

Solving Problems8:01

Emil Eifrem8:11

We now have a very easy way to discover the data sources. We know if they're trustworthy or not. We know that top down by some kind of human-curated knowledge,right? An administrator of some sort saying it. We also know it bottom up through the execution traces.

This is what actually worked in reality, in practice. We have a single governed place that maps business intent and the concepts to those data sources, so we don't repeat ourselves. If something changes, that cascades across all my agents,right?

And we have self-learning. So my agent that wakes up tomorrow is slightly smarter than it was today. And not just self-learning on an individual agent, but across agents as well. So we remove it from this world, a world of thick agents with manually wired data sources, into this world where we have thin agents on a smarter shared ontology-based semantic layer.

The Shift9:07

Emil Eifrem9:07

And this allows us to do a ton more agents without having to re-engineer them every time. Thin agents on top of a smarter shared substrate. If you think this is interesting, there's a documentation, a web page that outlines more information about this if you see the QR code here.

You can also come and talk to us at the booth. We have a big booth here at the expo, P3. We love talking about this kind of stuff. But not just that. This is one pattern, a very exciting pattern that we see a lot of traction aroundright now for using graphs in AI.

Resources9:29

Emil Eifrem9:45

But there's hundreds of more interesting patterns that combine graphs and AI. 10 of them are actually in the Graph Track that is kicking offright now in Room 2005. And you have some really amazing talks from organizations like the Gates Foundation, Monday.com, JPMorgan Chase, Berkeley, New York Times, and so on and so forth.

So go check out that thing. And then finally, this was primarily centered around organizations where you deal with many data sources and many agents. But if you're a startup building on Neo4j, love you. There is a startup program for Neo4j that is phenomenal.

You get access to free credit. But more importantly, we've built up a dedicated solution engineering team that spends every day working with startups for free, helping them model their data in Neo4j, tune it for performance, and so on and so forth.

So please sign up for our startup program. Thank you very much. Enjoy the conference. Have a good day, everyone.