Building Enterprise-Grade GenAI Platform with Multi-Cloud Architecture

coinbase · Finance · 2024 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.5 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Enterprise GenAI platform operations

Coinbase needed to operationalize GenAI across employee and customer applications, but production use quickly exceeded the simple cost-versus-accuracy model of LLM selection. The platform had to handle frequently changing model quality, trust and safety guardrails, cost controls, latency, provider availability, capacity quotas, RAG grounding, self-service builders, and emerging agentified workflows across multiple clouds and model providers.

Constraints:

Architecture

Coinbase built CB-GPT as a unified GenAI platform spanning AWS Bedrock, GCP VertexAI, Azure GPT, and open-source LLMs. A routing and decision layer selects models for each use case based on accuracy, cost, latency, availability, and safety needs. Platform services include an internal LLM evaluation framework, rate limiting, usage tracking, billing dashboards, semantic caching, load/latency benchmarks, RAG over enterprise search, web search, vector storage, input/output guardrails, API access for engineers, Studio for no-code assistants, and experiments with self-hosted open-source and agentified LLM chains.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  cb-gpt-platform[CB-GPT platform] --> model-routing-layer[Model routing layer]
  cb-gpt-platform --> rag-layer[RAG layer]
  cb-gpt-platform --> guardrails-layer[Guardrails layer]
  cb-gpt-platform --> cb-gpt-api[CB-GPT API]
  cb-gpt-platform --> cb-gpt-studio[CB-GPT Studio]
  cb-gpt-platform --> agentified-workflow-layer[Agentified workflow layer]
  model-routing-layer --> aws-bedrock[AWS Bedrock]
  model-routing-layer --> gcp-vertexai[GCP VertexAI]
  model-routing-layer --> azure-gpt[Azure GPT]
  model-routing-layer --> open-source-llms[Open-source LLMs]
  model-routing-layer --> decision-framework[Decision framework]
  model-routing-layer --> load-and-latency-benchmarks[Load and latency benchmarks]
  internal-llm-evaluation-framework[Internal LLM evaluation framework] --> model-routing-layer
  internal-llm-evaluation-framework --> decision-framework
  rate-limiting-and-usage-dashboards[Rate limiting and usage dashboards] --> cb-gpt-platform
  semantic-cache[Semantic cache] --> cb-gpt-platform
  rag-layer --> enterprise-search[Enterprise search]
  rag-layer --> web-search[Web search]
  rag-layer --> vector-storage[Vector storage]
  guardrails-layer --> cb-gpt-platform
  cb-gpt-api --> cb-gpt-platform
  cb-gpt-studio --> cb-gpt-platform
  agentified-workflow-layer --> data-extraction-agent[Data extraction agent]
  data-extraction-agent --> data-analysis-agent[Data analysis agent]
  data-analysis-agent --> report-generation-agent[Report generation agent]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
CB-GPT platform Unified platform interface for GenAI-powered Coinbase applications and assistants. Model routing layer, RAG layer, Guardrails layer, CB-GPT API, CB-GPT Studio, Agentified workflow layer
Model routing layer Decision layer that routes use cases to the appropriate model or provider based on quality, cost, latency, availability, and safety factors. AWS Bedrock, GCP VertexAI, Azure GPT, Open-source LLMs, Decision framework, Load and latency benchmarks
AWS Bedrock Cloud-hosted model provider used as one destination in the multi-cloud platform. Model routing layer
GCP VertexAI Cloud-hosted model provider used as one destination in the multi-cloud platform. Model routing layer
Azure GPT Azure-hosted GPT model destination available through CB-GPT. Model routing layer
Open-source LLMs Self-hosted or candidate open-source models for lower cost and Coinbase-specific fine-tuning. Model routing layer
Decision framework Framework for selecting cost-effective LLMs based on accuracy, latency, availability, and task needs. Model routing layer
Internal LLM evaluation framework Coinbase- and crypto-specific framework for monitoring model performance across use cases. Model routing layer, Decision framework
Load and latency benchmarks Benchmarks over all platform models used to understand latency and quality-of-service tradeoffs. Decision framework
Rate limiting and usage dashboards Cost and operations controls for usage tracking, billing dashboards, and rate limiting. CB-GPT platform
Semantic cache Cache that stores previously asked questions and serves answers without invoking LLMs when possible. CB-GPT platform
RAG layer Grounding layer that retrieves reliable sources of truth from enterprise search, web search, and vector storage. Enterprise search, Web search, Vector storage
Enterprise search Enterprise retrieval integration that exposes broad internal data to CB-GPT use cases. RAG layer
Web search Search integration for use cases that require world knowledge. RAG layer
Vector storage Embedding and semantic retrieval storage for bespoke data sources. RAG layer
Guardrails layer Input and output safety checks to protect against hallucination, jailbreaking, and violations of helpful, harmless, honest behavior. CB-GPT platform
CB-GPT API Engineer-facing API for incorporating LLM capabilities into Coinbase applications. CB-GPT platform
CB-GPT Studio Self-serve no-code tool for Coinbase employees to create and maintain assistants for bespoke tasks. CB-GPT platform
Agentified workflow layer Agent chain layer for complex tasks that require reasoning, planning, acting, and specialized sub-agents. Data extraction agent, Data analysis agent, Report generation agent
Data extraction agent Specialized agent that extracts source data in a multi-agent workflow. Data analysis agent
Data analysis agent Specialized agent that analyzes extracted data. Report generation agent
Report generation agent Specialized agent that generates reports from analyzed data. —

