1 분 소요

OpenAI 잘사용하는 방법

  1. 프롬프트를 위한 지침
  2. 반복 프롬프트
  3. 요약하기
  4. 추론하기
  5. 텍스트 변환
  6. 프롬프트 확장
  7. 챗봇

반복 프롬프트 (ipynb)

  • Idea -> Implementation (code/data) -> Experimental result -> Error Analysis
  • AI doesn’t really work well with numbers
  • Iterative Process
    1. Try something
    2. Analyze where the result does nto give what you want
    3. Clarify instructions, give more time to think
    4. Refine prompts with a batch of examples

요약하기 (ipynb)

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.
"""

prompt = f"""
Your task is to generate a short summary of a product \
review from an ecommerce site. 

Summarize the review below, delimited by triple 
backticks, in at most 30 words. 

Review: ```{prod_review}```
"""

response = get_completion(prompt)
print(response)


prompt = f"""
Your task is to generate a short summary of a product \
review from an ecommerce site to give feedback to the pricing department. 

Summarize the review below, delimited by triple 
backticks, in at most 30 words and focusing on any aspects that \ 
are relevant to the price and perceived value. 

Review: ```{prod_review}```
"""

response = get_completion(prompt)
print(response)

참고자료

댓글남기기