What Happened
Recent enterprise AI infrastructure examples point to the same pattern: successful AI platforms are not built by adding isolated LLM tools on top of fragmented systems. They require governed APIs, unified data access, operational observability and cost-aware orchestration.
Deutsche Bank moved from monolithic systems to an API-first, modular architecture using Google Cloud Apigee as a central API management layer. The platform standardizes documentation, OpenAPI specifications, schema validation, OAuth2 scopes, API keys, role-based access control, rate limiting, audit logging and operational dashboards across internal services, open-banking endpoints and client applications [1].
Target consolidated product discovery infrastructure around Spanner Graph to support conversational commerce, including its Gift Finder chat agent. The architecture combines transactional data, graph relationships, vector search and full-text search in one managed system, allowing GraphRAG workflows that mix semantic retrieval with multi-hop graph traversal [2]. Target reported reduced data duplication, less ETL complexity, serverless scaling for peak retail traffic and roughly 50% lower infrastructure maintenance [2].
At the implementation level, smaller tooling improvements also matter. The condense-json 1.1 release adds structural replacements beyond strings, helping compact JSON payloads for LLM workflows where context size, serialization overhead and repeated structures affect latency and cost [3].
Why It Matters to Businesses
Enterprise AI applications fail in production less often because the model is incapable and more often because the surrounding platform is brittle: APIs are inconsistent, permissions are unclear, retrieval data is duplicated, observability is incomplete, and inference costs grow faster than usage.
- API governance becomes AI governance. Agents and LLM applications call tools, retrieve records, update workflows and trigger business processes. If APIs lack consistent authentication, authorization, schemas, quotas and audit trails, AI systems inherit that risk at machine speed [1].
- Data architecture determines retrieval quality. Conversational AI needs more than vector search. Many enterprise questions depend on relationships, hierarchy, transactions, permissions and freshness. Target’s use of graph, vector, full-text and ACID transactions in one platform reflects this production requirement [2].
- Consolidation can reduce operating drag. Separate search indexes, graph databases, vector databases and transactional stores often require synchronization pipelines and duplicated monitoring. Consolidating workloads can reduce maintenance, but only when the chosen platform meets latency, scale and query requirements [2].
- Context efficiency is a cost lever. Compacting repeated JSON structures and replacing verbose payload fragments can reduce token usage and improve throughput in LLM pipelines, especially for agents that repeatedly pass structured state, tool outputs and retrieved documents [3].
Kimbodo Engineering Perspective
Do not start with the model; start with the control plane
For production AI systems, the core design question is not only “which LLM?” It is “how will models safely access tools, data and workflows?” Deutsche Bank’s API-first approach is relevant because AI agents need the same enterprise controls as any other production integration: least privilege, schema contracts, quotas, audit logs, versioning and incident visibility [1].
In practice, we would treat API management as the enterprise AI control plane. LLMs and agents should not directly call arbitrary services. They should call governed tools exposed through a managed gateway with policy enforcement, observability and revocation.
Use vector databases selectively, not reflexively
Vector search is useful for semantic similarity, but many business workflows require exact filters, relationship traversal and transactional correctness. Target’s architecture shows why graph and relational semantics matter for AI discovery: a product recommendation may depend on category hierarchy, compatibility, inventory, user context, margin rules and semantic similarity at the same time [2].
The trade-off is platform coupling. A unified data substrate can reduce ETL and duplication, but it can also increase dependency on one cloud or database engine. Teams should validate query latency, scale limits, recovery model, export paths and cost behavior before moving critical retrieval workloads into a single managed platform.
RAG quality depends on orchestration, not just embeddings
GraphRAG-style systems improve grounding by combining semantic retrieval with relationship-aware traversal [2]. This is valuable when answers depend on connected facts. However, deeper retrieval also increases query cost, latency and prompt size. Production teams need retrieval budgets: maximum hops, result caps, ranking stages, caching rules and fallbacks.
Cost optimization belongs in the application layer
Cloud autoscaling and managed services reduce operational burden, but they do not automatically control AI unit economics. Token volume, repeated tool calls, duplicated payloads, over-retrieval and unbounded agent loops can dominate costs. Compact JSON representations, structural replacement and state minimization are practical techniques for reducing LLM context overhead [3].
How We Would Implement It
1. Establish a governed AI API layer
Expose all model-accessible enterprise capabilities through a managed API gateway rather than direct service access. Each tool should have an OpenAPI contract, owner, version, authentication policy, authorization scope, rate limit and audit trail.
- Use OAuth2 scopes and role-based access control for tool permissions [1].
- Apply schema validation on all requests and responses.
- Enforce tenant, user and data-domain boundaries at the gateway and service layer.
- Use rate limits, quotas and circuit breakers to prevent runaway agents from overwhelming downstream systems [1].
- Centralize logs, traces and metrics for tool calls, model calls, errors, latency and policy denials [1].
2. Build a retrieval architecture that matches the business domain
Choose the retrieval substrate based on the shape of the data and the questions users ask.
- Use vector search for semantic similarity across documents, products, tickets or knowledge articles.
- Use graph traversal when answers depend on relationships, dependencies, hierarchy, recommendations or entity networks.
- Use full-text search for keyword precision, part numbers, names, compliance terms and exact phrase matching.
- Use transactional stores where freshness, consistency and business rules matter.
For domains like commerce, supply chain, financial services and customer operations, a combined graph, vector, full-text and transactional architecture can reduce pipeline complexity, as demonstrated by Target’s consolidation around Spanner Graph [2]. For smaller systems, the same pattern can be implemented with separate components, but teams must account for synchronization, freshness and operational overhead.
3. Implement GraphRAG with strict retrieval controls
A production GraphRAG pipeline should avoid dumping large graph neighborhoods into the prompt. We would use a staged approach:
- Classify the user request and determine whether it needs semantic retrieval, graph traversal, transactional lookup or a combination.
- Retrieve candidate entities using vector and keyword search.
- Expand only relevant graph relationships within bounded hop limits.
- Rank and filter results using business rules, permissions and recency.
- Compress retrieved context before sending it to the LLM.
- Return citations, entity IDs and confidence signals to support auditability.
4. Add an orchestration layer for agents and workflows
The agent runtime should be separate from both the model provider and the API gateway. Its responsibilities should include prompt assembly, tool selection, retrieval planning, policy checks, memory handling, error recovery and cost controls.
- Set maximum tool-call counts per request.
- Set token and latency budgets by workflow type.
- Use deterministic workflows for high-risk operations and reserve autonomous planning for low-risk exploration.
- Require human approval for actions with financial, legal, operational or customer-impacting consequences.
- Persist tool inputs, outputs and model decisions for audit and debugging.
5. Optimize payloads and context early
Structured tool outputs can become expensive when agents repeatedly pass verbose JSON. We would introduce payload shaping as a standard platform feature:
- Remove unused fields before prompt construction.
- Replace repeated structures with compact references.
- Use structural JSON replacement techniques where applicable, similar to the direction taken by condense-json 1.1 [3].
- Keep full-fidelity records outside the prompt and pass stable IDs when the model only needs references.
- Measure cost per successful task, not just cost per model call.
6. Migrate incrementally
For organizations replacing fragmented retrieval or API infrastructure, a zero-downtime migration pattern is safer than a platform rewrite. Target’s phased approach is a useful template: schema and ontology mapping, data integration with parallel replay, canary deployment, then cutover and cleanup [2].
We would add automated equivalence tests, query replay, latency comparisons, permission checks and rollback criteria before shifting production traffic.
Risks, Costs and Security
Key risks
- Over-consolidation risk: A unified platform can simplify operations, but it can also create vendor concentration and make future migrations harder.
- Agent blast radius: If tools are too broadly permissioned, an LLM can expose, modify or trigger systems beyond the user’s authority.
- Retrieval leakage: Vector and graph retrieval can surface sensitive adjacent data unless permissions are enforced before context reaches the model.
- Unbounded cost: Deep graph traversal, large prompts, repeated tool calls and high-latency models can make unit economics unpredictable.
- Observability gaps: Without end-to-end tracing across API gateway, retrieval store, orchestrator and model provider, failures are hard to diagnose.
Cost considerations
Managed API platforms, serverless databases, vector search and LLM inference can reduce engineering burden but shift cost management to architecture and usage controls. The most important metrics are cost per completed workflow, retrieval cost per request, average and p95 latency, tool-call count, token volume, cache hit rate and human escalation rate.
Consolidated platforms may reduce maintenance, as Target reported with its reduction in infrastructure upkeep [2], but teams should test peak-load pricing, index growth, cross-region replication, backup costs and query patterns before committing.
Security controls to require
- Least-privilege OAuth2 scopes and role-based access control for all AI-accessible APIs [1].
- Centralized audit logging for user requests, model responses, retrieval results and tool calls [1].
- Schema validation and allowlisted tools to prevent prompt-driven arbitrary execution.
- Per-tenant and per-user authorization checks before retrieval results enter the prompt.
- Rate limiting, health checks and circuit breakers to protect downstream systems [1].
- Data loss prevention checks for prompts, retrieved context and model outputs.
- Human approval workflows for irreversible or regulated actions.
The core lesson is straightforward: production AI platforms need disciplined cloud and data engineering more than isolated experimentation. Governed APIs, relationship-aware retrieval, observable orchestration and context-cost controls are what turn LLM prototypes into reliable business systems.
Where Kimbodo Comes In
Kimbodo builds and operates this in production for businesses — see our AI Infrastructure & MLOps practice. Wondering what it would cost for your organization? Get a preliminary range, timeline and architecture in about a minute.