Reference architecture

Production RAG on AWS

Watchv1.0.0

A production-oriented RAG blueprint with model serving, vector search, observability, and an LLM gateway abstraction.

ragai-platformawsllmops
Author
ForgeRank Demo Lab
Use case
Enterprise RAG application with provider flexibility
Lineage
Original seeded blueprint
Updated
Sep 25, 2026

Stack health

Health score74
PII review required
Model provider portability
Traceability for prompt and retrieval changes
Risks and aging warnings
Blueprint health is marked Watch; review component freshness before copying.
Terraform is flagged Watch in the IaC role.
Langfuse is flagged High attention / lower adoption in the observability role.
Langfuse has high attention but lower adoption confidence in seeded signals.
LiteLLM has high attention but lower adoption confidence in seeded signals.

Components by capability

AI model serving
vLLMAccelerating
Self-hosted model endpoint

Supports high-throughput serving for models that justify self-hosting.

version 0.xoptional
IaC
Cloud infrastructure provisioning

Existing team skill and provider coverage reduce delivery risk.

version 1.xrequired
database
PostgreSQLHealthy
Application metadata store

Keeps application state and operational metadata in a proven relational system.

version 16required
observability
Telemetry pipeline

Keeps app traces compatible with broader observability systems.

version currentrequired
LangfuseHigh attention / lower adoption
Prompt, trace, and evaluation layer

Makes retrieval and generation behavior inspectable.

version 2.xrequired
runtime
LiteLLMAccelerating
LLM gateway and provider routing

Decouples application code from model provider churn.

version 1.xrequired
vector database
QdrantStable
Retrieval index

Balances open-source deployment and managed-service optionality.

version 1.xrequired

Architecture decisions

Separate model gateway from model serving

Accepted

Put LiteLLM in front of provider APIs and optional vLLM endpoints.

A gateway reduces application churn as model choices change.
Gateway reliability becomes part of the critical path for AI requests.

Use a dedicated vector database for retrieval

Accepted

Use Qdrant for the first production index rather than folding vectors into the transactional database.

Dedicated vector operations and managed-service optionality are useful for this workload.
The team should revisit this if vector workload remains small.

Build vs buy suggestions

Self-host PostgreSQLself host

Operate Postgres directly on VMs or Kubernetes.

Managed PostgreSQLmanaged service

Use a cloud provider or database vendor to handle core operations.

Purpose-built datastorebuild alternative

Build a narrower persistence layer only when data requirements are unusual.

Self-host Qdrantself host

Run Qdrant alongside application infrastructure for RAG retrieval.

Qdrant Cloudmanaged service

Use a managed vector database service for faster delivery.

Activity
Updated component health review from seeded snapshots.
Recorded architecture decision evidence.
Queued future collector hooks for dependency and vulnerability signals.
Original blueprint