Skip to content

Commit 58e5fa9

Browse files
Update PromptEngineering_orinignal.md
1 parent b3d3939 commit 58e5fa9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PromptEngineering_orinignal.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@
1212

1313
Prompt engineering involves designing, creating, and optimizing prompts for the purpose of extracting accurate, consistent, and fair outputs from large language models (LLMs).
1414

15-
> The aforementioned is also applicable to other large generative models, such text-to-image synthesizers. For the sake of brevity, we will temporarily focus on language models.
15+
> The aforementioned is also applicable to other large generative models, such as text-to-image synthesizers. For the sake of brevity, we will temporarily focus on language models.
1616
1717

1818
LLMs are trained on vast amounts of text data, allowing them to encode a substantial amount of factual information about the world. Their popularity has surged in recent years due to their ability to generate human-like text, making them ideal for chatbots, virtual assistants, and similar applications. However, it is essential to note that without appropriate prompt engineering, the generated outputs can be unpredictable and potentially result in harmful consequences.
1919

2020
The goal of prompt engineering is to identify an appropriate prompt to be given to LLMs, in such a way that they generate responses that can effectively solve our specified complex tasks.
2121

22-
A prompt can take on any form of sentence such as statements, instructions, questions, or even paragraph, as long as it inspires the imagination of LLMs and guides them to explore a variety of topics and tasks.
22+
A prompt can take on any form of sentence such as statements, instructions, questions, or even paragraphs, as long as it inspires the imagination of LLMs and guides them to explore a variety of topics and tasks.
2323

2424
> For the sake of making it easier for beginners to understand, we will temporarily set aside the concept of soft prompts.**
2525
2626
After receiving various types of prompts, LLMs have the ability to generate a diverse range of output formats, including completed sentences, question-answers, translations, conversational scripts, and other text generation, all of which have wide-ranging applications and great creative potential.
2727

2828
Depending on the knowledge and experience acquired from vast amounts of language data during training, LLMs are not just used for chatbot conversations, but also highly effective problem solvers.
2929

30-
### 💥 Hightlight: To enhance the problem-solving ability of LLMs, high-quality prompts are crucial.
30+
### 💥 Highlight: To enhance the problem-solving ability of LLMs, high-quality prompts are crucial.
3131

3232
<img width="200%" src="./figures/hr.gif" />
3333

3434
## Design Principle and Framework
3535
A good prompt is one that is specific and provides enough context for LLMs to be able to generate a response that is relevant to the task.
3636

3737
### Design principle
38-
By following design principle, you can improve the quality and accuracy of the LLM’s responses and enhance the overall user experience.
38+
By following design principles, you can improve the quality and accuracy of the LLM’s responses and enhance the overall user experience.
3939

4040
- **Be clear and specific**: The prompt should clearly state the task or question that the model is expected to answer. Avoid ambiguity or vagueness in the prompt as this can lead to unclear or irrelevant responses.
4141
- **Provide context**: The prompt should provide enough context for the model to understand the task and generate a relevant response. This can include relevant background information, examples, or constraints.
@@ -52,7 +52,7 @@ By following design principle, you can improve the quality and accuracy of the L
5252
We propose a framework for prompt design that consists of five key components: context, instructions, relevance, constraints, and demonstration. This standardized structure can help streamline prompt design and ensure that a consistent process is followed, resulting in more effective prompts.
5353

5454
- 🕐**Context**:
55-
- Context is key when designing a prompt. Make sure to provide enough background information surrounding to the designated task so that the model can understands the situation and generate text that is relevant and accurate.
55+
- Context is key when designing a prompt. Make sure to provide enough background information surrounding to the designated task so that the model can understand the situation and generate text that is relevant and accurate.
5656

5757
- 🕜**Instruction**:
5858
- Instruction is crucial as it guides the model on what to do and what is expected of it. It is important to be clear, concise and specific. When dealing with complex reasoning tasks, consider breaking the tasks down into smaller, more manageable steps to help the model understand the task at hand.
@@ -61,10 +61,10 @@ We propose a framework for prompt design that consists of five key components: c
6161
- Relevance is essential when specific information needs to be referenced. This information could be links to relevant articles or data, or specific input provided by the user. By utilizing this specific information, the model can tailor its output to be personalized, reliable, and consistent with the user's needs.
6262

6363
- 🕝**Constraint**:
64-
- Constraint is helpful as guiding LLMs on what it can and cannot do, ultimately leading to more accurate results. This may involve specifying the format of the output, the type of language to be used, or even the length of the output. Additionally, specifying the difficulty level and style can further refine the output.
64+
- Constraint is helpful in guiding LLMs on what they can and cannot do, ultimately leading to more accurate results. This may involve specifying the format of the output, the type of language to be used, or even the length of the output. Additionally, specifying the difficulty level and style can further refine the output.
6565

6666
- 🕒**Demonstration**:
67-
- Demonstration is valuable as it allow LLMs to understand what is expected through examples, particularly when instructions alone cannot effectively convey specific details and accuracy. By offering examples of input and output pairs, LLMs can automatically identify patterns and then generate text that is aligned with the user's expectations.
67+
- Demonstration is valuable as it allows LLMs to understand what is expected through examples, particularly when instructions alone cannot effectively convey specific details and accuracy. By offering examples of input and output pairs, LLMs can automatically identify patterns and then generate text that is aligned with the user's expectations.
6868

6969
## 💥 Based on the complexity and characteristics of the task, you can select a few components from them to form your prompt.
7070

@@ -80,7 +80,7 @@ At the beginning of the prompt, we can directly write the content to express the
8080

8181
```[Relevance]: To help you develop your story, please review the following articles: "The Power of Uncovering Hidden Talents" and "The Importance of Character Development in Fiction Writing." These articles will provide you with relevant insights and ideas for your story.```
8282

83-
```[Constraint]: Your story must be written in third person point of view and should be appropriate for a general audience. Additionally, ensure that the story has a positive and inspiring tone.```
83+
```[Constraint]: Your story must be written in the third person point of view and should be appropriate for a general audience. Additionally, ensure that the story has a positive and inspiring tone.```
8484

8585
```
8686
Output:

0 commit comments

Comments
 (0)