Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

is the point of system prompts just to avoid prompt injection? or are they supposed to get better outputs too?

I never have found a need for them. i.e. the example in the article Just prompting like:

Write hello 3 different ways in spanish works fine for me




They let you at least partially separate instructions from data. This is useful for things like "Translate this text to French" - you don't want any instructions in the text you are translating to interfere with that goal.

If this was 100% robust then it would also solve prompt injection, but sadly it isn't.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: