CASE 21 / POC / AEM CONTENT / RAG ORCHESTRATION
AEM + RAG Services on Kubernetes
Explore a proof-of-concept architecture that connects governed AEM Content Fragments to retrieval and an enterprise assistant. Kubernetes supplies workload boundaries and rollout controls; the PoC must still establish permission safety, content freshness and answer quality.
Engineering path
CONTENT TO ASSISTANT / POC
Proposed engineering sequence
- 01Content Fragments
- 02GraphQL / API
- 03Ingestion
- 04Retrieval index
- 05RAG service
- 06LLM endpoint
- 07Assistant
01 / Context
Use governed content as a source, not a guarantee
- PLATFORM
- Kubernetes / AEM Content Fragments
- SCOPE
- AEM RAG Architecture with Kubernetes Services
- TYPE
- Architecture exploration / proposed PoC
Structured AEM content offers fields and provenance that can help build retrievable passages. This proposed PoC studies whether that structure supports useful, source-backed answers; it does not assume an LLM will preserve the source's meaning or access restrictions.
02 / PROBLEM
Orchestration does not establish trustworthy retrieval
A technically healthy RAG service can retrieve stale content, omit the relevant passage or disclose information the caller cannot access. Those are application and governance failures that Pod health checks cannot detect.
03 / CONSTRAINTS
Boundaries the design must preserve
- Keep this a proposed PoC; orchestration does not establish trustworthy answers.
- Enforce access before evidence enters a prompt and propagate content removal.
04 / ARCHITECTURE
Separate ingestion from interactive answering
An ingestion workload fetches approved content through GraphQL or APIs, transforms it into versioned passages and updates a retrieval index. Interactive services authenticate callers, retrieve permitted evidence, build a bounded prompt and call an external LLM endpoint before returning an answer with source references.
CONTENT TO ASSISTANT / POC
Conceptual dependency flow. AEM and the LLM endpoint remain external; Kubernetes orchestrates ingestion, retrieval and RAG service workloads.
AEM RAG Architecture with Kubernetes Services
- Content Fragments
- GraphQL / API
- Ingestion
- Retrieval index
- RAG service
- LLM endpoint
- Assistant
05 / ENGINEERING APPROACH
Carry identity and provenance through the pipeline
Attach source URL, content identifier, revision and access metadata to passages. Enforce authorization before content reaches the model, propagate deletions and permission changes, and treat retrieved text as untrusted data rather than executable instructions.
Implementation checkpoints
Proposed engineering checks for this scenario.
- 01Use stable identifiers and resumable ingestion so retries do not duplicate passages.
- 02Separate service identities and network access for ingestion, retrieval and model calls.
- 03Version chunking, embedding inputs, prompt templates and model configuration for reproducible evaluation.
06 / DEPLOYMENT FLOW
Evaluate behavior before promoting a service revision
Run a fixed question set against the candidate retrieval and prompt configuration, then inspect citations, abstentions and permission failures. Deploy compatible service and index revisions together, with a rollback plan that accounts for their shared data contract.
POC VALIDATION LOOP
Evaluation is proposed work. No answer-quality benchmark or production result is asserted.
- 01Approved content
- 02Ingest
- 03Index
- 04Evaluate
- 05Deploy candidate
- 06Review answers
07 / OPERATIONAL CONSIDERATIONS
Scale ingestion and answering independently
Batch ingestion and interactive requests have different latency and concurrency needs. Bound model-call budgets and retries, record retrieval timing and source revisions, and avoid storing sensitive prompts or answers in general-purpose logs.
08 / TRADEOFFS
Freshness, isolation and platform overhead
A service boundary permits independent scaling and releases but introduces more failure points and operational cost. Before choosing Kubernetes, compare a simpler managed execution model; a small PoC may not justify a cluster operating model.
| Risk | Impact | Mitigation to validate |
|---|---|---|
| Unauthorized or stale passage | Sensitive or obsolete evidence reaches generation | Test user scopes, deletion and permission transitions |
| Service/index revision mismatch | Retrieval changes across rollout | Evaluate a fixed question set against versioned inputs |
Continue with the complementary design in Headless AEM: GraphQL and Sling Model Exporter Delivery Boundaries.
09 / WHAT I WOULD VALIDATE IN PRODUCTION
Define evidence before considering production use
The PoC's output should be an evaluation record and a decision about suitability, not a claim that deployment establishes trustworthy AI. Production adoption would require explicit security, content and operational acceptance.
Acceptance scope and limits
TO VALIDATE
Proposed checks, not captured results.
- Ask the same question as differently authorized users and inspect retrieved passages as well as final answers.
- Delete or restrict an AEM fragment and verify it no longer reaches prompts after the defined propagation window.
- Test unsupported questions, conflicting sources and injected instructions inside retrieved content.
- Simulate LLM timeouts, ingestion interruption and incompatible index revisions; verify bounded failure and recovery.
DOES NOT CLAIM
An anonymized architecture scenario for AEM-adjacent services. AEM remains on its separately supported deployment platform; this design does not place standard Adobe AEM deployments on Kubernetes. No production delivery or measured outcome is claimed. This is a PoC design and architecture exploration, not a claim of a built or production-operated AI platform.
- A completed customer deployment or measured production outcome
- A passing test run without retained execution evidence
10 / LESSONS
Treat answer quality as a release concern
Orchestration supports repeatability, but the decisive artifact is the evaluation evidence. A credible AI architecture makes permission handling, provenance and failure behavior as reviewable as its deployment manifests.
Technical references
These sources document product behavior. The scenario and proposed validation are engineering interpretations, not vendor claims or execution evidence.