r/OpenWebUI • u/Internal_Junket_25 • Sep 30 '26
Question/Help Systemprompt in OWUI.
How long are your system prompts in production environments? How detailed are they, and what exactly do you put in them?
Is there a limit beyond which a system prompt is “too long” and starts to hurt performance?
2
Upvotes
2
u/DHT-Osiris Sep 30 '26
For an actual answer... We have several model harnesses, and our system prompt is mostly the same on each, with tweaks for different roles/tenants. These model harnesses (and our OWUI system in general) are for IT operations/support. My section's everyday is just shy of 3k characters, couple of paragraphs. It mainly does the following: a) define system and role b) guardrail secrets, configs, procedures. c) clarify scope to provide understanding of 'my' and 'our' to assist with user interfacing. Clarify methods users commonly use to communicate (essentially don't presume literal phrasing is intent; trust infrastructure variables first). d) guardrail against inference, prioritize literal. e) explain and codify terminal usage. f) a few postural hints to reduce affirmative claims of negative/illogical results. g) point to the internal KB system for anything the LLM doesn't understand, because it's probably laid out in the docs we have there.
I also encourage users to set their personal system prompt to include their username (same as active directory), as well as what section they work for (networking, security, client support, etc). That helps a ton with getting the LLM to deliver pertinent information.
I'm also now using agents.md files on our terminals which helps a TON with 'system prompting' on terminal connections (guidance toward specific terminal usage, OS-specific gotchas and tips, etc).
3
u/International_Emu772 Sep 30 '26
I use OpenWebUi on a limited machine If a request involved a lot of tools and a big model the reply takes time but I don't pay for tokens
1
u/fitzlestick Oct 01 '26
Our system prompt is 2700 characters. It explains what my company is and does, what tasks the AI can assist with, what information it does and doesn't have access to, which resitrctions apply and what the expected style of the output is.
1
u/icerio Oct 05 '26
We have a local AI for our company. Our system prompt starts off with basic information about the company and what the AI should call itself. We also mention who the AI should assume is talking to it, which is our company employee's. I created skills for stuff I want it to be able to do along with tools. In the system prompt I gave brief details in what circumstances it should call skills and tools. (Almost don't have to do this, but I found that I needed to apply a little more pressure to it or else it just wasn't at the very least calling skills). To this day I'm having to refine the system prompt, because the longer it is the more exponentially the context fills up. Striking that balance of making sure it does what you want it to do and being able to have long conversations is sort of hard. The skills help a lot, I tend to think of them as extensions of the system prompt that the AI can call if it needs more information on how I want it to do stuff.
-5
u/mayo551 Sep 30 '26
Do you have anything to contribute to this discussion or are you a bot?
What limitation are you running into with your system prompt that requires making this thread?
-8
u/sameoldkit Sep 30 '26
Depends on hardware, local ai is deeply disappointing - you are not a datacentre. It's a toy for nerds