RAG index construction and evaluation
Build a retrievable knowledge index and validate it before publication.
Activity responsibilities
| Activity | Responsibility |
|---|---|
collect-documents | Execute the collect documents stage and publish its declared outputs for downstream activities. |
extract-and-clean | Execute the extract and clean stage and publish its declared outputs for downstream activities. |
chunk | Execute the chunk stage and publish its declared outputs for downstream activities. |
embed | Execute the embed stage and publish its declared outputs for downstream activities. |
build-index | Execute the build index stage and publish its declared outputs for downstream activities. |
retrieval-tests | Execute the retrieval tests stage and publish its declared outputs for downstream activities. |
answer-tests | Execute the answer tests stage and publish its declared outputs for downstream activities. |
publish-index | Execute 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
Source bundle
The executable workflow and its implementation files are maintained in the separate AkôFlow examples repository. The documentation intentionally keeps code, container recipes, generators, and validation scripts out of the narrative page.
Open the complete source bundle ↗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.



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.