AI and LLMs · Middle · Question 21 of 75

Why shouldn't secrets be placed in a system prompt?

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.

Further reading

Problem with a question

AI and LLMs · Middle · question 21

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz