Muralidhar Kashipathi's blog

Examples of carefully crafted prompts

Carefully crafted prompts help us get the most of LLM'S. I will share a few interesting ones in this article and, hopefully, keep updating them over a period of time.

Prompting Diverse Ideas

Prompt:

Generate new product ideas with the following requirements: The product will target college students in the United States. It should be a physical good, not a service or software. I'd like a product that could be sold at a retail price of less than about USD 50. The ideas are just ideas. The product need not yet exist, nor may it necessarily be clearly feasible.

Follow these steps. Do each step, even if you think you do not need to.

  1. First generate a list of 100 ideas (short title only)
  2. Second, go through the list and determine whether the ideas are different and bold. Modify the ideas as needed to make them bolder and more different. No two ideas should be the same. This is important!
  3. Next, give the ideas a name and combine it with a product description. The name and idea are separated by a colon and followed by a description. The idea should be expressed as a paragraph of 40–80 words.
  4. Do this step by step!

Note: The above prompt is attributed to Ethan Mollick. Other useful prompts from him can be found here: https://www.moreusefulthings.com/other-prompts

Asking LLMs to Craft the Prompt


  1. I tell the LLM to "Generate a detailed prompt engineering guide. The audience is ". (Example role might be "book authors" or "software developers" or "customer support reps").
  2. I paste in 5 examples of how I want my prompt to work (few-shot input+output).
  3. I instruct it to "Generate a prompt that could have generated the examples' outputs, and include a better set of examples." Submit.
  4. In a new chat, I instruct it to "Generate a detailed prompt evaluation guide. The audience is ".
  5. I paste in the new prompt and tell it to "Evaluate the prompt".
  6. I tell it to "Generate 3 improved alternative prompts".
  7. I pick the best one, and edit it as necessary.

A benefit of this method is the LLM's own weights influence how the prompt is generated and evaluated. The prompt will be better than anything you could write. It’s best to use a model in the same family as you'll use the prompt for.

Note: Posted on Reddit by a user called funbike

Writing prompt


"Shorter words beat longer words, fewer words is better that more words to keep writing light. Prioritize clarity over style, while acknowledging that there is a minimum level of style that is important to keep reader engaged and excited."

Note : Posted on Twitter by Isaac Flath

#AI & ML #blog #llm's #prompt_engineering