Prompt helpers
Meta prompts
package:
prompt
Meta-prompts are special instructions embedded within a prompt to guide a language model in generating a specific kind of response.
| Meta-Prompt | Purpose |
|---|---|
| [Brief] What is AI? | For a concise answer |
| [In Laymanโs Terms] Explain LLM | For a simplified explanation |
| [As a Story] Describe the evolution of cars | To get the information in story form |
| [Pros and Cons] Is AI useful? | For a balanced view with advantages and disadvantages |
| [Step-by-Step] How to do a smart prompt? | For a detailed, step-by-step guide |
| [Factual] What is the best pizza of the world? | For a straightforward, factual answer |
| [Opinion] What is the best pizza of the world? | To get an opinion-based answer |
| [Comparison] Compare pineapple pizza to pepperoni pizza | For a comparative analysis |
| [Timeline] What are the key milestones to develop a WebApp? | For a chronological account of key events |
| [As a Poem] How to cook a cake? | For a poetic description |
| [For Kids] How to cook a cake? | For a child-friendly explanation |
| [Advantages Only] What are the benefits of AI? | To get a list of only the advantages |
| [As a Recipe] How to cook a cake? | To receive the information in the form of a recipe |
Meta prompts methods
prompt.Brief(s string) stringprompt.InLaymansTerms(s string) stringprompt.AsAStory(s string) stringprompt.ProsAndCons(s string) stringprompt.StepByStep(s string) stringprompt.Factual(s string) stringprompt.Opinion(s string) stringprompt.Comparison(s string) stringprompt.Timeline(s string) stringprompt.AsAPoem(s string) stringprompt.ForKids(s string) stringprompt.AdvantagesOnly(s string) stringprompt.AsARecipe(s string) string