SMT007 Magazine

SMT007-Jan2025

Issue link: https://iconnect007.uberflip.com/i/1531014

Contents of this Issue

Navigation

Page 12 of 69

JANUARY 2025 I SMT007 MAGAZINE 13 ery. We can also use Zero-shot or Few-shot techniques. Zero-shot does not give examples, which is usually better for larger LLMs. Few- shot gives contextual output or format infor- mation. e technique needs to follow the token limits of LLMs. Prompt Engineering Tips To leverage prompt engineering to achieve the desired output, these tips are ranked in ascending order of depth or skills: Level 1 1. Understand the issue at hand. 2. Know what questions to ask. 3. Understand the desired outcome, then articulate the question. 4. Form clear and actionable requests. 5. Use clear and direct wording to avoid producing unexpected and undesirable results. Level 2 1. Set a strategy to create and refine effec- tive prompts. 2. ink about how to ask the questions effectively. 3. Rephrase a question, which can lead the LLM to produce a completely different response. 4. Pose open-ended questions or requests. 5. Add detail and context. Level 3 1. Break down complex tasks into simpler prompts. 2. Iterate and experiment with different prompt structures. 3. Know the training dataset. 4. Have a working knowledge of underly- ing model architecture. 5. Understand prompt interface mechanics. Prompt Engineering Tools and Platforms Several commercially available tools are available for testing and use. eir respective features and strengths vary with applications. To name a few: • PromptSource: A tool kit that uses an iterative development process to cre- ate natural language prompts through PromptSource's API; available on GitHub. • Prompter: A debugging tool for GPT-3.5 and GPT-4 (4+) that allows users to iden- tify and address issues with their prompts. • FusionAI: Prompt engineering soware that helps improve and expand prompts and is oen used for creative writing, idea generation, and brainstorming. • PromptPerfect: A tool that allows users to input the prompt and adjust the set- tings (e.g., prompt length, output qual- ity, and the number of iterations); a third-party plugin that works with text generation models (ChatGPT, Claude, DALL-E 2, Midjourney, and Stable Dif- fusion). This is used with paid versions of ChatGPT. • PromptLayer: A tool that allows users to monitor and control prompt interactions to see what changes improve results over time. • OpenAI Playground: A platform to exper- iment, test, and refine prompts with vari- ous GPT models. Prompt Engineering Cautions Generative AI models continue to gather information from their interactions with users.

Articles in this issue

Links on this page

Archives of this issue

view archives of SMT007 Magazine - SMT007-Jan2025