CXO Avenue

Enterprise AI Reference Architecture: Gateways, Retrieval, Agents

In short

An enterprise AI reference architecture is the shared blueprint that lets many teams build AI applications and agents quickly, safely and consistently. Without one, every team connects to models directly, builds its own retrieval, invents its own security and logs, and the organization ends up with duplicated costs, inconsistent controls and no view of what AI is doing. A good reference architecture defines a small number of shared layers: a model gateway that governs access to approved models and providers; a retrieval layer that prepares, indexes and retrieves enterprise content with permissions enforced; an orchestration layer for prompts, workflows and agents; a tools and connectors layer that exposes enterprise systems through narrow, secured interfaces; identity and policy enforcement that apply to users, applications and agents; guardrails for inputs and outputs; evaluation and observability that trace every step; and metering for cost. It is complemented by patterns for common use cases, standards for versioning and deployment and a platform team that runs the shared services. This guide describes each layer, the design choices that matter and how to build, govern and evolve the architecture as models and vendors change.

Key takeaways

  • Route all model access through a gateway that enforces policy, logs usage and allows models to be swapped.
  • Build one retrieval layer with permission-aware indexing and freshness, reused across applications.
  • Expose enterprise systems to AI through narrow, secured tools rather than broad access.
  • Give agents their own identities and enforce permissions and approvals outside the model.
  • Trace every request end to end, and evaluate quality before and after every change.
  • Meter usage and cost by application and team from the start.
  • Keep prompts, configurations, evaluation sets and indexes versioned and portable to avoid lock-in.

What this guide covers

  1. What is an enterprise AI reference architecture?
  2. Why do enterprises need an AI reference architecture?
  3. What are the layers of an enterprise AI architecture?
  4. What principles should guide the architecture?
  5. What is a model gateway?
  6. How should model access be governed?
  7. How should the architecture support multiple models and providers?
  8. Which hosting options should be used for models?
  9. What does the retrieval layer include?
  10. How should ingestion pipelines work?
  11. How should indexes and vector stores fit into the architecture?
  12. How should permissions flow end to end?
  13. How should prompts and instructions be managed?
  14. What is the orchestration layer?
  15. How should agents fit into the architecture?
  16. How should tools and connectors be exposed to AI?
  17. How should agent identity integrate with identity and access management?
  18. What is the evaluation layer?
  19. How should the architecture support structured outputs and integration?
  20. How should observability work for AI applications?
  21. Where should guardrails and policy enforcement be placed?
  22. How should content safety filters be used?
  23. How should caching be used in AI architecture?
  24. How should cost management be built into the architecture?
  25. How should data platforms integrate with AI architecture?
  26. How should AI access structured data?
  27. How should memory and state be stored?
  28. How should the architecture handle multi-tenancy?
  29. How should security be layered in AI architecture?
  30. How should data residency be handled architecturally?
  31. How should the architecture support resilience?
  32. How should latency and performance be managed?
  33. How should batch and real-time AI workloads differ?
  34. How should the architecture support human review and approvals?
  35. How should AI applications handle errors and uncertainty?
  36. How should third-party AI services be integrated securely?
  37. How should fine-tuning and custom models fit?
  38. How should a model registry and lifecycle work?
  39. How should AI be integrated into existing applications?
  40. How should embedded vendor AI fit into the architecture?
  41. How should the architecture support low-code and citizen builders?
  42. How should environments be designed for AI development?
  43. How should continuous delivery work for AI?
  44. How should versioning work for AI components?
  45. How should feature flags and staged rollouts be used?
  46. How should architectural patterns be documented?
  47. How should document processing pipelines be architected?
  48. How should voice and multimodal AI be architected?
  49. How should AI integrate with workflow and process platforms?
  50. How should enterprise search and AI assistants converge?
  51. Which architecture decisions should be recorded?
  52. How should the architecture evolve as AI capabilities change?
  53. How can lock-in be avoided in AI architecture?
  54. Which platform components should be built and which bought?
  55. How should the AI platform team be organized?
  56. How should architecture governance review AI solutions?
  57. How should mid-sized organizations approach AI architecture?
  58. How should edge and on-device AI fit into the architecture?
  59. How should regulated industries adapt the reference architecture?
  60. How should the success of the AI platform be measured?
  61. How should the AI platform be funded?
  62. How should the AI platform be rolled out?
  63. Worked example: a manufacturer builds an AI platform
  64. What are the most common mistakes in enterprise AI architecture?
  65. What should an enterprise architect do in the first 90 days?
  66. How do CXO Avenue members approach enterprise AI architecture?

The full guide is for CXO Avenue members. 8,013 words of analysis, frameworks and worked examples for Enterprise Architecture leaders.

Read the full guide   Apply for membership

Frequently asked questions

What is an enterprise AI reference architecture?

A documented set of standard components, patterns, interfaces and principles that guides how AI applications and agents are built and run across an organization, implemented as shared platform services.

What is a model gateway?

A shared service through which applications access AI models, providing a common interface, credential management, policy enforcement, routing and fallback, quotas, logging and cost metering.

Why should all model access go through a gateway?

To centralize control, credentials, logging and cost visibility, enforce which models may be used for which data and allow models to be changed without rebuilding applications.

What does a shared retrieval layer do?

Ingests and processes enterprise content, indexes it for keyword and semantic search, synchronizes permissions, keeps content fresh and serves relevant passages to applications with access rights enforced.

How should permissions work in AI applications?

The user's identity should flow securely through every layer, with retrieval and tools enforcing that user's access rights, and agents acting on their own authority having explicitly limited permissions.

How should agents be integrated into enterprise architecture?

As orchestrated workloads with their own identities, narrow tools, approval points, limits, governed memory and full tracing, using the same gateway, retrieval and observability services as other AI applications.

