Skip to main content
Back to Library
Prompt Engineering Guide

Mastering Creative writing
on Phi-3.5 MoE

Stop guessing. See how professional prompt engineering transforms Phi-3.5 MoE's output for specific technical tasks.

The "Vibe" Prompt

"Write a cool short story about a detective in a cyberpunk city."
Low specificity, inconsistent output

Optimized Version

STABLE
You are Phi-3.5 MoE, an advanced creative writing assistant. Your task is to generate a compelling short story (500-700 words) set in a cyberpunk city. The story should feature a grizzled, cynical detective named Kael, who is investigating the disappearance of a prominent corporate executive, Elysia Vance. Integrate the following elements: 1. **Setting Details:** Neon-drenched alleyways, towering corporate skyscrapers, pervasive holographic advertisements, and a palpable sense of urban decay. 2. **Character Development (Kael):** Focus on his internal monologue, his weariness with the system, and a hidden moral compass. 3. **Plot Arc:** * **Introduction:** Kael receives the case, initially dismissive. * **Rising Action:** He investigates, encountering street informants, shadowy corporate rivals, and digital breadcrumbs. * **Climax:** Kael uncovers a conspiracy far grander than a simple disappearance, involving data theft and corporate espionage, leading to a confrontation. * **Falling Action:** Kael escapes, but the truth remains largely hidden from the public. * **Resolution:** Kael reflects on the futility of his work but finds a small, personal victory or renewed purpose. 4. **Themes:** Corporate greed, the erosion of privacy, the struggle for humanity in a technological world, and moral ambiguity. 5. **Tone:** Gritty, noir, cynical, and suspenseful. 6. **Style:** Use vivid descriptive language, strong verbs, and a pacing that builds tension. Employ a chain-of-thought approach to planning your story before writing. First, outline the main beats of the plot arc, ensuring each required element is integrated. Then, consider how to weave the themes and tone into Kael's narrative. Finally, draft the story, adhering to the word count and stylistic requirements. Do not output the planning steps, only the final story.
Structured, task-focused, reduced hallucinations

Engineering Rationale

The optimized prompt provides clear, structured instructions broken down into specific categories (setting, character, plot, themes, tone, style). It establishes a persona for the model ('You are Phi-3.5 MoE'), sets a word count, and explicitly requests a 'chain-of-thought' approach to guide the model's internal processing before generating the final output. This reduces ambiguity and increases the likelihood of a high-quality, relevant, and comprehensive story by providing guardrails and a clear roadmap for the AI. The naive prompt is too broad and leaves too much to the model's discretion, potentially leading to generic or unfocused content. The optimized prompt also encourages a specific narrative structure ( 도입, 展开, 고조, 하강, 결말).

0%
Token Efficiency Gain
The optimized prompt explicitly defines character traits, mitigating generic character generation.
The optimized prompt outlines a specific plot arc, ensuring a coherent narrative structure.
The optimized prompt specifies thematic elements, leading to a more profound and relevant story.

Ready to stop burning tokens?

Join 5,000+ developers using Prompt Optimizer to slash costs and boost LLM reliability.

Optimize My Prompts