# Lab 05: Generative AI # AWS services: Bedrock (foundation models, guardrails, knowledge bases) import: - labs/_defaults - catalog/shared/s3-bucket - catalog/genai/bedrock vars: lab: "05-genai" components: terraform: # S3 bucket for prompts and outputs s3-bucket: vars: name: "genai-data" folder_names: - "input/prompts" - "input/documents" - "output/responses" - "knowledge-base" tags: Lab: "05-genai" # Bedrock resources bedrock: vars: # Guardrails for content filtering create_guardrail: true guardrail_blocked_input_message: "I cannot process this request due to content policy restrictions." guardrail_blocked_output_message: "I cannot provide this response due to content policy restrictions." content_filter_config: hate_input_strength: "HIGH" hate_output_strength: "HIGH" insults_input_strength: "HIGH" insults_output_strength: "HIGH" sexual_input_strength: "HIGH" sexual_output_strength: "HIGH" violence_input_strength: "MEDIUM" violence_output_strength: "MEDIUM" misconduct_input_strength: "HIGH" misconduct_output_strength: "HIGH" # Knowledge Base - disabled by default (requires vector store) create_knowledge_base: false create_s3_data_source: false # Model invocation logging is account-wide per region and logs every # prompt and response. Leave it off unless you own the whole account. enable_model_invocation_logging: false log_retention_days: 7 tags: Lab: "05-genai"