Back to all articlesBuild or Buy an AI Context Layer? A Decision Guide for Data Teams
AI

Build or Buy an AI Context Layer? A Decision Guide for Data Teams

Your data team already has dbt metrics and an internal agent. Finance changes which customers belong in the monthly review, and an engineer must copy the new instruction into each tool. Should you maintain that process or buy a context product? Build when a specific unmet requirement justifies the ongoing work. Buy when a pilot shows that a product removes that work while preserving the calculations, permissions, and agent interfaces you need. Keep a hybrid option if only part of the workflow needs replacing.

The useful comparison is the same change carried through each option: who makes it, who reviews it, which consumers receive it, and how a second engineer checks the next answer. The scenario is hypothetical; the decision should use your team's observed work.

Product documentation checked October 17, 2026. The pilot below is a proposed evaluation method, not measured Orion results.

What are you actually building or buying?

An AI context layer is the system that selects and supplies the business meaning, source information, and operating instructions an agent needs for a task. In an analytics deployment, it should connect a business question to the right governed calculation and the context needed to interpret its result.

Separate the purchase into responsibilities before comparing products:

  • Governed calculations: approved metrics, dimensions, joins, and time rules.
  • Business meaning: vocabulary, reporting intent, events, exceptions, and accountable owners.
  • Context delivery: selection, retrieval, permissions, and interfaces to consumers.
  • Operations: changes, review, evidence, evaluation, failure handling, and maintenance.

Keep the responsibilities visible even if one product bundles several of them. Buying a retrieval service does not answer who approves a new customer definition. Buying an analytics agent does not establish that another independent agent will use the same context.

Anthropic's Contextual Retrieval explanation, published September 19, 2024 and checked October 9, 2026, describes improving how document passages are retrieved with additional explanatory context. It is a useful building technique. It does not by itself specify your business approval process or metric execution policy.

What should stay in dbt if you buy a context layer?

Keep governed metric calculations in the system your data team already owns. The dbt Semantic Layer documentation, updated September 29, 2026, describes centralized metric definitions and MetricFlow-powered queries. Business context can help select and explain a calculation without creating a second formula in a prompt library.

For example, a finance note can explain that the monthly operating review uses net revenue and a fiscal reporting period. The net-revenue formula remains governed in dbt. A request to change that formula should follow the metric owner's process, whether the context interface is internal or purchased.

dbt also offers building blocks beyond structured metrics. Its September 16, 2026 context-engineering article, checked October 9, describes an open-source package for working with unstructured text using dbt models, including chunking, embedding, search, versioned prompts, and initial grounding tests. It identifies semantic search as its most proven pattern and describes other capabilities as earlier or in beta. Evaluate the specific maturity your use case requires.

An existing warehouse and dbt investment can therefore support an internal approach. It still needs an interface for owners, access controls, consumer integration, and operating support appropriate to the rollout.

For the conceptual boundary, see Semantic Layer vs. Business Context. During a pilot, inspect how the calculation actually executes. Reading dbt metadata is different from invoking an approved metric.

When does an internal build make sense?

An internal build makes sense when you can name a requirement a product cannot satisfy and can assign the work needed to meet it. The requirement might concern deployment constraints, a proprietary context representation, an unusual approval process, or a consuming application that requires a custom interface.

Consider an internal build when:

  • Your existing agent and infrastructure already solve most of the required workflow.
  • The missing behavior is specific, testable, and important to the business.
  • A team owns maintenance, incident response, and changes to connected systems.
  • Business owners have a practical way to contribute and review meaning.
  • A second engineer can operate the system using its documentation and evidence.

Start by extending the smallest missing responsibility. If the only gap is a review queue around a versioned context repository, test that queue before committing to a broader platform.

Control has a cost even when the components are open source. Your team must decide how to deploy them, update them, investigate failures, and preserve context behavior across interfaces. Put that work in the comparison rather than treating component availability as a finished system.

When is buying the better choice?

Buying is a strong option when the recurring workflow fits the product and the product removes work your team does not want to maintain. The purchase should provide evidence of that reduction under your own definitions, identities, and consuming tools.

Look for demonstrated reductions in activities such as:

  • Moving approved context between tools by hand.
  • Translating every business correction into an engineering task.
  • Maintaining editing, review, and analysis interfaces.
  • Investigating answers without access to their sources or executed logic.
  • Repeating connection and configuration work for each deployment.

Keep the remaining customer work explicit. Your organization still determines what a metric means, which sources are authoritative, who may approve changes, and which failures block rollout.

Airbyte's integration decision guide, checked October 9, 2026, separates authentication, connectors, normalization, ingestion, context delivery, and user interfaces. That distinction is useful here: a connector purchase and a complete operating workflow have different boundaries. Airbyte's recommendations reflect its integration-provider perspective; they do not establish Orion's capabilities or your likely savings.

How do build, buy, and hybrid approaches compare?

Compare responsibility and evidence rather than awarding points for feature names. The following table is a decision framework, not a vendor ranking.

ApproachStrong fitWork your team retainsMain trade-off
Internal buildImportant requirements exceed available products; an accountable team can operate the resultImplementation, upgrades, interfaces, support, meaning, access policy, and acceptance testsMore implementation control, with ongoing responsibility for the whole deployed path
Purchased productThe documented workflow fits and a pilot demonstrates reduced operating workSources, definitions, approvals, configuration, integration gaps, and acceptance decisionsExisting product surfaces, with dependencies on vendor behavior and supported boundaries
HybridExisting metrics or agents should remain, but some context operations need a maintained productResponsibility at each boundary, adapters, monitoring, and shared release decisionsSelective reuse, with extra coordination wherever two systems meet