Data flow

Applications and CB-GPT Studio users send requests through CB-GPT's unified API or no-code interface. The platform applies a decision framework, routes the request to cloud-hosted or open-source LLMs, retrieves grounding data from enterprise search, web search, or vector stores when RAG is needed, and applies guardrails to both inputs and outputs. Usage, costs, latency, load, and model performance are tracked through platform dashboards and benchmarks. For agentified workflows, specialized agents can be chained so one extracts data, another analyzes it, and another generates reports.

5 supporting quotes
“Coinbase We recognized the power of this technology and have built a platform (CB-GPT) that serves as a unified interface for all GenAI-powered applications at Coinbase. The key characteristics of CB-GPT that allow us to solve for the challenges above include: ### 1. Multi-Cloud, Multi-LLM”article, stated
“truly multi-cloud (across AWS Bedrock, GCP VertexAI, Azure GPT and open-source LLMs) with different use cases routed to the appropriate destination. Image 2: unnamed (12)”article, stated
“we extensively use a technique called RAG (Retrieval Augmented Generation) to ensure our responses are anchored in reliable sources of truth.”article, stated
“applications, it is crucial to design a solution architecture with appropriate guardrails. These guardrails should evaluate both input and output information to ensure that the LLM's responses adhere to the 'Three H Principle' (Helpful, Harmless, and Honest). ### 4. CB-GPT API”article, stated
“one agent might handle data extraction, another might focus on data analysis, and a third might generate reports based on the analyzed data.”article, stated

Why this architecture

Coinbase chose a multi-cloud, multi-LLM platform because model quality, price, latency, safety behavior, and capacity change frequently. A single provider would expose CB-GPT to vendor lock-in, quota limits, and model-leaderboard volatility. RAG, guardrails, semantic caching, evaluation, and self-service API/Studio surfaces make GenAI usable across many teams while keeping production controls centralized.

4 supporting quotes
“This dynamic state of affairs necessitated our decision to build a multi-cloud multi-LLM architecture, and not get tied in to any one cloud vendor.”article, stated
“The current CB-GPT architecture is truly multi-cloud (across AWS Bedrock, GCP VertexAI, Azure GPT and open-source LLMs)”article, stated
“A Decision Framework to select the most cost-effective LLMs based on the aforementioned factors. ### 2. Built-in Retrieval-Augmented Generation ![Image 3: unnamed”article, stated
“By making its features accessible both via an API and a no-code CB-GPT Studio, we allow staff from diverse job functions at Coinbase to build out relevant solutions rapidly.”article, stated

Models used: AWS Bedrock · GCP VertexAI · Azure GPT · Open-source LLMs · OpenAI GPT-4 · OpenAI GPT-3.5 · Anthropic Claude 3 Opus · Anthropic Claude 3 Haiku · ChatGPT · Google Gemini

Scale

Alternatives considered (roads not taken)

Optimize only the accuracy-cost tradeoff.

