From 66a645ea3a53b885a24d75a7e582b622d1786a41 Mon Sep 17 00:00:00 2001 From: seoi hong <90823683+hongseoi@users.noreply.github.com> Date: Wed, 5 Jun 2024 21:12:22 +0900 Subject: [PATCH] [translation|ko] prompt_engineering/page.mdx --- .../docs/basics/prompt_engineering/page.mdx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/(docs)/ko/docs/basics/prompt_engineering/page.mdx b/(docs)/ko/docs/basics/prompt_engineering/page.mdx index 3ba8a936b37..d498c4b0355 100644 --- a/(docs)/ko/docs/basics/prompt_engineering/page.mdx +++ b/(docs)/ko/docs/basics/prompt_engineering/page.mdx @@ -5,17 +5,17 @@ export const metadata = { # ๐ŸŸข Prompt Engineering -- What is prompt engineering? +- prompt engineering์ด๋ž€ ๋ฌด์—‡์ธ๊ฐ€? -## What Happens When a Prompt Doesn't Work? +## Prompt๊ฐ€ ์ž‘๋™ํ•˜์ง€ ์•Š์œผ๋ฉด ๋ฌด์Šจ ์ผ์ด ์ผ์–ด๋‚ ๊นŒ์š”? -Sometimes Gen AIs give incorrect outputs to prompts. For example, they are not very good at multiplying numbers, and will often confidently give you an incorrect answer. Try giving the following prompt to ChatGPT: +๋•Œ๋•Œ๋กœ Gen AI๋Š” prompts์— ๋Œ€ํ•ด ์ž˜๋ชป๋œ output์„ ์ฃผ๊ธฐ๋„ ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, Gen AI๋Š” ๊ณฑ์…ˆ์„ ๋งค์šฐ ๋ชปํ•˜๋Š”๋ฐ, ์ž์‹ ๋งŒ๋งŒํ•˜๊ฒŒ ์ž˜๋ชป๋œ ๋‹ต๋ณ€์„ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. ์•„๋ž˜ prompt๋ฅผ ChatGPT์— ์ž‘์„ฑํ•ด๋ด…์‹œ๋‹ค: What is 923 * 99? 923 * 99 equals 91,677. -ChatGPT gave an incorrect answer (the correct answer is 91,377). We can modify our prompt, and tell ChatGPT to think through its steps. +ChatGPT๊ฐ€ ์ž˜๋ชป๋œ ๋‹ต๋ณ€์„ ํ•˜๋Š” ๊ฑธ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค (์ •๋‹ต์€ 91,377). ์ด์ œ ์šฐ๋ฆฌ๋Š” ์šฐ๋ฆฌ์˜ prompt๋ฅผ ๋ณ€๊ฒฝํ•˜๊ณ , ChatGPT๊ฐ€ ๋‹จ๊ณ„์ ์œผ๋กœ ์ƒ๊ฐํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค. What is 923 * 99? Let's go step by step. Always write out the full number of 0s for each term. @@ -39,7 +39,7 @@ Therefore, 923 multiplied by 99 is equal to 91,377. -Surprisingly, these additional instructions, ChatGPT is able to solve the problem. This worked because ChatGPT wrote out all of its work, and thus did not make mistakes. Gen AI's mathematical abilities can be improved by prompt engineering. Now, let's try a different example. +๋†€๋ž๊ฒŒ๋„, ์ด ์ถ”๊ฐ€ ์ง€์นจ์„ ํ†ตํ•ด ChatGPT๋กœ ๋ฌธ์ œ๋ฅผ ํ’€ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” ChatGPT๊ฐ€ ๋ชจ๋“  ์ž‘์—…์„ ์ž‘์„ฑํ•จ์— ๋”ฐ๋ผ ์‹ค์ˆ˜ํ•˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. Gen AI์˜ ์ˆ˜ํ•™์  ๋Šฅ๋ ฅ์€ Prompt engineering์„ ํ†ตํ•ด ํ–ฅ์ƒ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด์ œ, ๋‹ค๋ฅธ ์˜ˆ์ œ๋ฅผ ์‹œ๋„ํ•ด๋ด…์‹œ๋‹ค. Since ChatGPT is @@ -47,9 +47,9 @@ Surprisingly, these additional instructions, ChatGPT is able to solve the proble this prompt sometimes won't work. You may see answers like 91,177 or 91,077. -### ArchaeologistAI Example +### ArchaeologistAI ์˜ˆ์‹œ -This time, we will ask ChatGPT to write a marketing tweet about a new, fictional AI product we are thinking of creating: ArchaeologistAI. ArchaeologistAI tells stories about famous archaeologists. +์ด๋ฒˆ ์˜ˆ์‹œ์—์„œ๋Š”, ChatGPT์—๊ฒŒ ์šฐ๋ฆฌ๊ฐ€ ๋งŒ๋“ค๋ ค๊ณ  ํ•˜๋Š” ์ƒˆ๋กœ์šด ๊ฐ€์ƒ AI ์ œํ’ˆ์ธ ArchaeologistAI์— ๋Œ€ํ•œ ๋งˆ์ผ€ํŒ… ํŠธ์œ—์„ ์ž‘์„ฑํ•ด๋‹ฌ๋ผ๊ณ  ์š”์ฒญํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค. ArchaeologistAI๋Š” ์œ ๋ช…ํ•œ ๊ณ ๊ณ ํ•™์ž๋“ค์˜ ์ด์•ผ๊ธฐ๋ฅผ ๋“ค๋ ค์ฃผ๋Š” AI์ž…๋‹ˆ๋‹ค. Write a tweet about ArchaeologistAI @@ -60,7 +60,7 @@ This time, we will ask ChatGPT to write a marketing tweet about a new, fictional what hidden treasures and insights it unveils! #AI #Archaeology" -This Tweet is not accurate, since ArchaeologistAI only tells stories, and does not discover new things. However, this is not ChatGPT's fault! It did not know anything about ArchaeologistAI. Let's include relevant information in the prompt. +์ด ํŠธ์œ—์˜ ๊ฒฝ์šฐ, ArchaeologistAI์— ๋Œ€ํ•œ ์Šคํ† ๋ฆฌ๋งŒ ์ด์•ผ๊ธฐํ•  ๋ฟ ์ƒˆ๋กœ์šด ์ •๋ณด๋ฅผ ์ „๋‹ฌํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์ ์ ˆํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ด๋Š” ChatGPT์˜ ์ž˜๋ชป์ด ์•„๋‹™๋‹ˆ๋‹ค! ArchaeologistAI์— ๋Œ€ํ•ด ์•„๋ฌด๊ฒƒ๋„ ๋ชฐ๋ž๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. ์ด์ œ ๊ด€๋ จ๋œ ์ •๋ณด๋ฅผ prompt์— ์ถ”๊ฐ€ํ•ด๋ด…์‹œ๋‹ค. Write a tweet about ArchaeologistAI: ArchaeologistAI tells stories about @@ -75,7 +75,7 @@ This Tweet is not accurate, since ArchaeologistAI only tells stories, and does n #Archaeology" -This is much better! Now let's try to make ChatGPT write the Tweet in the style of Indiana Jones. +ํ›จ์”ฌ ๋‚ซ๋„ค์š”! ์ด์ œ ChatGPT๊ฐ€ ์ธ๋””์•„๋‚˜ ์กด์Šค ์Šคํƒ€์ผ๋กœ ํŠธ์œ—์„ ์ž‘์„ฑํ•˜๋„๋ก ๋งŒ๋“ค์–ด๋ด…์‹œ๋‹ค. Write a tweet about ArchaeologistAI, in the style of Indiana Jones: @@ -90,8 +90,8 @@ This is much better! Now let's try to make ChatGPT write the Tweet in the style #ArchaeologistAI #UnearthTheLegends" -Alright, that may be the message we need to target archaeology fans! By testing multiple prompts, we can see which one gives the best output. +Alright, that may be the message we need to target archaeology fans! ๋‹ค์–‘ํ•œ Prompt๋ฅผ ํ…Œ์ŠคํŠธํ•˜๋ฉด์„œ, ์–ด๋–ค ๊ฒƒ์ด ์ตœ์ƒ์˜ ๊ฒฐ๊ณผ๋ฅผ ๋‚ด๋Š”์ง€ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. -## Conclusion +## ๊ฒฐ๋ก  -This process of refining our prompt over time is known as prompt engineering. You will never write the perfect prompt on your first try, so it is important to get good at refining your prompt. Being good at prompt engineering mostly comes from lots of practice (trial and error). The rest of the articles in this section will introduce you to different prompting strategies which you can use in your prompt engineering process. +์šฐ๋ฆฌ๊ฐ€ ๊ณ„์†ํ•ด์„œ ํ”„๋กฌํ”„ํŠธ๋ฅผ ๊ฐœ์„ ํ•˜๋Š” ์ด ๊ณผ์ •์„ ํ”„๋กฌํ”„ํŠธ ์—”์ง€๋‹ˆ์–ด๋ง์ด๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ์ฒ˜์Œ ์‹œ๋„ํ•  ๋•Œ ์™„๋ฒฝํ•œ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์ž‘์„ฑํ•  ์ˆ˜๋Š” ์—†์œผ๋‹ˆ, ํ”„๋กฌํ”„ํŠธ๋ฅผ ๊ฐœ์„ ํ•˜๋Š” ๋ฐ ๋Šฅ์ˆ™ํ•ด์ง€๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กฌํ”„ํŠธ ์—”์ง€๋‹ˆ์–ด๋ง์— ๋Šฅ์ˆ™ํ•ด์ง€๋Š” ๊ฒƒ์€ ๋Œ€๋ถ€๋ถ„ ์—ฐ์Šต(์‹œํ–‰์ฐฉ์˜ค)์„ ํ†ตํ•ด ์–ป๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ์ด ์„น์…˜์˜ ๋‚˜๋จธ์ง€ ๊ธ€๋“ค์€ ํ”„๋กฌํ”„ํŠธ ์—”์ง€๋‹ˆ์–ด๋ง ๊ณผ์ •์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋‹ค์–‘ํ•œ ํ”„๋กฌํ”„ํŒ… ์ „๋žต์„ ์†Œ๊ฐœํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค.