Applications of Foundation Models
Choosing, prompting, customizing and evaluating foundation models, and the designs that put them to work.
3.1任务
Describe design considerations for applications that use foundation models (FMs).
你应当能够: Choose a foundation model, tune its responses with inference parameters, ground it with RAG and vector stores, and compare ways to customize it.
3.1任务
Describe design considerations for applications that use foundation models (FMs).
你应当能够: Choose a foundation model, tune its responses with inference parameters, ground it with RAG and vector stores, and compare ways to customize it.
3.1 Describe design considerations for applications that use foundation models (FMs).
- Retrieval Augmented Generation (RAG)Look up facts first, add them to the prompt, then let the model answer from them.
- Amazon Bedrock Knowledge BasesManaged RAG: Bedrock reads your documents, stores them as vectors and retrieves them for the model.
- Vector databasesA store that finds items by meaning, which RAG needs to look up the right passages.
Amazon OpenSearch ServiceSearch and analytics engine that can also store embeddings and run vector search.
Amazon AuroraManaged relational database whose PostgreSQL edition can store vectors next to your rows.
Amazon NeptuneGraph database used for graph-based RAG and for vector search over connected data.
Amazon RDSManaged relational databases; Amazon RDS for PostgreSQL can store embeddings.
- Customization cost tradeoffsFive ways to adapt a model, from cheapest to costliest, and when each one is the answer.
3.1 Describe design considerations for applications that use foundation models (FMs).
- AI agentsA foundation model that plans, calls tools and takes actions to finish a goal.
Amazon Bedrock AgentsA managed agent in Amazon Bedrock: the model plans the steps, calls your APIs and looks up your documents.
Amazon Bedrock FlowsA visual builder that links prompts, models and AWS services into a generative AI workflow with fixed steps.
3.2任务
Choose effective prompt engineering techniques.
你应当能够: Write prompts that work, name the main techniques, and know the risks and how Amazon Bedrock Prompt Management helps.
3.2任务
Choose effective prompt engineering techniques.
你应当能够: Write prompts that work, name the main techniques, and know the risks and how Amazon Bedrock Prompt Management helps.
3.2 Choose effective prompt engineering techniques.
- Prompting techniquesZero-shot, few-shot, chain-of-thought, negative prompts, templates, roles, chaining and ReAct, with one clue each.
- Prompt best practicesHabits that raise answer quality: be specific, keep it short, give examples, test and add guardrails.
- Prompt risks and limitsExposure, poisoning, hijacking and jailbreaking: how prompts get attacked and how to defend.
- Amazon Bedrock Prompt ManagementSave, version and reuse prompts, and compare prompt variants, inside Amazon Bedrock.
3.3任务
Describe the training and fine-tuning process for FMs.
你应当能够: Describe how a foundation model is trained, the ways to fine-tune it, and how to prepare the data.
3.3任务
Describe the training and fine-tuning process for FMs.
你应当能够: Describe how a foundation model is trained, the ways to fine-tune it, and how to prepare the data.
- Training a foundation modelPre-training, continued pre-training, fine-tuning and distillation: who does what, and what it costs.
- Fine-tuning methodsWays to adapt a pre-trained model: instruction tuning, domain adaptation, transfer learning and continued pre-training.
- Preparing fine-tuning dataCuration, governance, size, labeling and representativeness: what makes training data good.
- RLHFReinforcement learning from human feedback: people rank answers and the model learns to give the kind they prefer.
3.3 Describe the training and fine-tuning process for FMs.
3.4任务
Describe methods to evaluate FM performance.
你应当能够: Measure a foundation model and the applications built on it, with human review, benchmarks, metrics and business measures.
3.4任务
Describe methods to evaluate FM performance.
你应当能够: Measure a foundation model and the applications built on it, with human review, benchmarks, metrics and business measures.
3.4 Describe methods to evaluate FM performance.
- FM metrics: ROUGE, BLEU, BERTScore and benchmarksScores for the text a model writes: ROUGE, BLEU, BERTScore, perplexity and named benchmarks.
- LLM-as-a-judgeOne model grades another model's answers, with scores and reasons.
- Judge metrics: correctness, completeness and moreThe built-in scores a judge model gives in Amazon Bedrock, from correctness and completeness to harmfulness, plus the RAG metrics.
- Evaluating RAG, agents and workflowsTest each part of an FM application: retrieval, generation, agent actions and the whole workflow.
- Business objective metricsMeasure whether a model helps the business: productivity, engagement, task completion, satisfaction and cost.