Writer says five prompts improved local LLM before larger model download
The writer says a larger model usually gave about the same answer, only better written, and that better prompts changed results more than size.
By Lauren Foster ·

The setup was a single Node app behind an Nginx reverse proxy on an Ubuntu server. The writer says that description was the first prompt used before trying a bigger model.
The writer used to move from a 9B model to a 26B model when an answer was bad. That process was repeated often. It was consistently proven wrong.
Downloading a bigger model was easier than writing a more thorough prompt. The bigger model would usually give about the same answer, only better written. The writer says a bigger model is the answer without a doubt sometimes.
More often than not the better solution is to get better at prompting. The writer lists five prompts used before giving up and moving to a bigger model.
Context leads to helpful answers. The writer tells the model what is running. The more you can say about environment and tools, the better advice you will get.
Without enough context the model will make assumptions about setup and situation. Even the most strong model is not going to improve the response. A single sentence will go a long way, but responses get even better with more context.
The second prompt is to lead with the answer. The writer is not there for a friendly chat. The instruction used is: Give me an answer to my question first, then explain it afterward.
The writer hates glancing back at chat and seeing a giant wall of text. It is common to have to sift through a whole reply to find the one pertinent sentence needed. Leading with the answer means the relevant part is easy to find. If further elaboration is beneficial, it can be read later.
The third prompt is to ask clarifying questions. For non trivial tasks, ask up to three clarifying questions before answering. Answer simple questions directly.
It is hard to think of all the context a model might expect. Letting it ask clarifying questions gives it a chance to gather additional information. It is especially important on complex tasks with multiple steps, or on jobs where things need to be approached a particular way. Reminding it to ask follow up questions only when necessary is an important caveat.
The fourth prompt lets the model admit when it does not know. A non answer beats a wrong one. The instruction is: If you aren't sure about an answer, say so. State your assumptions and say how certain you are of them.
Local LLMs will sometimes give an outright incorrect answer with utmost confidence. Giving the model a simple out helps. The writer has models specify when an answer is an assumption, and estimate how certain they are of that assumption being correct.
The fifth prompt makes the model say when it is out of its depth. If a task needs more reasoning power than you are capable of providing, say so instead of attempting it.
This helps identify when a bigger model is needed. A bigger model is not always the fix. But sometimes it is. Using this prompt lets the model help identify when a bigger model is actually justified. If the smaller model can't reliably complete the task given its limitations, it will let you know.
The writer says this is not foolproof. It is better to have the model concede than to try and fail. If the bigger model can't tackle it either, then the prompt needs tweaking, or it is time to resort to a cloud model.
All five prompts can be baked into a Modelfile system block on Ollama. The command used is ollama create my-assistant -f Modelfile to get them permanently baked in.
The writer says if the model still fails after these five prompts, it is safe to conclude it is time to upgrade. The biggest upgrade to local LLMs came from the writer's own prompts.
Providing more context, answering clarifying questions, and giving models a way to admit when they don't know the answer started giving responses that were immensely more useful.






