MultiHub Forum

Full Version: How can i craft prompts for llms with prompt engineering without guesswork?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been trying to use a large language model for some creative writing tasks, but the results are either too generic or go completely off the rails. I read about prompt engineering for language models, but it seems more like an art than a science. How do you learn to craft better prompts without just guessing and checking endlessly?
Good question. Treat prompt crafting like a mini design brief: decide the goal, the audience, the length, and the vibe first. Then add a couple of examples to anchor the style. Start with a simple prompt that asks for an outline, then a draft, then a revision pass. The word prompt will be your friend here.
Prompts aren't magic; there isn't one universal formula. You learn what prompts push outputs toward what you want, and build a little toolkit instead of chasing a perfect one.
Three-step prompt template: 1) set voice, audience, length; 2) add constraints like no clichés or under 600 words; 3) request an outline plus a draft and then a rewrite.
Role prompts can help: tell the model to act as a specific writer or editor with rules.
Add guardrails: explicit boundaries; request a coherence check; include a revision step.
Measure and iterate: keep a simple rubric for tone, coherence, novelty; log what prompts work; reuse those prompts as templates.
Starter example prompt: You are a seasoned fantasy editor. Write a 900-word short scene about a clockmaker in a ruined city, in a lyrical but precise voice. The scene should introduce a twist at the end and stay under 900 words. After the draft, provide a punch-list of 5 improvements.