Rejected because: Production GenAI required additional dimensions: trust and safety, scalability, latency, model availability, and changing model quality.

“we would need to optimize between cost and accuracy i.e. choose the best LLM given our cost constraints. But very soon, we realized that developing enterprise-grade LLM solutions involves several further challenges like trust and safety, cost and”article, stated
“developing enterprise-grade LLM solutions involves several further challenges like trust and safety, cost and scalability, and an evolving landscape of LLMs.”article, stated

Tie the platform to one cloud vendor or model provider.

Rejected because: Frequent model-leaderboard changes and quota/availability issues required provider flexibility.

“of affairs necessitated our decision to build a multi-cloud multi-LLM architecture, and not get tied in to any one cloud vendor. The current CB-GPT architecture is truly multi-cloud (across AWS Bedrock, GCP VertexAI, Azure GPT and open-source LLMs)”article, stated
“Availability: Due to high demand of LLM models and the industry-wide GPU chip shortage, providers are often oversubscribed, leading to rationed quotas for tenants. Securing sufficient capacity for Coinbase’s larger use cases often requires negotiating with AWS/GCP for the appropriate”article, stated

Use expensive frontier models for every task.

Rejected because: Coinbase matched model capability to task complexity, using cheaper models for simple tasks and stronger models for complex ones.

“it is crucial to select a model that aligns with available budget and accuracy needs of the task (e.g. use a cheaper LLM to check for profanity, and a better and more expensive LLM to summarize). * Latency: The latency of different models can vary from a”article, stated
“use a cheaper LLM to check for profanity, and a better and more expensive LLM to summarize). * Latency: The latency of different models can vary from a few seconds to tens of seconds, with larger models offering better capabilities but higher latency.”article, stated

Expose GenAI only through engineering APIs.

Rejected because: Coinbase wanted technical and non-technical employees to build relevant assistants, so it added no-code Studio alongside APIs.

“CB-GPT supports a diverse set of technical and non-technical users. By making its features accessible both via an API and a no-code CB-GPT Studio, we allow staff from diverse job functions at Coinbase to build out relevant solutions rapidly. Till date,”article, stated
“CB-GPT Studio is a self-serve no-code tool enabling Coinbase employees to create and maintain AI assistants for bespoke tasks.”article, stated

Use only third-party hosted LLM APIs.

Rejected because: Coinbase began working with self-hosted open-source LLMs for cost management and Coinbase/crypto-specific fine-tuning, despite higher technical difficulty.

“build. ### 5. Self-hosting open-source LLMs Currently, many of our solutions leverage a 3P LLM hosted by one of the major cloud providers (AWS, GCP, or Azure), for which we incur costs with each API call. This approach has been advantageous as it enabled us to quickly adopt the best LLM available”article, stated
“We are also working with open-source LLMs hosted within the Coinbase infrastructure. Although technically more challenging, it offers several benefits”article, stated

Patterns

model-routing (platform architecture)

CB-GPT routes different use cases across AWS Bedrock, GCP VertexAI, Azure GPT, and open-source LLMs using a decision framework that accounts for model quality, price, latency, and availability.

“The current CB-GPT architecture is truly multi-cloud (across AWS Bedrock, GCP VertexAI, Azure GPT and open-source LLMs) with different use cases routed to the appropriate destination. !”article, stated
“A Decision Framework to select the most cost-effective LLMs based on the aforementioned factors.”article, stated

rag-retrieval (grounding)

Coinbase built RAG into CB-GPT so enterprise answers could be anchored in Help Center articles, enterprise search, web search, and vector-backed bespoke data sources.

“For our enterprise LLM use cases, we extensively use a technique called RAG (Retrieval Augmented Generation)”article, stated
“the Coinbase Chatbot responses are based on our Help Center articles and the same source of truth used by Human Agents to assist customers.”article, stated

guardrails-io-filtering (safety)

The platform evaluates inputs and outputs to reduce hallucination, jailbreaking, and responses that violate helpful, harmless, and honest behavior.

“companies need to build their own guardrails to protect against hallucinations or jailbreaking.”article, stated
“guardrails should evaluate both input and output information to ensure that the LLM's responses adhere to the 'Three H Principle'”article, stated

semantic-caching (cost optimization)

