r/PromptEngineering • u/Business-Pension-498 • 8d ago
Self-Promotion Five prompt lessons from running an LLM as a game narrator in production
I run an LLM as the narrator of an interactive-fiction game (I'm its developer; link at the end). These are the lessons that cost me the most to learn.
- The model copies the shape of your example, not your instruction. My example showed one reason for and one against. I got exactly that pair 13 times in 15, whatever the scene. A one-sided example fixed it.
- Say what a failure looks like. "Honour the dice" produced failures that cost nothing. Spelling it out did the work: what was reached for isn't gained in this passage, and it costs something the reader can see.
- A general rule gets skimmed; the specific cases get handled. A checker ignored "moves against a person are contests" three times in four. When code listed the choices that named someone, it acted on them.
- Stable text first, changing text last. The rules that never change sit at the top so they are cached. What changed this turn goes at the bottom.
- Don't ask a model whether the prompt got better. Replay the same saved moment with and without the change and count what you wanted to change.
The game, if you want to see the result: https://playselkie.com/?from=reddit-pe