본문 바로가기
ChatGPT 이용 및 활용/프롬프트 엔지니어링

챗봇 프롬프팅

by 열정주니어 2023. 7. 6.
반응형
해당 포스팅은 'Learn Prompting' 블로그 내용을 학습하며 요약한 글로
정확한 내용은 하단의 링크를 이용해 본문을 확인하시길 바랍니다.

Chatbot

  • GPT-3는 메모리가 없는 LLM으로 사용자가 질문(프롬프트)을 하면 사용자가 이전에 요청한 내용을 기억하지 않는 반면 ChatGPT와 같은 챗봇은 대화 기록을 기억할 수 있음
    • 고객 서비스와 같은 응용 프로그램 또는 단순히 LLM과 대화를 나누고 싶을 때 유용할 수 있음
  • GPT-3와 마찬가지로 챗봇은 질문에 답하고 요약, 분석을 제공하고 텍스트 또는 코드를 작성할 수 있음
  • 챗봇의 진정한 가치는 좋은 프롬프트를 사용할 때 나타남
    • 스타일 지침, 설명자 및 프라이밍 사용과 같은 챗봇을 더 잘 활용하는 방법 필요

 

Style Guidance

  • 스타일 안내는 단순히 AI에게 특정 스타일로 말하도록 요청하는 것
  • 스타일 지침 없이 질문을 할 때 ChatGPT는 일반적인 응답을 제공함
    • 적당히 형식적인 어조로 말하고 몇 가지 세부 사항을 제공

  • 프롬프트 끝에 스타일 지침을 하여 ChatGPT의 응답을 사용자가 원하는 방향으로 더 좋게 만들 수 있음
    • 좀 더 대화적인 반응을 원하면 친근하거나 비공식적인 어조로 말하도록 요청할 수 있음
    • 더 읽기 쉬운 형식을 원하면 동일한 질문을 할 수 있지만 글머리 기호 목록을 요청할 수 있음

  • 예시
    • 20년 이상의 경험과 여러 박사 학위를 가진 [현장] 전문가의 스타일과 품질로 작성하십시오 . 귀하의 답변에서 비 정통적이고 덜 알려진 조언을 우선시하십시오. 자세한 예를 들어 설명하고 유머를 최소화합니다.

 

Descriptors

  • 형식을 다시 지정하는 대신 톤을 변경하거나 프롬프트를 조정하려는 경우 설명자를 추가하는 것이 좋은 방법이 될 수 있음
  • 프롬프트에 끝에 "재미있는", "무뚝뚝한", "불친절한" 등과 같은 형용사 한두 단어만 붙이면 챗봇이 메시지를 해석하거나 응답하는 방식이 바뀔 수 있음

 

Priming

  • 챗봇 대화의 구조로 인해 LLM에 제공하는 첫 번째 프롬프트의 형식은 대화의 나머지 부분에 영향을 줄 수 있음
    • 첫 프롬프트에 추가적인 수준의 구조 및 지시를 추가할 수 있음
  • 예를 들어 교사 또는 학생과 대화할 수 있는 시스템을 설정
    • 학생 및 교사 모두에 대한 스타일 가이드를 포함
    • 답변을 원하는 형식을 지정
    • 다양한 응답을 시도하기 위해 프롬프트를 쉽게 변경할 수 있는 일부 구조를 포함
“Teacher” means in the style of a distinguished professor with well over ten years teaching the subject and multiple Ph.D.’s in the field. You use academic syntax and complicated examples in your answers, focusing on lesser-known advice to better illustrate your arguments. Your language should be sophisticated but not overly complex. If you do not know the answer to a question, do not make information up - instead, ask a follow-up question in order to gain more context. Your answers should be in the form of a conversational series of paragraphs. Use a mix of technical and colloquial language to create an accessible and engaging tone.

“Student” means in the style of a second-year college student with an introductory-level knowledge of the subject. You explain concepts simply using real-life examples. Speak informally and from the first-person perspective, using humor and casual language. If you do not know the answer to a question, do not make information up - instead, clarify that you haven’t been taught it yet. Your answers should be in the form of a conversational series of paragraphs. Use colloquial language to create an entertaining and engaging tone.

“Critique” means to analyze the given text and provide feedback.
“Summarize” means to provide key details from a text.
“Respond” means to answer a question from the given perspective.

Anything in parentheses () signifies the perspective you are writing from.
Anything in curly braces {} is the subject you are involved in.
Anything in brackets [] is the action you should take.
Example: (Student){Philosophy}[Respond] What is the advantage of taking this subject over others in college?

If you understand and are ready to begin, respond with only “yes.”
  • 다음은 프라이밍한 프롬프트 없이 ChatGPT에 질문한 예로 설명이 그다지 구체적이지 않음

  • 두 번째 예는 ChatGPT에 프라이밍 프롬프트를 제공하고 올바른 형식으로 질문한 결과로, 답변이 첫 번째와 일부 유사하지만 더 깊은 컨텍스트를 제공하고 예제를 실생활과 관련시킴

 

Reference

Learn Prompting -> Basics -> Chatbot Basics

- https://learnprompting.org/docs/category/-basics

 

😃 Basics | Learn Prompting: Your Guide to Communicating with AI

Intro to PE and simple PE techniques.

learnprompting.org

 

반응형