Prompt Engineering

์•ค๋“œ๋ฅ˜ ๊ต์ˆ˜๋‹˜์˜ ํ”„๋กฌํ”„ํŠธ ๊ฐ•์˜ ์ •๋ฆฌ

๊ฐ•์˜ Url

https://www.deeplearning.ai/short-courses/chatgpt-prompt-engineering-for-developers/?utm_campaign=Prompt%20Engineering%20Launch&utm_content=246784582&utm_medium=social&utm_source=twitter&hss_channel=tw-992153930095251456

๊ฐ•์˜ ๋‚ด์šฉ

introduce

๊ฐœ๋ฐœ์ž๋กœ์„œ ๋Œ€ํ˜• ์–ธ์–ด ๋ชจ๋ธ(LLM)์„ ์‚ฌ์šฉํ•˜์—ฌ API ํ˜ธ์ถœ์„ ํ†ตํ•ด ์†Œํ”„ํŠธ์›จ์–ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋น ๋ฅด๊ฒŒ ๊ตฌ์ถ•ํ•˜๋Š” ๊ฒƒ์˜ ํž˜์€ ์—ฌ์ „ํžˆ ๋งŽ์ด ๊ณผ์†Œ ํ‰๊ฐ€๋˜๊ณ  ์žˆ๋‹ค

  • Base LLM(๊ธฐ๋ณธ LLM) and Instruction-tuned LLM(์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM)

๊ธฐ๋ณธ LLM์€ ์ธํ„ฐ๋„ท ๋ฐ ๊ธฐํƒ€ ์ถœ์ฒ˜์˜ ๋Œ€๋Ÿ‰์˜ ํ…์ŠคํŠธ ๋ฐ์ดํ„ฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋‹ค์Œ ๋‹จ์–ด๋ฅผ ์˜ˆ์ธกํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ํ•™์Šต๋ฉ๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ ํ”„๋ž‘์Šค์˜ ์ˆ˜๋„๊ฐ€ ๋ฌด์—‡์ธ์ง€ ๋ฌผ์œผ๋ฉด, ์ธํ„ฐ๋„ท ์ƒ์˜ ๊ธฐ์‚ฌ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ธฐ๋ณธ LLM์€ ํ”„๋ž‘์Šค์˜ ๊ฐ€์žฅ ํฐ ๋„์‹œ, ํ”„๋ž‘์Šค์˜ ์ธ๊ตฌ ๋“ฑ์„ ์ถœ๋ ฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์™œ๋ƒํ•˜๋ฉด ์ธํ„ฐ๋„ท์—์„œ ํ”„๋ž‘์Šค์— ๋Œ€ํ•œ ํ€ด์ฆˆ ์งˆ๋ฌธ ๋ชฉ๋ก์ด ์žˆ์„ ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

๋ฐ˜๋ฉด ์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM์€ ์ง€์‹œ์‚ฌํ•ญ์„ ๋”ฐ๋ฅด๋„๋ก ํ›ˆ๋ จ๋œ ๋ชจ๋ธ์ž…๋‹ˆ๋‹ค. ํ”„๋ž‘์Šค์˜ ์ˆ˜๋„๊ฐ€ ๋ฌด์—‡์ธ์ง€ ๋ฌผ์œผ๋ฉด, ์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM์€ ํ”„๋ž‘์Šค์˜ ์ˆ˜๋„๋Š” ํŒŒ๋ฆฌ๋ผ๊ณ  ์ถœ๋ ฅํ•  ๊ฐ€๋Šฅ์„ฑ์ด ๋†’์Šต๋‹ˆ๋‹ค.

