Added
A financial firm uses a text-generation service to draft replies to customer emails. An attacker sends a message containing instructions that tell the model to ignore its prior directions and disclose internal escalation procedures. The service uses a retrieval component that searches a vetted knowledge base, but the generated text is sent to a human agent for approval. The firm cannot replace the model this quarter and wants to reduce the chance that untrusted content steers generation. Which change BEST addresses the attack path?
The described attack is prompt injection through untrusted content. Separating that content from trusted instructions and validating generated output reduces the chance that retrieved or user-supplied text controls the assistant, while retaining the human approval gate. Temperature changes sampling randomness, not the trust boundary. Adding attacker text to a knowledge base can make it retrievable and does not reliably teach the model to reject it. Removing approval eliminates a useful control rather than mitigating the input attack.