A hybrid design needs clear boundaries. For example, dbt may own the approved calculation, a context product may hold the reporting note, and an internal application may choose the allowed tools. Record who changes each part and how a reviewer sees which parts a run used.

Avoid assuming that a common interface makes behavior identical. Each consuming agent still has its own configuration and available tools. Verify the path it uses.

What work will buying actually remove?

Start with one recurring question and the system you already operate. A net-new internal platform is the wrong baseline if a small improvement to your current dbt, BI, or agent setup can meet the requirement. Test that smaller option alongside a purchased product and a hybrid.

In the hypothetical finance review, keep the approved revenue calculation in dbt. Change only the reporting instruction about which customers belong in the review. Have the business owner propose the change, use the intended review process, then ask the question again through each required consumer. Inspect the selected customers, reporting period, calculation path, and supporting evidence. Separately check that a user without access cannot retrieve or open the restricted output.

Record what each person actually does. Business review may remain identical across options. An internal build may require an engineer to distribute the instruction; a purchased path may require configuration or an adapter instead. Record either outcome, including vendor assistance. A product has removed this distribution task only if the intended consumers demonstrably receive and use the change without that task.

Use a short event record: the question and change, the people involved, active work time by role, elapsed time, and the evidence that the result met the agreed conditions. Include failed attempts and corrections. Keep credentials, data access, model settings, and the reporting cutoff comparable, or describe the differences. Have a second engineer repeat the check without relying on the original builder's memory.

Compare the future work, not just the model bill

Choose a planning period and estimate each option's remaining setup and migration, maintenance, business review, support, commercial charges, model and warehouse usage, and eventual transition. Record actual commercial terms: retries, autonomous runs, support, usage limits, and costs billed outside the product. Leave an unverified quote unknown.

Measure routine questions separately from difficult investigations. For each group, record requests attempted, answers accepted under the agreed conditions, reruns, and human review. Include the work spent on rejected answers. A low cost per accepted answer can hide poor coverage if the system declines most questions, so report acceptance and unresolved failures alongside it. Allocate shared maintenance once; do not count the same time in both the event log and a monthly allowance.

Distinguish cash spending from staff capacity. Fewer engineering hours may free time for another project without reducing payroll. Keep the time needed to approve business meaning on both sides unless the pilot demonstrates a change. Show which tasks disappear, which move to another owner, and which remain.

Treat a short pilot as evidence about the events it exercised. Use your own observed change frequency to estimate recurring work, with a range for uncertain events. Mark rare incidents that were tested deliberately. Past build spending is useful history but is already spent; compare future work from today's decision, including migration if you switch.

How can you test the decision before committing?

Run a bounded pilot that includes change and handoff. Use the same business workflow, reference answers, permitted identities, and reporting period for each candidate. Keep the evaluation conditions recorded so differences are explainable.

  1. Choose a real workflow and owner. Start with a defined finance review or another recurring question. Identify the authoritative metrics, sources, reviewer, and intended consumers.
  2. Establish the reference. Record a known answer under the intended metric definition, filters, period, and data cutoff. Add an ambiguous request and a source failure.
  3. Configure each candidate. Record vendor assistance and internal effort. Treat unimplemented integrations as gaps rather than completed features.
  4. Change one business rule. Ask the business owner to propose it, have the intended reviewer decide it, and inspect the next run. Keep calculation changes in the governed metric process.
  5. Exercise another consumer and a restricted identity. Inspect context selection and execution, including saved or delivered output access. A working first client does not prove the second one works.
  6. Hand the system to another engineer. Have that person locate the current definition, inspect a challenged answer, identify a failed source, and explain the recovery path.
  7. Review the ledger. Decide which work disappeared, which work moved to another owner, and which requirements remain unknown. Assign an owner and acceptance condition to each remaining gap.

These steps compare operating burden. For deeper answer-quality tests, use How to Evaluate an AI Analytics Agent Before You Buy. For release changes, use context-layer regression checks.

Where does Orion by Gravity fit?

Orion by Gravity is worth evaluating when the missing workflow includes maintaining business context and producing inspectable analytics answers. Compare its demonstrated path with the parts of your internal stack you intend to retain.

Orion's page documentation describes editing, revision history, project context, and change requests on locked pages, with direct-edit exceptions for admins and creators. The MCP tools reference describes a creator-only direct-edit exception on locked pages. Test the roles through the interface you plan to use before relying on this review boundary.

Its analysis documentation describes plain-language questions, executed code, results, and reusable notebooks. Its MCP documentation describes compatible-client access to Orion projects, metrics, workflows, and Knowledge Base pages. The tools reference documents page reads and metric details. Demonstrate the actual consumer path and the evidence it exposes.

Its dbt connection documentation describes model-description and lineage enrichment. That does not establish that every answer executes through MetricFlow. Keep the intended governed calculation explicit.

The ledger is a proposed evaluation method. It does not claim Orion supplies a complete native CI gate, immutable answer history, automatic rollback, bidirectional synchronization, or control over every third-party agent.

Continue an internal approach if your current system already meets the requirements with acceptable maintenance. A purchased product adds little value when it cannot serve a required consumer, deployment constraint, or evidence requirement. For broader product categories, see AI business intelligence tools and platforms.

What should the decision record say?

Name the work you will keep, the work a product has demonstrated it can take over, the owner at each boundary, and the requirements that remain unresolved. Keep the current system if it meets the requirements at an acceptable operating burden. Purchase only the parts whose demonstrated value justifies their future cost. If a required consumer, permission check, governed calculation, or evidence path fails, resolve it or narrow the rollout before committing.

A context product can supply useful interfaces and maintained infrastructure. Your organization still owns the meaning of its metrics and the decision to trust an answer.

Keep reading

View all