์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM์€ ์ผ๋ฐ˜์ ์œผ๋กœ ๋Œ€๋Ÿ‰์˜ ํ…์ŠคํŠธ ๋ฐ์ดํ„ฐ๋กœ ํ›ˆ๋ จ๋œ ๊ธฐ๋ณธ LLM์„ ์‹œ์ž‘์ ์œผ๋กœ ์‚ผ์•„, ์ž…๋ ฅ๊ณผ ์ถœ๋ ฅ์ด ์ง€์‹œ์‚ฌํ•ญ๊ณผ ๊ทธ์— ๋”ฐ๋ฅธ ์ข‹์€ ์‘๋‹ต์œผ๋กœ ์ด๋ฃจ์–ด์ง„ ๋ฐ์ดํ„ฐ๋กœ ์ถ”๊ฐ€ ํ›ˆ๋ จ(๋ฏธ์„ธ ์กฐ์ • fine tunning)์„ ํ•ฉ๋‹ˆ๋‹ค.

๊ทธ๋Ÿฐ ๋‹ค์Œ, RLHF(์ธ๊ฐ„ ํ”ผ๋“œ๋ฐฑ์—์„œ์˜ ๊ฐ•ํ™” ํ•™์Šต reinforcement learning from human feedback)๋ผ๋Š” ๊ธฐ์ˆ ์„ ์‚ฌ์šฉํ•˜์—ฌ ์‹œ์Šคํ…œ์„ ๋” ๋„์›€์ด ๋˜๊ณ  ์ง€์‹œ์‚ฌํ•ญ์„ ๋”ฐ๋ฅด๋„๋ก ๋งŒ๋“ญ๋‹ˆ๋‹ค. ์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM์€ ๋„์›€์ด ๋˜๊ณ , ์ •์งํ•˜๋ฉฐ, ํ•ด๋ฅผ ๋ผ์น˜์ง€ ์•Š๋„๋ก ํ›ˆ๋ จ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ๊ธฐ๋ณธ LLM์— ๋น„ํ•ด ์œ ํ•ดํ•œ ํ…์ŠคํŠธ ์ถœ๋ ฅ์„ ์ค„์ž…๋‹ˆ๋‹ค. ์‹ค์ œ ์‚ฌ์šฉ ์‚ฌ๋ก€์—์„œ๋Š” ์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM์ด ๋งŽ์ด ์‚ฌ์šฉ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๊ณผ์ •์—์„œ๋Š” ๋Œ€๋ถ€๋ถ„์˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— ์‚ฌ์šฉํ•  ๊ฒƒ์„ ๊ถŒ์žฅํ•˜๋Š” ์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM์— ์ดˆ์ ์„ ๋งž์ถฅ๋‹ˆ๋‹ค.

์ง€์‹œ์‚ฌํ•ญ ์กฐ์ • LLM์„ ์‚ฌ์šฉํ•  ๋•Œ, ๋‹ค๋ฅธ ์‚ฌ๋žŒ์—๊ฒŒ ์ง€์‹œ์‚ฌํ•ญ์„ ์ฃผ๋Š” ๊ฒƒ์ฒ˜๋Ÿผ ์ƒ๊ฐํ•˜์„ธ์š”. ์˜ˆ๋ฅผ ๋“ค์–ด ๋˜‘๋˜‘ํ•˜์ง€๋งŒ ํŠน์ • ์ž‘์—…์— ๋Œ€ํ•œ ์ง€์‹์ด ์—†๋Š” ์‚ฌ๋žŒ์—๊ฒŒ ์ง€์‹œ๋ฅผ ๋‚ด๋ฆฝ๋‹ˆ๋‹ค. ๋•Œ๋กœ๋Š” LLM์ด ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ์ด์œ ๋Š” ์ง€์‹œ์‚ฌํ•ญ์ด ์ถฉ๋ถ„ํžˆ ๋ช…ํ™•ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, "์•จ๋Ÿฐ ํŠœ๋ง์— ๋Œ€ํ•ด ๋ฌด์–ธ๊ฐ€๋ฅผ ์จ ์ฃผ์„ธ์š”"๋ผ๊ณ  ๋งํ•˜๋ฉด, ๊ทธ์˜ ๊ณผํ•™์  ์—…์ ์ด๋‚˜ ๊ฐœ์ธ์ ์ธ ์‚ถ, ์—ญ์‚ฌ์—์„œ์˜ ์—ญํ•  ๋“ฑ์— ์ดˆ์ ์„ ๋งž์ถ”๋Š”์ง€ ๋ช…ํ™•ํžˆ ํ•ด์ฃผ๋Š” ๊ฒƒ์ด ๋„์›€์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋˜ํ•œ ํ…์ŠคํŠธ์˜ ์–ด์กฐ๋ฅผ ์ง€์ •ํ•ด ์ฃผ๋ฉด ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค. ์ „๋ฌธ ๊ธฐ์ž๊ฐ€ ์ž‘์„ฑํ•œ ๊ฒƒ์ฒ˜๋Ÿผ ํ˜น์€ ์นœ๊ตฌ์—๊ฒŒ ๋ณด๋‚ด๋Š” ์บ์ฃผ์–ผํ•œ ๋…ธํŠธ์ฒ˜๋Ÿผ ์ž‘์„ฑ๋˜์–ด์•ผ ํ•˜๋Š”์ง€๋ฅผ ๋งํ•ด์ฃผ๋ฉด LLM์ด ์›ํ•˜๋Š” ๊ฒฐ๊ณผ๋ฌผ์„ ์ƒ์„ฑํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค. ๋ฌผ๋ก , ์•จ๋Ÿฐ ํŠœ๋ง์— ๋Œ€ํ•œ ํ…์ŠคํŠธ๋ฅผ ์ž‘์„ฑํ•˜๊ธฐ ์ „์— ์ฝ์–ด์•ผ ํ•  ํ…์ŠคํŠธ ์กฐ๊ฐ์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด, ๊ทธ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ฐ ๋” ์„ฑ๊ณต์ ์ผ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๋‘๊ฐ€์ง€ ์›์น™