CB-GPT uses semantic caching to serve previously asked questions without a new LLM invocation, reducing cost for repeated or similar requests.

“Semantic Caching to minimize expenses by storing previously asked questions and providing answers without invoking the LLMs.”article, stated

eval-driven-development (quality)

Coinbase built internal evaluation and load/latency benchmarks for Coinbase- and crypto-specific use cases, using them to monitor performance across the platform's model options.

“An internal LLM Evaluation Framework to monitor the performance of LLMs across various use cases bespoke to Coinbase and crypto.”article, stated
“Load and Latency Benchmarks for all the LLMs available on the platform.”article, stated

cost-aware-routing (operations)

The platform tracks usage and billing and routes simpler tasks to cheaper LLMs while reserving more capable models for higher-value work.

“Rate Limiting, Usage Tracking, and Billing Dashboards to closely track costs.”article, stated
“use a cheaper LLM to check for profanity, and a better and more expensive LLM to summarize”article, stated

multi-agent-orchestration (agent architecture)

Coinbase describes agentified LLM solutions as chains of specialized agents for extraction, analysis, and report generation on tasks too complex for one model alone.

“By creating a chain of LLM agents, each specialized in different aspects of the task, enterprises can achieve more efficient and accurate outcomes.”article, stated
“one agent might handle data extraction, another might focus on data analysis, and a third might generate reports based on the analyzed data.”article, stated

Tradeoffs

Build a multi-cloud, multi-LLM platform.

Chose CB-GPT across AWS Bedrock, GCP VertexAI, Azure GPT, and open-source LLMs. over A single cloud or model provider..

Rationale: The multi-cloud architecture reduced lock-in and allowed Coinbase to change models as leaderboards, costs, latency, and availability shifted.

“build a multi-cloud multi-LLM architecture, and not get tied in to any one cloud vendor.”article, stated
“The current CB-GPT architecture is truly multi-cloud (across AWS Bedrock, GCP VertexAI, Azure GPT and open-source LLMs) with different use cases routed to the appropriate destination. !”article, stated

Use task-appropriate model tiers.

Chose Cheaper LLMs for simple tasks and stronger, more expensive LLMs for complex tasks. over Using the highest-capability model for everything..

Rationale: Cost differences were large enough that model choice had to align with task value and accuracy needs.

“OpenAI's GPT-4 is 10x more expensive than GPT-3.5, and Anthropic's Claude 3 Opus is 60x the price of Claude 3 Haiku.”article, stated
“use a cheaper LLM to check for profanity, and a better and more expensive LLM to summarize”article, stated

Ground enterprise answers with RAG.

Chose RAG over reliable sources such as Help Center articles, enterprise search, web search, and vector stores. over Ungrounded model responses..

Rationale: Coinbase needed responses anchored in reliable sources of truth, especially for customer and enterprise use cases.

“RAG (Retrieval Augmented Generation) to ensure our responses are anchored in reliable sources of truth.”article, stated
“We recognize RAG as a highly effective “grounding” technique and have chosen to integrate multiple data sources to enhance its utility.”article, stated

Expose both API and no-code Studio interfaces.

Chose CB-GPT APIs for engineers plus CB-GPT Studio for no-code assistant creation. over Serving only technical users through APIs..

Rationale: The platform needed to support diverse job functions and let non-ML teams create assistants rapidly.

“CB-GPT supports a diverse set of technical and non-technical users.”article, stated
“several dozen use cases have been built by non-ML teams, using CB-GPT.”article, stated

Explore self-hosted open-source LLMs.

Chose Open-source LLMs hosted inside Coinbase infrastructure. over Only third-party hosted LLMs charged per API call..

Rationale: Self-hosting was technically harder but promised lower cost and higher accuracy through Coinbase- or crypto-specific fine-tuning.

“We are also working with open-source LLMs hosted within the Coinbase infrastructure. Although technically more challenging, it offers several benefits”article, stated
“Cost management, as hosting our own LLMs is less expensive than making API calls.”article, stated

Gotchas (what bit them)

The initial cost-versus-accuracy framing missed production constraints.

Root cause: Enterprise-grade LLM systems also need trust and safety, scalability, evolving model choices, latency, and availability.

Resolution: Coinbase expanded CB-GPT into a platform with routing, guardrails, benchmarks, caching, RAG, and availability planning.

