Professional Machine Learning Engineer
You are using generative AI to build a conversational agent to support bank customers’ inquiries about their product base and transaction history. You must ensure that the agent does not include personally identifiable information (PII) in its responses. You want to implement this requirement with minimal effort. What should you do?
- A. Configure the safety_settings thresholds within the Agent Platform model parameters to Block_Most.
- B. Develop a post-processing wrapper using Python’s re module with patterns r'\b(?:\d{4}[- ]?){3}\d{4}\b' to identify and redact credit card numbers.
- C. Implement Model Armor with Sensitive Data Protection to detect and redact PII from the agent’s responses.
- D. Use sampled Shapley (SHAP) values to understand the model’s predictions and ensure that it is not biased toward revealing PII.