Skip to main content

RAG index construction and evaluation

Build a retrievable knowledge index and validate it before publication.

RAG index construction and evaluation

Activity responsibilities

ActivityResponsibility
collect-documentsExecute the collect documents stage and publish its declared outputs for downstream activities.
extract-and-cleanExecute the extract and clean stage and publish its declared outputs for downstream activities.
chunkExecute the chunk stage and publish its declared outputs for downstream activities.
embedExecute the embed stage and publish its declared outputs for downstream activities.
build-indexExecute the build index stage and publish its declared outputs for downstream activities.
retrieval-testsExecute the retrieval tests stage and publish its declared outputs for downstream activities.
answer-testsExecute the answer tests stage and publish its declared outputs for downstream activities.
publish-indexExecute the publish index stage and publish its declared outputs for downstream activities.

Inputs

  • Source collection
  • Chunking policy
  • Model revisions

Outputs

  • Index snapshot
  • Evaluation reports
  • Source manifest

Provenance to preserve

  • Source revisions
  • Chunk identifiers
  • Prompts and models

Runnable example

This is the complete checked-in bundle for this pattern. Download the environment, scope, topology, workflow, input, container recipe, runner, and validation contract from this page before executing it.

Verified local execution

These captures and the output manifest were produced by the fixture's local Docker run and validator. They are published with the same bundle as the runnable files.

RAG index construction and evaluation workflow execution evidence
Workflow evidence
RAG index construction and evaluation execution evidence
Execution evidence
RAG index construction and evaluation output evidence
Output evidence
Open verified output manifest ↓

Execution considerations

Fan out document processing and embedding. Treat the vector database as a service while retaining immutable index evidence.

AkôFlow boundary: the engine schedules, deploys, executes, transfers data, and records evidence. The ML or agent framework remains an implementation choice inside each activity.