Principle 1: Write clear and specific instructions Principle 2: Give the model time to "think"

  • ๋ช…ํ™•ํ•˜๊ณ  ๊ตฌ์ฒด์ ์ธ ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ํ”„๋กฌํ”„ํŠธ ์ž‘์„ฑ์˜ ์ค‘์š”ํ•œ ์›์น™

  • LLM์—๊ฒŒ ์ƒ๊ฐํ•  ์‹œ๊ฐ„์„ ์ฃผ๋Š” ๊ฒƒ์ด ํ”„๋กฌํ”„ํŠธ์˜ ๋˜ ๋‹ค๋ฅธ ์›์น™

Guideline

Prompting Principles

  • Principle 1: Write clear and specific instructions

  • Principle 2: Give the model time to "think"

Principle 1: Write clear and specific instructions

์ „๋žต 1: Use delimiters to clearly indicate distinct parts of the input

๊ตฌ๋ถ„ ๊ธฐํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ž…๋ ฅ์˜ ๊ตฌ๋ถ„๋˜๋Š” ๋ถ€๋ถ„์„ ๋ช…ํ™•ํ•˜๊ฒŒ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

Delimiters can be anything like: ``` """ ''' tag : ๋˜๋Š” :::

Avoiding prompt injection ํ”„๋กฌํ”„ํŠธ์˜ ์ธ์ ์…˜์„ ๋ง‰์•„๋ผ. ์งˆ๋ฌธ๋‚ด์šฉ๊ณผ ์ž๋ฃŒ ๋‚ด์šฉ์ด ์„ž์ด๊ฒŒ ๋˜๋Š” ๋ฌธ์ œ๋ฅผ ๋ง‰์•„๋ผ ๋ผ๋Š” ๋œป

์ „๋žต 2: Ask for a structured output

๊ตฌ์กฐํ™”๋œ ์•„์›ƒํ’‹์„ ์š”๊ตฌํ•ด๋ผ.

json/html

์ „๋žต 3: Ask the model to check whether conditions are satisfied

๋ชจ๋ธ์—๊ฒŒ ์กฐ๊ฑด์ด ์ถฉ์กฑ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๋„๋ก ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค.

์ „๋žต 4: "Few-shot" prompting

give successful examples of completing tasks then ask model to perform the task

์ž‘์—… ์™„๋ฃŒ์˜ ์„ฑ๊ณต์ ์ธ ์˜ˆ๋ฅผ ์ œ์‹œํ•œ ๋‹ค์Œ ๋ชจ๋ธ์—๊ฒŒ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋„๋ก ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค.

๋น„์Šทํ•˜๊ฒŒ ๋‹ต๋ณ€์ด ๋‚˜์˜จ๋‹ค.

Principle 2: Give the model time to โ€œthinkโ€

์ „๋žต 1: Specify the steps required to complete a task

์ž‘์—…์„ ์™„๋ฃŒํ•˜๋Š” ๋ฐ ํ•„์š”ํ•œ ๋‹จ๊ณ„๋ฅผ ์ง€์ •ํ•˜์„ธ์š”.

Ask for output in a specified format

์œ„์— ๊ทธ๋ฆผ์— ๋‚˜์˜จ ๋‚ด์šฉ์„ ํฌ๋งท์„ ๋ฐ”๊ฟ”์„œ ์ถœ๋ ฅํ•˜๋ผ๊ณ  ๋ช…๋ น

์ž˜๋œ๋‹ค.

์ „๋žต 2: Instruct the model to work out its own solution before rushing to a conclusion

๊ฒฐ๋ก ์„ ๋‚ด๋ฆฌ๊ธฐ ์ „์— ๋ชจ๋ธ ์Šค์Šค๋กœ ํ•ด๊ฒฐ์ฑ…์„ ์ฐพ๋„๋ก ์ง€์‹œํ•˜์„ธ์š”.

์‚ฌ์‹ค์„ ํ‹€๋ฆฌ๋‹ค๊ฐ€ ๋‚˜์™€์•ผ ํ•จ ๊ทธ๋Ÿฌ๋‚˜ chatgpt๊ฐ€ ๋งž๋‹ค๊ณ  ํ•จ.

๋“œ๋ž˜์„œ ๋‹ค์Œ์ฒ˜๋Ÿผ ์ˆ˜์ •ํ•ด์„œ ์ƒ๊ฐํ•  ์‹œ๊ฐ„์„ ์ฃผ๋ฉด chatgpt๊ฐ€ ๋งž๋Š” ๋‹ต์„ ์ค€๋‹ค๋Š” ์ด์•ผ๊ธฐ

์•ž์— ๋งž๋Š”๋‹ต์„ ์ฃผ๊ฑฐ๋‚˜ ์ƒ๊ฐํ• ๊ฑฐ๋ฆฌ๋ฅผ ์ค€ ์ดํ›„์— ๋งˆ์ง€๋ง‰์— ์งˆ๋ฌธ์— ํ•™์ƒ ๋‹ต์„ ๋„ฃ์–ด์ฃผ๊ณ  ์ด๊ฒŒ ๋งž๋Š”์ง€ ๋ฌผ์–ด๋ณด๋ฉด๋จ.

Model Limitations

Hallucinations (ํ™˜๊ฐ)

makes statements that sound plausible but are not true (๊ทธ๋Ÿด๋“ฏํ•˜๊ฒŒ ๋“ค๋ฆฌ์ง€๋งŒ ์‚ฌ์‹ค์ด ์•„๋‹Œ ์ง„์ˆ ์„ ํ•˜๋Š” ๊ฒฝ์šฐ)

reducing hallucinations

ํ™˜๊ฐ์„ ์ค„์—ฌ์•ผํ•œ๋‹ค.

First find relevant information, then answer the question based on the relevant information.

๋จผ์ € ๊ด€๋ จ ์ •๋ณด๋ฅผ ์ฐพ์€ ๋‹ค์Œ ๊ด€๋ จ ์ •๋ณด๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ์งˆ๋ฌธ์— ๋‹ตํ•˜์„ธ์š”.

Iterative Prompt Develelopment

๋ฐ˜๋ณต ํ”„๋กฌํ”„ํŠธ ๊ฐœ๋ฐœ

์ œํ’ˆ ํŒฉํŠธ ์‹œํŠธ์—์„œ ๋งˆ์ผ€ํŒ… ๋ฌธ๊ตฌ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด ๋ฐ˜๋ณต์ ์œผ๋กœ ๋ฉ”์‹œ์ง€๋ฅผ ๋ถ„์„ํ•˜๊ณ  ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

prompt guidlines

  • be cleare and spectific

  • analyze why result does not give desirded output

  • refine the idea and the prompt

  • Repeat

Issue 1: The text is too long

์ด๋Ÿฐ์‹์œผ๋กœ ํ•˜๋ฉด ์•„์›ƒํ’‹์ด ์ ์–ด์ง„๋‹ค.

Issue 2. Text focuses on the wrong details

Ask it to focus on the aspects that are relevant to the intended audience.

Issue 3. Description needs a table of dimensions

html๋กœ ์ธ์‡„

Ask it to extract information and organize it in a table.

html๋กœ ๋‚˜์˜จ๋‹ค. ์ด๊ฑธ Python์œผ๋กœ ์ฐ์œผ๋ฉด html๋ธŒ๋ผ์šฐ์ €์—์„œ ๋ณด์ธ๋‹ค.

  • try something

  • analyze where the result does not give what you want

  • clarify instructions , give more time to think

  • refine prompts with a batch of examples

  • ๋ฌด์–ธ๊ฐ€๋ฅผ ์‹œ๋„ํ•˜์‹ญ์‹œ์˜ค.

  • ๊ฒฐ๊ณผ๊ฐ€ ์›ํ•˜๋Š” ๊ฒƒ์„ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š” ๋ถ€๋ถ„์„ ๋ถ„์„ํ•˜์‹ญ์‹œ์˜ค.

  • ์ง€์นจ ๋ช…ํ™•ํžˆํ•˜๊ธฐ, ์ƒ๊ฐํ•  ์‹œ๊ฐ„์„ ๋” ๋งŽ์ด์ฃผ์‹ญ์‹œ์˜ค.

  • ์˜ˆ์ œ ์ผ๊ด„ ์ฒ˜๋ฆฌ๋กœ ํ”„๋กฌํ”„ํŠธ ๊ตฌ์ฒดํ™”

Summarizing

you will summarize text with a focus on specific topics.

prod_review = """ Got this panda plush toy for my daughter's birthday, who loves it and takes it everywhere. It's soft and super cute, and its face has a friendly look. It's a bit small for what I paid though. I think there might be other options that are bigger for the same price. It arrived a day earlier than expected, so I got to play with it myself before I gave it to her. """

Summarize with a word/sentence/character limit

Summarize with a focus on shipping and delivery

Summarize with a focus on price and value

Summaries include topics that are not related to the topic of focus.

Try "extract" instead of "summarize"

Summarize multiple product reviews

reviews = [review_1, review_2, review_3, review_4]

Inferring(์ถ”๋ก )

infer sentiment: ๊ฐ์ • ์ถ”๋ก 

In this lesson, you will infer sentiment and topics from product reviews and news articles.

์ด ์ˆ˜์—…์—์„œ๋Š” ์ œํ’ˆ ๋ฆฌ๋ทฐ์™€ ๋‰ด์Šค ๊ธฐ์‚ฌ์—์„œ ๊ฐ์„ฑ๊ณผ ์ฃผ์ œ๋ฅผ ์ถ”๋ก ํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค.

Sentiment (positive/negative)

Identify types of emotions

Identify anger

Extract product and company name from customer reviews

Doing multiple tasks at once

Inferring topics

Infer 5 topics

Make a news alert for certain topics

trasforming (๋ณ€ํ˜•)

๋ฒˆ์—ญ

ChatGPT๋Š” ๋‹ค์–‘ํ•œ ์–ธ์–ด์˜ ์†Œ์Šค๋กœ ํ•™์Šต๋ฉ๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ๋ชจ๋ธ์— ๋ฒˆ์—ญ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋‹ค์Œ์€ ์ด ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ๋ช‡ ๊ฐ€์ง€ ์˜ˆ์ž…๋‹ˆ๋‹ค.

๋‹ค์Œ ํ…์ŠคํŠธ๋ฅผ ๊ณต์‹ ๋ฐ ๋น„๊ณต์‹ ํ˜•์‹ ๋ชจ๋‘์—์„œ ์ŠคํŽ˜์ธ์–ด๋กœ ๋ฒˆ์—ญํ•˜์„ธ์š”:

Universal Translator

Imagine you are in charge of IT at a large multinational e-commerce company. Users are messaging you with IT issues in all their native languages. Your staff is from all over the world and speaks only their native languages. You need a universal translator!

๋Œ€๊ทœ๋ชจ ๋‹ค๊ตญ์  ์ด์ปค๋จธ์Šค ๊ธฐ์—…์—์„œ IT๋ฅผ ๋‹ด๋‹นํ•˜๊ณ  ์žˆ๋‹ค๊ณ  ๊ฐ€์ •ํ•ด ๋ณด์„ธ์š”. ์‚ฌ์šฉ์ž๋“ค์ด ๊ฐ์ž์˜ ๋ชจ๊ตญ์–ด๋กœ IT ๋ฌธ์ œ์— ๋Œ€ํ•ด ๋ฉ”์‹œ์ง€๋ฅผ ๋ณด๋‚ด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ „ ์„ธ๊ณ„ ๊ฐ์ง€์—์„œ ์˜จ ์ง์›๋“ค์€ ๊ฐ์ž์˜ ๋ชจ๊ตญ์–ด๋งŒ ๊ตฌ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ๋ถ„์—๊ฒŒ๋Š” ๋ฒ”์šฉ ๋ฒˆ์—ญ๊ธฐ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค!

Tone Transformation

Writing can vary based on the intended audience. ChatGPT can produce different tones. ๊ธ€์“ฐ๊ธฐ๋Š” ๋Œ€์ƒ์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์งˆ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ChatGPT๋Š” ๋‹ค์–‘ํ•œ ํ†ค์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Format Conversion

ChatGPT can translate between formats. The prompt should describe the input and output formats.

ChatGPT๋Š” ํ˜•์‹ ๊ฐ„ ๋ฒˆ์—ญ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กฌํ”„ํŠธ์— ์ž…๋ ฅ ๋ฐ ์ถœ๋ ฅ ํ˜•์‹์ด ์„ค๋ช…๋˜์–ด ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

Spellcheck/Grammar check

expanding

In this lesson, you will generate customer service emails that are tailored to each customer's review.

์ด ๋‹จ์›์—์„œ๋Š” ๊ฐ ๊ณ ๊ฐ์˜ ๋ฆฌ๋ทฐ์— ๋งž๋Š” ๊ณ ๊ฐ ์„œ๋น„์Šค ์ด๋ฉ”์ผ์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

Customize the automated reply to a customer emailยถ

Remind the model to use details from the customer's email

temperature (์˜จ๋„)

๋งค๋ฒˆ ํ• ๋•Œ๋งˆ๋‹ค ์กฐ๊ธˆ์”ฉ ๋‹ฌ๋ผ์ง€๊ฒŒ ํ• ์ˆ˜ ์žˆ๊ณ  0์„ ๋ˆ„๋ฅด๋ฉด ํ•ญ์ƒ ๊ฐ™์•„์ง„๋‹ค.

๊ฐ’์„ ๋ชจ๋ธ์— ์ „๋‹ฌํ•˜๋ฉด๋œ๋‹ค.

chatbot

In this notebook, you will explore how you can utilize the chat format to have extended conversations with chatbots personalized or specialized for specific tasks or behaviors.

์ด ๋…ธํŠธ๋ถ์—์„œ๋Š” ์ฑ„ํŒ… ํ˜•์‹์„ ํ™œ์šฉํ•˜์—ฌ ํŠน์ • ์ž‘์—…์ด๋‚˜ ํ–‰๋™์— ๋งž๊ฒŒ ๋งž์ถคํ™”๋˜๊ฑฐ๋‚˜ ํŠนํ™”๋œ ์ฑ—๋ด‡๊ณผ ํ™•์žฅ๋œ ๋Œ€ํ™”๋ฅผ ๋‚˜๋ˆ„๋Š” ๋ฐฉ๋ฒ•์„ ์‚ดํŽด๋ด…๋‹ˆ๋‹ค.

orderbot

conclusion

Last updated

Was this helpful?