AI and LLMs · Middle · Question 21 of 75
Why shouldn't secrets be placed in a system prompt?
- 1System prompts are deleted after the first request
- 2System prompts can leak through clever user questions
- 3Secrets make the model's answers less accurate
Show the answer
Correct answer: System prompts can leak through clever user questions
Explanation
Assume users can extract the system prompt. Keys and internal URLs belong in server code, not in text the model sees.