ISO/IEC 5338 data processes for RAG knowledge bases: ingestion, chunking and freshness controls
ISO/IEC 5338 describes life cycle processes for AI systems but does not prescribe RAG controls. Treat ingestion, chunking and freshness as data acquisition, preparation and maintenance activities within those processes. Give each a documented control point and an evidence artifact. Keep pipeline controls separate from controls enforced at runtime on retrieval and tool calls.
Pipeline controls versus runtime controls
- 1
Pipeline
Source authorization, validation, classification, chunking configuration, index segregation, refresh, deletion propagation.
- 2
Runtime
Permission-aware retrieval, context minimization, per-interaction and per-tool-call policy decisions.
Evidence each control point should produce
- Source register: authorized sources with owner, trust tier, sensitivity and authentication method.
- Ingestion records: per-document validation and classification outcomes, with document version.
- Chunking configuration: versioned size, overlap and metadata schema, plus test results showing metadata survives.
- Freshness reports: last refresh per source against its staleness threshold, and deprecated content still indexed.
- Deletion test records: propagation across raw documents, embeddings and backups, with probe results.
- Runtime decision records: for each interaction or tool call, the policy applied, the decision (allow, redact, block, escalate) and what was retrieved and returned.
Where ISO/IEC 5338 fits
ISO/IEC 5338:2023 defines processes and concepts for describing the life cycle of AI systems based on machine learning and heuristic systems. Its processes support the definition, control, management, execution and improvement of the AI system across life cycle stages. It is a life cycle process standard. It is not a legal requirement or a certification scheme, and it does not mention RAG-specific mechanisms such as chunking. The mapping below is the author's interpretation, not text from the standard.
Three related references help with vocabulary. A NIST crosswalk aligns the AI RMF life cycle stages with those in ISO/IEC 5338. ISO/IEC 42001 Annex B includes data controls for acquisition, quality, provenance and preparation, and a separate NIST crosswalk links them to the AI RMF. The ISO/IEC 5259 series on data quality and ISO/IEC 8183 on the data life cycle sit alongside them.
For a RAG knowledge base, the interpretation is straightforward. Ingestion is data acquisition and preparation. Chunking is data preparation. Freshness is operation, monitoring, maintenance and eventual decommissioning of the data resource. Treat the index as an inventoried data resource with an owner, a lifecycle and a retirement record.
Ingestion: decide what may enter the index
Ingestion is where most downstream risk is set. Documents that reach the index are retrievable by design, so the pipeline has to decide what is allowed in before anything is embedded.
Start with a source register. Record each source, its owner, its trust tier and its sensitivity. Accept content only from authorized and verified sources, and validate documents before they are added. This matters for security as well as quality. Indirect prompt injection depends on an attacker being able to modify external sources that feed the model context, and RAG applications populate that context at runtime from exactly such sources.
Run sensitive data detection at ingestion and tag each document with a classification. Carry the source system's permissions into the index, because oversharing upstream (unscoped drives, legacy permissions, broad knowledge bases) lets RAG retrieve sensitive data exactly as designed. Do not let mixed-trust content, such as external web data, internal confidential documents and partner data, share an index without hard isolation. Hold vector database backups at the same sensitivity tier as the source documents. Version every document on ingest, and watch for index clusters that grow faster than expected after a load, since that can signal poisoned or unintended content.
Chunking: keep controls attached to the text
Chunking is usually treated as a relevance tuning choice. It is also a governance decision, because each chunk is the unit that gets retrieved, returned and possibly shown to a user.
The main risk is metadata loss. If classification, access group, source identifier, version and trust tier do not travel with every chunk, a permission-aware vector store has nothing to enforce against. Define a metadata schema and test that every chunk carries it.
Size and overlap involve tradeoffs. Small chunks can lose context and encourage wrong answers. Large chunks can pull unrelated sensitive text into a response. Overlap duplicates content across chunks, so a deletion or redaction has to find every copy. Apply redaction before chunking where possible so a sensitive span is not split across a boundary and missed.
Record chunking parameters as versioned configuration per source type. Treat a change to size, overlap or metadata handling as a change that triggers re-indexing and review, with retrieval quality and access tests as release criteria.
Freshness: define staleness and deletion per source
Freshness controls answer two questions: is the content still current, and is it still permitted to exist. Define both per source rather than as a single global schedule.
For each source, set an owner, a re-index trigger (a change event, a schedule, or both), an expiry or deprecation rule and a staleness threshold. Mark deprecated documents in metadata and exclude them from retrieval until they are removed. Index retirement should follow the same discipline as any decommissioned data resource, with a recorded decision.
Deletion needs the most care. Removing a source document must propagate to embeddings and to backups, and the procedure should be tested, for example with extraction probes after removal. Verifiable erasure is the standard to aim for, and it applies to every copy, including overlapping chunks.
Effectiveness is shown by evidence, not by schedules. Keep reports of last refresh time per source against its threshold, counts of deprecated content still indexed, and results of deletion tests.
Three RAG data stages, each with a control point and evidence
Ingestion
Source authorization, validation, classification and permission inheritance.
Chunking
Versioned configuration with classification and access metadata kept on every chunk.
Freshness
Refresh triggers, expiry, deletion propagation and staleness thresholds.
Define runtime control points for your RAG knowledge base
Review how policy enforcement on retrieval interactions and tool calls produces audit-ready evidence alongside your pipeline controls.
Explore Agent and Tool-Call EnforcementHow does your AI governance program compare?
See where your program has gaps in less than 2 minutes.