Learning Objectives
By the end of this chapter, you will be able to:
- Identify selection criteria to choose FMs based on cost, modality, latency, multi-lingual support, model size, model complexity, customization, input and output length, and prompt caching.
- Describe the effect of inference parameters on model responses including temperature, top-p, top-k, and length controls.
- Define Retrieval Augmented Generation (RAG) and describe its business applications including Amazon Bedrock Knowledge Bases.
- Identify AWS services that store embeddings inside vector databases including Amazon OpenSearch Service, Amazon Aurora, Amazon Neptune, and Amazon RDS for PostgreSQL.
- Explain the cost tradeoffs of pre-training, fine-tuning, in-context learning, RAG, and model distillation.
- Define the role of AI agents and describe their business applications.
- Choose effective prompt engineering techniques including chain-of-thought, zero-shot, one-shot, few-shot, and prompt templates.
- Describe design considerations for applications that use foundation models, including prompt construction primitives and fine-tuning data preparation.
- Describe methods to evaluate FM performance using ROUGE, BLEU, BERTScore, LLM-as-a-judge, human-in-the-loop, and Amazon Bedrock Model Evaluation.
- Describe the training and fine-tuning process for FMs.
Executive Summary
- FM application design is a series of tradeoffs across cost, latency, modality, context length, customization technique, and evaluation strategy. A single decision (pick a smaller model, switch from fine-tuning to RAG, raise temperature) cascades into every other axis.
- Prompt engineering is the cheapest customization lever and the first one to exhaust before paying for retrieval, fine-tuning, or pre-training.
- Retrieval Augmented Generation grounds FMs in proprietary data without retraining; Amazon Bedrock Knowledge Bases packages the ingestion, chunking, embedding, and retrieval orchestration so applications only call a single
RetrieveAndGenerateAPI. - Evaluation runs in three layers: automatic metrics (ROUGE, BLEU, BERTScore), model-judged metrics (LLM-as-a-judge inside Amazon Bedrock Model Evaluation), and human-in-the-loop review with Amazon Augmented AI.
- The exam tests Amazon Bedrock service names, capabilities, and pricing patterns more often than algorithmic details. Memorize which service does which job.
Assumptions
- The reader has completed Chapters 1 and 2 and is fluent in tokens, embeddings, transformer architecture, the FM lifecycle, the Amazon Bedrock Converse API, Provisioned Throughput, and the Generative AI Security Scoping Matrix.
- All AWS Region availability statements describe documented features without naming a specific Region unless the syllabus calls for one.
- "Model" in this chapter always means a foundation model unless preceded by "classical".
- Cost figures use token-based pricing patterns rather than dollar amounts, because per-token rates vary by model family and Region.
