Let’s Get Certified
Module 04 / 21 · Foundation model integration, data management and compliance

Convert mixed evidence into a valid model request

Trace a source record through extraction, validation and a typed Bedrock request.

Convert mixed evidence into a valid model request

Work through the decision

A scanned repair order combines a blurry serial number, a spoken note and a parts table. A valid JSON response still names the wrong asset. Where should the team start?

Check your reasoning

Trace the source through extraction and the model request. Preserve the page and row each field came from, mark uncertain characters and request review when the identifier is ambiguous. A schema-valid response can preserve a mistaken input perfectly.

Watch the source lesson at 1:03:13

Compare the choices

Quarantine invalid records
Check required fields, types and bounds at ingestion. Record a failure reason and only replay after repair.
Extract by modality
Use appropriate document, speech or image processing, preserve locations and confidence, and validate the resulting representation.
Validate the inference request schema
Construct the provider's expected role and typed content blocks, enforce supported media and check payload size before sending.
Normalize and redact context
Canonicalize units and identifiers, remove irrelevant repeated text and mask unnecessary personal data before building the prompt.

Preserve a disputed source field

Store the original page reference, the extracted string “31O7” and its confidence alongside the normalized field. If the asset registry contains both 3107 and 31O7, send the ambiguity to review. Silently replacing the letter O with zero can assign the repair to the wrong machine.

Apply it on AWS

Use Amazon Transcribe for spoken notes and Amazon Textract for forms or tables. An AWS Glue Data Quality rule can catch required-field gaps before enrichment. For Bedrock Converse, send supported content blocks and preserve the extraction confidence outside the model response.

Practice the guide skills

  1. Apply required-field, type and content checks to each source record. Quarantine rejects and record their reasons. Watch 1:03:13
  2. Pair an audio transcript with speaker turns, image-derived fields with page coordinates and table entries with row keys. Watch 1:06:26
  3. Build a typed Converse message for the selected model. Check role, content blocks, type and size before invocation. Watch 1:12:03
  4. Normalize units and dates, remove repeated boilerplate and redact unnecessary personal fields. Compare quality on held-out records. Watch 1:15:14

Official objectives for this lesson

Related lesson · Follow a model from data to a production decision

Knowledge check

Convert mixed evidence into a valid model request quiz

Answer 3 questions. Check each answer for an explanation.