Library

Volume 2 · Cost & Trade-Off Analysis for AI Systems

Notebook
Sign in

Architecture Decision Records (ADR) for AI Systems

764 words · about 3 min

Why ADRs Matter for AI Architecture Specifically

AI system architecture decisions (model choice, vector database, retrieval strategy, evaluation thresholds, deployment topology) are made under more uncertainty and change more frequently than typical infrastructure decisions — the field itself moves quickly and empirical evaluation results often overturn initial assumptions. ADRs create a durable record of why a decision was made given the information available at the time, which is essential when revisiting a decision later (has the underlying assumption changed, or is this just second-guessing a still-valid trade-off?) and when onboarding new team members who would otherwise have to reverse-engineer the reasoning from the code.

ADR Template

# ADR-001: Choice of Vector Database

## Status: Accepted

## Context
We need a vector database for our RAG system that will store
~50M document embeddings (1536 dimensions) and handle 1000 queries/sec.

## Options Considered
1. Managed vector DB service
2. Self-hosted open-source vector DB on Kubernetes
3. Relational database with a vector extension

## Decision
Self-hosted open-source vector DB on Kubernetes.

## Rationale
- Relational-DB-with-vector-extension: cannot handle 1000 QPS at 50M scale efficiently
- Managed service: meets performance needs but carries significant monthly cost and requires data to leave our environment
- Self-hosted: open-source, performs well at our target scale, runs on existing Kubernetes infrastructure

## Trade-offs Accepted
- We own operational burden (upgrades, scaling, backups)
- Need in-house team expertise in this database's operations
- Faster iteration control traded against the managed option's operational simplicity

## Consequences
- Operations team needs training on the new database
- Need to build monitoring dashboards from scratch
- Need to define and test backup/restore procedures

ADR Best Practices for AI Systems Specifically

  1. Record the evaluation data, not just the conclusion — an ADR for a model choice should reference the actual golden-dataset scores, latency benchmarks, and cost comparisons that drove the decision (Section 58), not just “we chose Model X because it seemed good,” since the underlying numbers are what let you tell later whether the decision needs revisiting.
  2. Set an explicit revisit trigger — e.g., “revisit this model choice if a new model class shows >10% quality improvement on our golden dataset at equal or lower cost” — since the fast pace of model releases makes “revisit annually” often too slow and “revisit whenever someone feels like it” too undisciplined.
  3. Link ADRs to the system card and governance record (Section 69) — architecture decisions with compliance or risk implications (e.g., choosing to self-host for data residency reasons) should be traceable from the governance documentation, not siloed in an engineering wiki nobody in Legal reads.
  4. One decision per ADR — bundling multiple decisions (model choice + deployment topology + caching strategy) into a single ADR makes it hard to revisit one without re-litigating all of them.

Interview Q&A — ADRs

Q1: Why are ADRs particularly valuable for AI system architecture compared to traditional software architecture? A: AI architecture decisions carry more inherent uncertainty at decision time (model landscape, cost structures, and best practices shift quickly) and are more frequently revisited as new models or evaluation data become available — without a recorded rationale, a team either re-litigates the same decision repeatedly from scratch, or worse, nobody revisits a genuinely stale decision because nobody remembers why it was made or what would need to be true to change it. I make a point of recording the actual evaluation data behind an AI-related ADR (golden dataset scores, cost/latency benchmarks) rather than just the conclusion, and setting an explicit, measurable trigger for revisiting it, so the decision record itself tells you whether circumstances have actually changed enough to warrant reopening the question.

Q2: A model choice ADR from six months ago is being questioned because a new model has been released. How do you use the ADR to resolve this efficiently? A: I’d pull the original ADR’s documented rationale and, critically, its revisit trigger if one was set — if the ADR specified something like “revisit if a new model shows meaningfully better quality at equal or lower cost on our golden dataset,” the question becomes a quick, objective evaluation exercise: run the new model through the same golden dataset and cost model used originally, and compare directly against the recorded baseline numbers. This turns what could be a subjective, opinion-driven debate (“I think the new model seems better”) into a bounded, evidence-based decision using the same evaluation harness (Sections 58/62) that produced the original decision, and the outcome — whether to switch or stay — gets recorded as a new ADR that supersedes the old one, preserving the full decision history.