Blog
So… what is knowledge?
The Hex Knowledge Engine picks up knowledge from all your context and agent conversations, making retrieval more efficient, faster, and more consistent.

I recently joined the product team at Hex to make context management feel...well, manageable. From my experience leading data teams, I know many are working to give agents complete business context so they can deliver accurate, repeatable answers at scale, but staying on top of that context is proving harder than expected.
That acknowledgment is what inspired us to build the Knowledge Engine, a self-learning system that reduces the burden of context management while keeping data teams in full control.
When you ask an analytics agent a question, it makes dozens of decisions about which data and context to use and how to interpret the user's intent. This behavior is happening anytime the agent’s doing more complex analysis beyond hitting a semantic model and pulling a metric - which is often the case. Now, with the Knowledge Engine, those decisions get turned into "knowledge" that the agent can retrieve later on to increase AI efficiency and ensure that answers are consistent.
And the best part (in my opinion) is the newfound observability it provides to data teams. It helps inform where your team should invest human resources in context management. You get new insight not only into the decisions the agent is making, but also into how often they’re used in your workspace conversations. This can help inform what needs to be actively managed by a human or where you have context gaps.
So how does the context your team has authored turn into knowledge?
Context is the documentation that the data team authors. This looks like the guides, models, and field definitions your team may be actively working on. Knowledge is what the agent discovers along the way as it works with your data and context. And the primary audience of knowledge is the agent, so it can find and reuse existing knowledge.
Let's walk through an example - following a piece of knowledge all the way from when it was just a morsel of context, and how it arrives on the graph created by the Knowledge Engine. Take a question like "How are our MQLs this quarter tracking per segment?" Seems pretty simple, right?

Step 1: The Hex Agent reads your context and makes decisions
First, the agent starts reading the marketing guide that defines MQL logic. Then it searches for modeled MQL data, then a semantic model defining segments. Everything the agent has pulled in so far is something your team already wrote down.

Now the agent has to decide what to do with that context. MQLs sit with campaign members, and segments sit on accounts. But nothing in it says how the two connect (read: what the proper join key is).
In the absence of that context, the agent has to make a decision on how to join them by account. It makes the right call, but that choice typically disappears once the conversation is done.

Step 2: The Knowledge Engine collects and curates agent decisions
This is where the Knowledge Engine starts its work. That join decision gets collected with the tens of thousands of other decisions the agent needed to make throughout the day across hundreds of other agent threads. Most of those aren’t worth keeping, so the engine sorts through them and decides what's important to keep. The join from MQLs to segments is one of them, it’s the kind of decision other questions will run into too.
Then the Knowledge Engine files new information into your existing graph, flagging any conflicting guidance, merging duplicates, and supporting information with any existing knowledge.

Step 3: That decision becomes knowledge
Since none of the context available in your workspace defines this join, this decision makes it through the curation process and lands in the graph as a new piece of knowledge in the graph.
This is what we mean by knowledge: a single, reusable piece of information derived from the raw context you've defined and what the agent learns along the way. Units of knowledge are small and discrete, making it easier for the agent to find exactly what it needs.
To land that this was the right way to join account segments with MQLs, the agent needed to read through a long guide, semantic model, two tables, and a published project.

The result: the agent is faster, more efficient and consistent
Next time anyone in the workspace asks about MQLs in relation to segments, the agent will route to that knowledge instead of figuring it out all over again.
Before, it re-learned that join a ton of times. What a waste of tokens! Now that decision is indexed, so the agent only needs a lookup to take the same action. That means faster, more efficient, and consistent answers no matter who asks. Not only are units of knowledge reducing the number of calls the agent needs to make, but we’re also breaking down your authored context into the ideal format for agents to retrieve.

Where knowledge comes from
Our example only shows us one way knowledge is created.
Some knowledge is learned, like the join between campaign members and accounts, which the data team never explicitly defined. Each piece of learned knowledge gets a status based on how well it’s corroborated by authored context, because the agent shouldn’t treat all knowledge equally.
Other knowledge is lifted straight out of your context. Guides can be really long, and the agent may not need all the great info they contain to answer a question. It just needs the snippet that defines an MQL as a campaign member with a qualification date. The Knowledge Engine breaks down your guides, models, and projects into units of knowledge. Each unit of knowledge gets a verified status and is tied to its source.
And each unit of knowledge stays in sync with the source it’s tied to. If your team changes guides or models, the Knowledge Engine picks up those changes.
Learned knowledge fills in the gaps of the rest of the decisions that agents need to make when working with your data, and you can always choose to promote those into your defined context so that the agent relies on that information and sees it as truth.
See what your agents are learning
By breaking context down into knowledge, Hex gives the agent a faster way to find what it needs and a single place to see what it’s learning through your context and agent conversations.
This isn't a new goal for us. In 2022, before agents were doing any of this work, we introduced the Knowledge Library. We built a set of workflows to solve analyses that piled up as one-off stories and were hard to rediscover once a team grew and people came and went.
But now it’s not just people searching for analyses. Agents are too, and they’re doing it at a much greater scale and speed than humans ever were. Our solve is the Knowledge Engine. It gives agents a graph that maps all the facts Hex knows about how data is defined and where it originated, serving as the primary search interface for all context retrieval and analytics work in Hex.
Curious what your agents are deciding when you're not looking? Join our CEO Barry McCardel and me on Thursday, December 10 at 11 AM ET for a live demo of the Knowledge Engine and Q&A. Can't make it? Register, and we'll send you the recording.
If this is is interesting, click below to get started, or to check out opportunities to join our team.