RAG for Everyone

← Back to interview questions

Chapter 7 Project90 min build

Project: Metadata Schema Validator

Build a validator that decides whether metadata records are safe to index and useful for production retrieval.

What you will build

1 Define required metadata

Include source id, chunk id, source URI, authority, access level, region, version, effective date, source position, and schema version.

2 Validate controlled values

Reject unknown authority, access, region, document type, and schema version values.

3 Enforce production rules

Restricted chunks need allowed roles. Retired chunks should not answer current production questions.

4 Generate audit reports

Return indexing decision, first risk, next action, and first operational metric.

← Interview QuestionsChapter 8 Lesson →