“We initially began our GenAI journey at Coinbase thinking that we would need to optimize between cost and accuracy”article, stated
“we realized that developing enterprise-grade LLM solutions involves several further challenges like trust and safety, cost and scalability”article, stated

Provider capacity and quality-of-service became an unexpected blocker.

Root cause: High demand and GPU shortages left model providers oversubscribed and quotas rationed.

Resolution: Coinbase considered availability and burst handling as first-class routing concerns and negotiated capacity with AWS/GCP for larger use cases.

“the lack of availability of models with appropriate QoS was an unexpected surprise”article, stated
“Securing sufficient capacity for Coinbase’s larger use cases often requires negotiating with AWS/GCP for the appropriate quotas.”article, stated

Model leaderboards and model versions changed too quickly for a static model choice.

Root cause: Major providers release new model versions every few months, changing the relative quality and cost landscape.

Resolution: CB-GPT kept a multi-cloud, multi-LLM architecture and internal evaluation framework so selections could be revisited by use case.

“architecture, in a subsequent blog post._ * Accuracy: Each new iteration of LLMs improves in accuracy and the LLM leaderboard changes quite frequently. This implies that the fundamental decision (which LLM to use) needs to be revisited frequently. And we need to maintain the flexibility to”article, stated
“the fundamental decision (which LLM to use) needs to be revisited frequently.”article, stated

Trust and safety could not rely on a universal benchmark.

Root cause: The article says clear trust-and-safety benchmarks for LLMs were lacking, and different LLMs needed different tuning and prompting.

Resolution: Coinbase built its own guardrails to evaluate inputs and outputs against hallucination, jailbreaking, and Three H behavior.

“Without clear benchmarks for the trust and safety of LLMs, companies need to build their own guardrails”article, stated
“Different LLMs require different amounts of efforts of tuning and prompting - to achieve the adequate level of protection.”article, stated

Customer-facing conversational use cases could not be optimized only for average model capability.

Root cause: Latency, user experience, high load, and burstiness affect chatbot quality of service.

Resolution: The platform added load and latency benchmarks and treated availability as part of use-case routing.

“This becomes a key factor for consideration in any conversational use cases (e.g. chatbot)”article, stated
“careful consideration of latency, user experience, and quality of service in handling high load and burstiness is essential.”article, stated

Evaluation

Coinbase's evaluation approach combines an internal LLM evaluation framework for Coinbase- and crypto-specific use cases, load and latency benchmarks for all platform models, guardrail checks over inputs and outputs, and decision-framework inputs such as cost, accuracy, latency, and availability.

Metrics: Internal LLM evaluation framework monitors performance across Coinbase and crypto use cases. · Load and latency benchmarks cover all LLMs available on the platform. · Cost comparisons include GPT-4 at 10x GPT-3.5 and Claude 3 Opus at 60x Claude 3 Haiku. · Latency varies from a few seconds to tens of seconds. · Several dozen non-ML team use cases had been built using CB-GPT.

4 supporting quotes
“An internal LLM Evaluation Framework to monitor the performance of LLMs across various use cases bespoke to Coinbase and crypto.”article, stated
“Load and Latency Benchmarks for all the LLMs available on the platform.”article, stated
“OpenAI's GPT-4 is 10x more expensive than GPT-3.5, and Anthropic's Claude 3 Opus is 60x the price of Claude 3 Haiku.”article, stated
“Till date, several dozen use cases have been built by non-ML teams, using CB-GPT.”article, stated

Outcomes

The article reports broad organizational adoption through API and Studio surfaces, several dozen non-ML team use cases, and a US-consumer-facing chatbot, but it does not publish detailed accuracy, safety, cache-hit, cost-savings, or latency SLA results.

4 supporting quotes
“serves as a unified interface for all GenAI-powered applications at Coinbase.”article, stated
“Coinbase’s customer-facing conversational LLM chatbot, serving all our US consumers, was launched in June, 2024”article, stated
“Till date, several dozen use cases have been built by non-ML teams, using CB-GPT.”article, stated
“At the same time, we've implemented robust safeguards to protect them. We are thrilled by the opportunities ahead and the value CB-GPT brings to Coinbase.”article, stated