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.

SHARE
LinkedIn X Facebook Threads

Engineering path

CONTENT TO ASSISTANT / POC

Proposed engineering sequence

  1. 01Content Fragments
  2. 02GraphQL / API
  3. 03Ingestion
  4. 04Retrieval index
  5. 05RAG service
  6. 06LLM endpoint
  7. 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

  1. Keep this a proposed PoC; orchestration does not establish trustworthy answers.
  2. 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.

SYSTEM / FLOW

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 SERVICESContent FragmentsGraphQL / APIIngestionRetrieval indexRAG serviceLLM endpointAssistant

AEM RAG Architecture with Kubernetes Services

  1. Content Fragments
  2. GraphQL / API
  3. Ingestion
  4. Retrieval index
  5. RAG service
  6. LLM endpoint
  7. 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.

  1. 01Use stable identifiers and resumable ingestion so retries do not duplicate passages.
  2. 02Separate service identities and network access for ingestion, retrieval and model calls.
  3. 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.

  1. 01Approved content
  2. 02Ingest
  3. 03Index
  4. 04Evaluate
  5. 05Deploy candidate
  6. 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.

Risks to resolve
RiskImpactMitigation to validate
Unauthorized or stale passageSensitive or obsolete evidence reaches generationTest user scopes, deletion and permission transitions
Service/index revision mismatchRetrieval changes across rolloutEvaluate 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.

11 / CONTINUE EXPLORING

Related engineering work

Related Lab notes

12 / SHARE

SHARE THIS CASE STUDY

SHARE
LinkedIn X Facebook Threads

Working through a similar platform problem?

Start a conversation