๐๏ธ ๐ข ์๊ฐ
์ด ๊ธฐ์ฌ๋ ํ๋กฌํํธ ์์ง๋์ด๋ง๋ AI์ ์ ํ ๊ฒฝํ์ด ์๋ ์ฌ๋๋ค์ ์ํด์ ๋ง๋ค์ด์ก์ต๋๋ค. ๊ธฐ์ ์๋ฟ๋ง์ด ์๋ ๋ชจ๋๋ฅผ ์ํ ๊ธ์ ๋๋ค. ์ฐ๋ฆฌ๋ ์ ์ฌ๋ฌ๋ถ์ด ํ๋กฌํํธ ์์ง๋์ด๋ง์ ๊ณต๋ถํด์ผ ํ๋ ์ง์ AI์ ๊ธฐ์ด๋ฅผ ๋ค๋ฃฐ ๊ฒ์ ๋๋ค.
๐๏ธ ๐ข ํ๋กฌํํ
์ด์ ์ฑํฐ์์ ์ฐ๋ฆฌ๋ AI์ ๋ํด์ ๋ ์ด๋ป๊ฒ AI์๊ฒ ์ผ์ ์ง์ํ ์ง์ ๋ํด์ ์๊ธฐํ์์ต๋๋ค.
๐๏ธ ๐ข ์ง์ ํ๊ธฐ
์ง์ํ๊ธฐ๋ ๊ฐ์ฅ ์ฌ์ด ํ๋กฌํํธ ๋ฐฉ๋ฒ ์ค ํ๋์ ๋๋ค. ์ฐ๋ฆฌ๋ ์ด์ ์น์ ์์ ์ด๋ฏธ ๊ฐ๋จํ ์ง์๋ค์ ๋ดค์ต๋๋ค(What is 1,000,000 * 9,000? Make sure to put the right amount of zeros, even if there are many:). ํ์ง๋ง ํ๋์ AI๋ค์ ๋ ๋ณต์กํ ์ง์๋ ๋ฐ๋ฅผ ์ ์์ต๋๋ค.
๐๏ธ ๐ข ์ญํ ํ๋กฌํํ
๋ค๋ฅธ ํ๋กฌํํ ๊ธฐ์ ๋ก๋ AI์๊ฒ ํ๋์ ์ญํ ์ ๋ถ์ฌํ๋ ๊ฒ์ด ์์ต๋๋ค. ์๋ฅผ ๋ค์ด,
๐๏ธ ๐ข Few shot prompting
Yet another prompting strategy is few shot prompting, which is basically just showing the model a few examples (called shots) of what you want it to do.
๐๏ธ ๐ข Combining Techniques
As we have seen in the previous pages, prompts can have varying formats and complexity. They can include context, instructions, and multiple input-output examples. However, thus far, we have only examined separate classes of prompts. Combining these different prompting techniques can lead to more powerful prompts.
๐๏ธ ๐ข Formalizing Prompts
We have now covered multiple types of prompts, as well as ways to combine them. This page will provide you with terms to explain different types of prompts. Although there have been approaches to formalize discourse around prompt engineering(@white2023prompt), the field is ever changing, so we will provide you with just enough information to get started.
๐๏ธ ๐ข ์ฑ๋ด ๊ธฐ์ด
ํ๋กฌํํ ์ ํจ์จ์ ์ผ๋ก ํ๊ธฐ ์ํ ๊ฐ์ฅ ํํ ๋ฐฉ๋ฒ์ ๋์ค์๊ฒ ๊ณต๊ฐ๋ ์๋ง์ ์ฑ๋ด๋ค(์๋ฅผ ๋ค๋ฉด ChatGPT)์ ์๋๋ก ๋ํํด๋ณด๋ ๊ฒ์ ๋๋ค. ChatGPT๊ฐ GPT-3์๋ ๋ค๋ฅด๋ค๋ ๊ฒ์ ์ฐธ๊ณ ํ์๊ธธ ๋ฐ๋๋๋ค. ๊ฐ์ฅ ํฐ ์ฐจ์ด์ ์ผ๋ก๋ ChatGPT๊ฐ ์ฌ๋ฌ๋ถ์ ๋ํ ๊ธฐ๋ก์ ๊ธฐ์ตํ๊ณ ์๋ค๋ ์ ์ผ ๊ฒ์ ๋๋ค. GPT-3๋ก ์ง๋ฌธ์ ๋๋ต์ ํ๊ณ , ์์ฝ์ ์ ๊ฑฐ๋ ๋ถ์ํ๊ณ , ์ฝ๋๋ฅผ ์ง๊ณ ๋ ์ด๋ ค์ด ๊ฒ๋ค๋ ํ๋ ๊ฒ๋ ๊ต์ฅํ ์ข์๋ณด์ด์ง๋ง ์ฑ๋ด๋ค์ ์ง๊ฐ๋ ์ฌ๋ฌ๋ถ์ด ์ฌ๋ฌ๋ถ๋ง์ ํ๋กฌํํธ๋ก ํน์ ํ ๊ฒฐ๊ณผ๋ฅผ ์ป์ด๋ผ ๋๋ง ์์๋ผ ์ ์์ต๋๋ค. ์ด ๊ธ์์ ์ฐ๋ฆฌ๋ ์คํ์ผ ๊ฐ์ด๋, ๋์คํฌ๋ฆฝํฐ, ํ๋ผ์ด๋ฐ ๋ฑ์ ์ฑ๋ด์ ๋ ์ ์ฌ์ฉํ๋ ๊ธฐ๋ณธ์ ์ธ ๋ฐฉ๋ฒ๋ค์ ๋ํด์ ํ๊ตฌํด๋ณผ ๊ฒ์ ๋๋ค.
๐๏ธ ๐ข Pitfalls of LLMs
LLMs are extremely powerful, but they are by no means perfect. There are many pitfalls that you should be aware of when using them.
๐๏ธ ๐ข LLM Settings
The output of LLMs can be affected by configuration hyperparameters, which control various aspects of the model, such as how 'random' it is. These hyperparameters can be adjusted to produce more creative, diverse, and interesting output. In this section, we will discuss two important configuration hyperparameters and how they affect the output of LLMs.
๐๏ธ ๐ข AI์ ์๊ฐ ์ดํดํ๊ธฐ
๋ ์ ์ฌ๋ฌ๋ถ ๋ฐ๊ฐ์ต๋๋ค. ์ธํธ๋ก ์ฑํฐ๋ฅผ ๊ฑฐ์ ๋ค ๋ง์น์ ๊ฒ์ ์ถํ๋๋ฆฝ๋๋ค. ์ฌ๋ฌ๋ถ์ ๊ต์ฅํ ์ ๋๋ ๋ถ์ผ์ ์ฑ๊ณต์ ์ผ๋ก ๋ฐ์ ๋ค์ด๊ฒ ๋์์ต๋๋ค. ๋๋จธ์ง ์ฝ์ค๋ฅผ ์ฝ๊ธฐ ์ ์ ์ฌ๋ฌ๋ถ์ ์ฌ๋ฌ๊ฐ์ง AI๋ค์ ๋ํด์ ๋ช๊ฐ์ง ์๊ณ ๋์ด๊ฐ์ผ ํ ๋ถ๋ถ์ด ์์ต๋๋ค.
๐๏ธ ๐ข Starting Your Journey
Now that you have learned about the basics of prompt engineering, you are ready to start prompt engineering on your own. The rest of this course will contain additional techniques and resources, but the best way of learning PE is to start experimenting with your own prompts. This page will show you how to get started with solving an arbitrary prompt engineering problem.