Skip to content

Prompt

Table of Contents

What is Prompt Engineering?

It is a practice with a set of guidelines to craft precise, concise, creative wording of text to instruct an LLM to carry out a task.

Prompt Principles and Guides

Refer to Paper [1] 1. Prompt Structure and Clarity: Integrate the intended audience in teh prompt. e.g., integrate the intended audience in the prompt such as the audience is an expert in the field. 2. Specificity and Information: Implement example-driven prompting. E.g., Add to your prompt the following phrase “Ensure that your answer is unbiased and does not rely on stereotypes.”; 3. User Interaction and Engagement: Allow the model to ask precise details and requirements until it has enough information to provide the needed response. E.g. "From now on, I would like you to ask me questions to..." 4. Content and Language Stype: Instruct the tone and style of response. 5. Complex Tasks and Coding Prompts: Break down complex tasks into a sequence of simple steps as prompts.

img2.png img.png

Reference

Papers

  1. Bsharat, Sondos Mahmoud, Aidar Myrzakhan, and Zhiqiang Shen. “Principled Instructions Are All You Need for Questioning LLaMA-½, GPT-3.5/4.” arXiv, January 18, 2024. http://arxiv.org/abs/2312.16171.

Online Articles

  1. Best Prompt Techniques for Best LLM Responses