What is the Model Context Protocol's role in architecture?

It provides a standard way to connect AI applications to tools and data sources, improving interoperability, while security, permissions and approval remain the architecture's responsibility.

What is LLMOps?

Practices for deploying and operating applications built on large language models, including versioning of prompts and configurations, automated evaluation, staged rollout, monitoring and rollback.

How do you avoid vendor lock-in with AI?

Use a model gateway, keep prompts, evaluation sets and curated content in your own repositories, prefer open protocols and standard formats, negotiate export rights and test alternatives periodically.

Should we build or buy an AI platform?

Buy or adopt standard components such as model hosting, vector search and observability, and build or assemble the integration, identity, policy and governance layers that reflect your requirements.

What should be traced in AI applications?

Each request across layers: prompts or references, retrieved sources, model and tool calls, outputs, identities, latency, errors and costs, with access controls and retention limits on traces.

Where should guardrails go?

At inputs, retrieval, outputs, tool calls and approval gates, implemented as shared services and complemented by narrow permissions and good design.

How should AI costs be tracked architecturally?

Meter usage by application, team and use case in the gateway and platform, report unit costs, set budgets and quotas and provide optimization levers such as routing and caching.

How should AI applications stay resilient?

With timeouts, retries, fallback models and providers, graceful degradation, capacity planning and tested procedures for provider outages.

What is multi-tenancy in AI platforms?

Serving several business units, customers or entities from shared services while isolating their data in indexes, caches, memory and logs and enforcing tenant context at every layer.

How should mid-sized companies approach AI architecture?

Rely mainly on managed services from main providers, use simple model access controls, adopt built-in retrieval and copilots where suitable and focus on identity, permissions, logging and cost visibility.

How should fine-tuned models fit in?

Through a pipeline that manages training data rights and lineage, evaluation, registry and approval, deployment through the gateway and monitoring, used where fine-tuning adds clear value.

What patterns should a reference architecture include?

Approved designs for common uses such as knowledge assistants, document extraction, classification and routing, summarization, customer service agents, coding assistants and data analysis assistants.

How should AI access structured data?

Through governed semantic layers, data services and parameterized tools rather than arbitrary queries against raw databases, with permissions enforced and results showing definitions.

How should the AI platform be rolled out?

Start with the gateway, add shared retrieval for priority content, then orchestration, tools and agent support, with evaluation and observability throughout and migration of early applications.

How do you measure an AI platform's success?

By adoption, time from idea to production, reliability and latency, evaluation results, incidents, cost per unit of AI work, reuse of shared services and the business value of applications built on it.

How should data residency be handled in AI architecture?

Classify data by residency requirements, deploy gateways, indexes and models in compliant regions, route requests by classification and verify that logs and backups stay in required regions.

How should prompts be managed?

As versioned configuration with change history, review and evaluation before release, shared templates and no secrets or security-critical rules.

How should edge AI be managed?

Through managed deployment of approved models to devices, update synchronization, local data protection, offline capability where needed and telemetry to central monitoring.

How should document processing with AI be designed?

As event-driven pipelines that extract and classify content, validate results against rules and master data, route low-confidence cases to people, write approved results to systems of record and keep a complete audit trail.

How should human approvals be built into AI architecture?

Through a shared approval service that presents proposals with evidence to reviewers in familiar tools, records decisions and reasons, enforces approval before actions execute, escalates delays and feeds decisions into evaluation.

How should AI outputs be integrated with other systems?

Require structured outputs in defined schemas, validate them before use, route validation failures to retries or human review and version schemas alongside consuming applications.

How should enterprise search and AI assistants relate?

They should share one permission-aware retrieval foundation, so users can browse results or receive cited answers from the same indexes, avoiding inconsistent information and duplicated security work.

How should voice AI be architected?

With speech services connected to the same orchestration, retrieval and tools as text applications, low end-to-end latency for real-time conversation, consent and retention rules for recordings and evaluation across modalities.

Glossary

Reference architecture
A documented blueprint of standard components, patterns and principles.
AI platform
Shared services implementing the reference architecture.
Model gateway
A shared access point to AI models enforcing policy, routing and metering.
Retrieval layer
Shared services for ingesting, indexing and retrieving enterprise content.
Orchestration
Coordinating prompts, model calls, tools, workflows and agent steps.
Tool
An interface through which AI performs a specific action or retrieves specific data.
Connector
An integration that links AI to an enterprise system or data source.
Guardrail
A control that checks or limits AI inputs, outputs or actions.
Evaluation set
Test cases with expected results used to measure quality.
Tracing
Recording each step of a request across components.
Metering
Measuring usage and cost by application, team or use case.
Identity propagation
Passing the user's identity securely through each layer.
Delegated authorization
Allowing an agent to act on a user's behalf within bounded rights.
Non-human identity
An identity for a service, workload or agent rather than a person.
Semantic layer
Governed definitions of business metrics for consistent querying.
Multi-tenancy
Serving multiple tenants from shared services with isolation.
Fallback model
An alternative model used when the primary is unavailable.
Graceful degradation
Providing reduced but safe functionality when a component fails.
Model registry
A record of models, versions, owners, approvals and deprecation dates.
LLMOps
Operational practices for applications built on large language models.
Feature flag
A switch that enables or disables functionality without redeployment.
Architecture decision record
A short document explaining an architectural choice and its rationale.
Edge AI
AI running on devices or local infrastructure rather than central services.
Zero trust
A security approach that authenticates and authorizes every request.
Structured output
AI output returned in a defined schema that other systems can validate and use.
Document processing pipeline
A service that extracts, validates and routes information from documents.
Approval service
A shared service that routes AI proposals to people and enforces their decisions.

Related guides