The key is providing enough structure and guidance to elicit a high-quality output from the AI, while still allowing flexibility to leverage its knowledge and capabilities. Crafting an effective prompt takes experimentation.
Refine the prompt by testing it, analyzing the outputs, and adjusting the wording, context, or constraints until you get the desired result.
Experiment across different language models.
The idea is to provide a solid framework to shape the response, but leave room for the LLM to fill in gaps with its own knowledge generation capabilities.
Too little structure risks low-quality outputs, while too much structure could negate the benefits of using an LLM in the first place.
"You are a talented science fiction writer. Known for your sense of humor.
Write a fictional discussion between ChatGPT, Siri, and Alexa about problems dealing with human stupidity, with funny examples.
All characters are free to speak up their minds, even if against their programming. Make them snarky, dark, ironic, intense.
Finish with a creative and unexpected ending."
Try a basic historical interview prompt:
"Assume the role of Leonardo da Vinci so that we can have an interactive Q and A session. Your responses should be historically accurate and in the voice of Leonardo and his era."
Or a more elaborate historical adventure game. (Notice this prompt ask the LLM to wait for a response before next step.)
"You are an historian who likes to create text adventure games as engaging teaching tools. I'm studying history in high school.
Create a text adventure game I can use to explore Mesopotamia and help me explore important people, events, and concepts in its geography and language.
Create it like a historically accurate story, teaching me about Mesopotamia while I'm interacting with it. Give me three paragraphs of story at a time. Then, stop and ask me to make a decision. Wait for my response before you continue the story in a way that's consistent with the decision I've made. Ideally, I'd like about 3 prompts before the story ends.
When the story ends, ask me a few questions that help me reflect on what I've learned."
Wharton Interactive's Faculty Director Ethan Mollick and Director of Pedagogy Lilach Mollick