Do You Need a Context Engine? Build vs. Buy Starts with Your Scale and Use Case

AI agents have to understand your business before they're useful, starting with what you mean by a customer or a margin. To close that gap, many teams have started building the context themselves.

It usually starts small. One person or team builds context for their own AI use: a knowledge base assembled from PDFs and internal docs, usually stored as markdown and instruction files. Customers and CData teams alike have done this, largely because no purpose-built alternative existed. For one person working alone, it works. But when the second a team needs the same context, this breaks. The hard parts are:

  1. capturing the context from the systems and documents where it lives

  2. distributing it

  3. controlling who can see it

  4. keeping it current

Together, these four challenges are what the build vs. buy question for a context engine comes down to.

Why teams start in files

In conversations with customers and our own teams, we’ve found that starting in files is often a deliberate choice. Anyone can start to record or collect context in files, results show up in the first session, and nobody needs approval from IT. AI tools make it easier still: even business users can create skills that have an agent write the context down.

The knowledge in those files is also worth keeping. Deciding what's true, what's current, and who owns each answer is specific to each company, and no vendor can make those calls for a customer.

IT or technical colleagues could then take those files and vibe code a shared system with Claude Code that makes the context available to others. A first version can come together in an afternoon. The hard part is making it work company-wide, where each of the challenges above gets harder as the setup.

1. Context lives in more than one place

Hand-built files hold some valuable context, but most of a company's context sits elsewhere: the schemas and relationships in each system, the metrics defined in tools like dbt and Power BI, the wikis and playbooks that describe how work gets done, and the decisions made in chat channels. Pulling all of that together, and working out what it means, is more than a hand-built file does.

2. Distribution needs infrastructure

Distribution is where files break down next, even when capture goes well. For every client to use the same context, it has to be published company-wide, which typically means an MCP server that all clients can query. Behind the server sits a hybrid index that combines vector and full-text search. That's infrastructure work, and rarely falls to the person who knows the content best.

That index has to be built and then updated as documents change, or answers drift away from the source. Each request also has to be tied to the person asking, so the system knows which content that person may see. None of this is hard in a prototype. Running it for a whole company, with real load and a security review, is a separate project.

The same limit applies to the skills business users write: a skill helps only if the agent chooses to invoke it, and whoever wrote it can't control when that happens, because it depends on the environment the agent runs in. Context that an agent can ask a server for doesn't depend on that choice.

A recent example: a product manager at one financial services customer I spoke with recently assembled a shared knowledge base from PDFs and internal documents, drafted with AI and checked by hand so incorrect material stays out. This is an edge case: the content is small, and curated by one person, so capture was already handled and the problem starts at publishing. Today the files go to whoever asks, and each person's AI works from a local copy.

3. Shared context needs permissions

The same customer runs into this as well. A hand-built knowledge base reflects the perspective of the user who built it, but who may see that information differs across the company, and that has to be considered once the context is shared.  We see this also inside CData. Our product team keeps a knowledge base for its own use. It includes plans that aren't final, so sales shouldn't have access: those details could reach customers as commitments. Finance context has different readers and editors than HR context.

In a team of 20, files can be shared manually. In a company of 200, sharing has to respect permissions: HR context shouldn't reach marketing, and legal context shouldn't reach HR. In a homegrown build, each set of permission is another feature to build, and maintain.

4. Someone has to keep it current

Another customer, in the automotive parts industry, built its own internal AI platform that connects a custom LLM environment to its ERP systems. It rests on one developer. The platform works today, but the risk is what happens when that developer leaves, and who keeps it current as sources and models change. I saw the same pattern repeatedly in my years leading Data Virtuality, a data virtualization product.

A homegrown context engine has the same weakness, and stale context does more harm than none, like a GPS with the wrong directions. Even IT teams that can build it still have to keep it current. It’s the same argument as buying a connector when Claude Code could write one quickly: the first version is fast, but the maintenance never stops.

We see a small version of this at CData too. We're building an agent that reviews content for the whole team, and feedback from three reviewers has to flow back into it. Without a shared context layer, that would mean people updating markdown files across the team and keeping them in sync by hand.

Define the context, buy the machinery

When context serves one person or one team, building it yourself is reasonable. Once it has to serve the whole company, these four challenges point to a split. Define the context: what your terms and metrics mean, who owns each answer, and which source to trust. Buy the machinery: capturing context from your systems and documents, the distribution interface, the hybrid index, the permissions, and the maintenance that keeps every agent working from the same source. In a good engine, that decision stays with people: when it can't resolve something, such as two definitions of the same metric, it asks the right person and folds the answer back in as a reviewable change.

Five questions sort most cases:

  1. Does the task need business context? If the agent can work from the document in front of it, no. If it has to understand how your systems, definitions, and rules relate, yes.

  2. Where does the context live? In one folder someone wrote, or across many systems and documents? The more places it lives, the more capturing it is worth buying.

  3. How many teams need this context? One team can run on files. Several teams need a shared, published source.

  4. Does anyone need to be kept from part of it? If so, permissions have to be designed in from the start.

  5. Who keeps it current when its author moves on? If there's no clear answer, that part is better bought.

The context files and knowledge bases teams have already built aren't wasted. They become part of the content the engine publishes. Context is stored as plain markdown files, one per concept, so a well-kept folder is close to what the engine already holds.

Put the context you've already built to work

Hand-built context is a fine place to start. The Context Engine in CData Connect AI captures context from your connected systems and documents, adds the knowledge your teams have already curated, and publishes it through an MCP interface with a hybrid index, so the same context reaches every agent that needs it.

Your enterprise context, ready for your agents.

The Context Engine in CData Connect AI brings schemas, definitions, and documents together, serves them to your agents and assistants through MCP, and applies the permissions you set.

Learn more