Let’s Get Certified
Module 05 / 13 · ML model and foundation model development

Choose retrieval, customization or a simpler model

A travel assistant quotes changing fares and must produce a consistent response structure.

Choose retrieval, customization or a simpler model

A travel assistant quotes changing fares and must produce a consistent response structure. Fresh facts and learned response behavior have different update cycles. Define a held-out task, a latency budget and a cost target before picking the architecture.

At 1:02:44 the instructor distinguishes frequently changing prices from a response format the model can learn. Give each requirement its own test.

Work through the decision

A support lead proposes weekly fine-tuning to update fluctuating prices and to learn a house tone. How would you separate the experiments?

Check your reasoning

Retrieve the latest prices from the approved store. Evaluate tone with prompting, then supervised examples if required. Test freshness and stylistic adherence as separate outcomes.

MLA-C02 recording · 1:02:44

Continue in the recording · 54:51 · 1:01:55.

Decisions and tradeoffs

Retrieval with cited current records
Retrieve authorized, versioned information when answers must track changing knowledge and point to a source.
Supervised fine-tuning for behavior
Curated input-output examples can adapt style or task behavior when prompting alone falls short.
Tabular supervised baseline
A conventional classifier or regressor gives a measurable starting point for labeled structured inputs.
Task-specific Bedrock model evaluation
Compare candidate models on representative prompts, quality, latency, limits and total cost.
Managed task-specific AI service
A supported managed service can meet the task without training and operating a custom model.
Quality–latency–cost frontier
Measure tradeoffs on equivalent inputs and retain options that satisfy the actual workload targets.
Hybrid retrieval
Combine lexical and semantic signals when exact product identifiers and paraphrases both matter.

Practice each guide skill

The numbers below follow the AWS task and skill identifiers.

  1. Evaluate candidate Bedrock models with representative requests, quality criteria, latency and per-task cost.
  2. Try a prompting baseline, then select suitable fine-tuning data or adapters if response behavior still misses the target.
  3. Compare a tabular classifier, a time-series model and an FM on the actual task. Record why a generative response is or is not needed.
  4. Compare a managed document extraction service with a custom model using labels available, maintenance effort and required accuracy.
  5. Use retrieval for changing facts. Compare semantic and hybrid search when users supply part numbers and descriptions.
  6. Plot validation score against training hours for a small and a large model and choose one within the training budget.
  7. Compare p95 latency and cost per accepted answer across model sizes at expected concurrency.
  8. Match an OCR workload to Textract and speech transcription to Transcribe. Test the managed output before deciding to train.

Official objectives for this lesson

Related lesson · Choose the grain before aggregating

Knowledge check

Choose retrieval, customization or a simpler model quiz

Answer 3 questions. Check each answer for an explanation.