๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ป IT·๊ธฐ์ˆ ·ํ†ต๊ณ„

[API] OpenAI API ๊ฐ€์ง€๊ณ  ๋†€๊ธฐ 1ํƒ„: TL;DR (๊ธด๊ธ€ ์š”์•ฝ)

by nowgeun 2023. 2. 3.
728x90

์ตœ๊ทผ์— ์ œ ๋ธ”๋กœ๊ทธ์˜ ์œ ์ž… ๋ฐ ๋ฐฉ๋ฌธ ํ†ต๊ณ„๋ฅผ ๋ณด๋‹ˆ ChatGPT ํฌ์ŠคํŠธ์˜ ์ธ๊ธฐ๊ฐ€ ๋…๋ณด์ ์ธ ๊ฒƒ์„ ๋ฐœ๊ฒฌํ–ˆ์Šต๋‹ˆ๋‹ค.  ์•„๋ฌด๋ž˜๋„ ๋งŽ์ด ํšŒ์ž๋˜๊ณ  ์žˆ๋Š” ๊ธฐ์ˆ ์ด๋‹ค ๋ณด๋‹ˆ ์ฐพ์œผ์‹œ๋Š” ๋ถ„๋“ค๋„ ๊ฝค ์žˆ์–ด์„œ ๋ฟŒ๋“ฏํ•œ ๊ธฐ๋ถ„์ด ๋“ญ๋‹ˆ๋‹ค. ๊ฒŒ๋‹ค๊ฐ€ ChatGPT์™€ ๊ด€๋ จ๋œ ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ์™€ ์—”๋น„๋””์•„๋„ ์ตœ๊ทผ์— ํฌ๊ฒŒ ์ƒ์Šน์„ ํ•ด์„œ ์ €๋„ ๊ธฐ๋ถ„์ด ์•„์ฃผ ์ข‹์Šต๋‹ˆ๋‹ค. (๊ตฌ์กฐ์„ ์ด ์™”๋‹ค!!!)

 

๊ทธ๋ž˜์„œ ์ด์™• ์ด๋ ‡๊ฒŒ ๋œ ๊น€์—, OpenAI์˜ API๊ฐ€ ์ œ๊ณตํ•˜๋Š” ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ๋“ค์„ ํ™œ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์†Œ๊ฐœ๋ฅผ ๋“œ๋ฆฌ๊ณ ์ž ํ•ฉ๋‹ˆ๋‹ค. 

์ด๋ฒˆ ํฌ์ŠคํŠธ์—์„œ๋Š” OpenAPI๊ฐ€ ์ œ๊ณตํ•˜๋Š” ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๊ธฐ๋Šฅ ์ค‘, ํ…์ŠคํŠธ ์š”์•ฝ์— ๋Œ€ํ•ด ๋‹ค๋ฃจ๊ฒ ์Šต๋‹ˆ๋‹ค.

 

์˜์–ด๋กœ TL;DR์ด ๋ฌด์Šจ ๋œป์ธ ์ค„ ์•„์‹œ๋‚˜์š”? ๋ฐ”๋กœ "Too Long. Didn't Read"๋ผ๋Š” ๋œป์ž…๋‹ˆ๋‹ค. ๋„ˆ๋ฌด ๊ธธ์–ด์„œ ์ฝ์ง€ ์•Š์•˜๋‹ค๋Š” ๋œป์ด๊ณ  ๊ธด ๊ธ€์„ ์š”์•ฝํ•  ๋•Œ ์“ฐ๋Š” ๋ง์ด๊ธฐ๋„ ํ•ฉ๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋‚˜๋ผ๋ง๋กœ ๋ฒˆ์—ญ์„ ํ•ด๋ณด์ž๋ฉด "3์ค„ ์š”์•ฝ" ์ •๋„๊ฐ€ ์žˆ์„ ๊ฒƒ ๊ฐ™๋„ค์š”. ์•„๋ฌดํŠผ, OpenAI API๋ฅผ ํ™œ์šฉํ•ด์„œ ๊ธด ํ…์ŠคํŠธ๋ฅผ ์š”์•ฝํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

tldr
TL;DR์˜ ๋œป

 

OpenAI API๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” APIํ‚ค๋ฅผ ๋ฐœ๊ธ‰๋ฐ›์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋ฐœ๊ธ‰ ๋ฐฉ๋ฒ• ๊ด€๋ จํ•ด์„œ๋Š” ์ œ ์ด์ „ ํฌ์ŠคํŠธ๋ฅผ ์ฐธ๊ณ  ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

2023.01.17 - [๐Ÿ’ป ํŒŒ์ด์ฌ] - [API] ChatGPT Python์œผ๋กœ ์‚ฌ์šฉํ•ด ๋ณด๊ธฐ

 

[API] ChatGPT Python์œผ๋กœ ์‚ฌ์šฉํ•ด๋ณด๊ธฐ

ChatGPT๋Š” ์ถœ์‹œ ์งํ›„ ๊ฐ์ข… ์ธ๊ณต์ง€๋Šฅ, ๋ฐ์ดํ„ฐ, IT ๊ด€๋ จ ์ปค๋ฎค๋‹ˆํ‹ฐ์—์„œ ํฐ ํ™”๋‘๊ฐ€ ๋˜์—ˆ๋‹ค. ์–ด๋– ํ•œ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์‚ฌ์šฉํ–ˆ๊ณ  ํ•™์Šต ๋ฐ์ดํ„ฐ๋ฅผ ์–ผ๋งˆ๋‚˜ ์‚ฌ์šฉํ–ˆ๋Š”์ง€๋Š” ์—…๊ณ„ ์‚ฌ๋žŒ๋“ค์ด ์•„๋‹Œ ์ด์ƒ ํฌ๊ฒŒ ๊ด€์‹ฌ์ด ์—†์„

jakely.tistory.com

 

์†Œ์Šค์ฝ”๋“œ

์•„๋ž˜ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ํ™œ์šฉํ•˜์‹œ๋ฉด ์š”์•ฝ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์š”์•ฝ์„ ํ•˜๊ณ  ์‹ถ์€ ๊ธ€์˜ ๋งจ ๋งˆ์ง€๋ง‰ ๋ถ€๋ถ„์— tl;dr์„ ์ถ”๊ฐ€ํ•˜๋ฉด ๋œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

๊ฐ์ข… ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ SNS์—์„œ tl;dr์ด๋ผ๋Š” ๋ฌธ๊ตฌ๋ฅผ ์‚ฌ์šฉํ•œ ๋งŽ์€ ๊ธ€๋“ค์ด GPTํ•™์Šต์ด ๋˜๋ฉด์„œ ๊ฐ€๋Šฅํ•ด์ง„ ๊ธฐ๋Šฅ์ธ ๊ฒƒ์œผ๋กœ ์ถ”์ •๋ฉ๋‹ˆ๋‹ค.

์•„์‰ฝ๊ฒŒ๋„ ์•„๋ž˜ ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ๋ฅผ ๋ณด์‹œ๋ฉด ์•„์‹œ๊ฒ ์ง€๋งŒ, ํ•œ๊ตญ์€ ์ง€์›๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. (์„ฑ๋Šฅ์ด ์ฒ˜์ฐธํ•ฉ๋‹ˆ๋‹ค)

์ด ์š”์•ฝ ๊ธฐ๋Šฅ์ด ๋Œ€๋‹จํ•œ ์ ์€ ์š”์•ฝ์„ ์‚ฌ๋žŒ์ฒ˜๋Ÿผ ํ•ด์ค€๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ ๋ฌธ์„œ๋‚˜ ํ•ต์‹ฌ๋ฌธ์žฅ์ด๋ผ๊ณ  ํ•œ๋‹ค๋ฉด ๋ณธ๋ฌธ ๋‚ด์—์„œ ๊ฐ€์žฅ ์ค‘์š”ํ•œ ๋ฌธ์žฅ์„ ๋ช‡ ๊ฐœ ๊ฐ€์ ธ์˜ค๋Š” ์‹์ด ๋ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ๋‹ค๋ฅธ ๋ฌธ์žฅ์— ์žˆ์„ ์ˆ˜ ์žˆ๋Š” ์ค‘์š”ํ•œ ์ •๋ณด๋“ค์ด ๋ˆ„๋ฝ๋  ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ์ง€๋งŒ, ChatGPT์˜ ๊ฒฝ์šฐ ์Šค์Šค๋กœ ๋ฌธ์žฅ์„ ์ƒ์„ฑํ•ด ๋‚ด๋ฏ€๋กœ (์˜์–ด์— ํ•œํ•ด์„œ๋Š”) ์™„๋ฒฝ์— ๊ฐ€๊นŒ์šด ์š”์•ฝ ์„ฑ๋Šฅ์„ ๋ณด์ด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. 

import os
import openai

# ๋ฐœ๊ธ‰๋ฐ›์€ OpenAI APIํ‚ค๋ฅผ ๋ณต๋ถ™
openai.api_key = 'YOUR_API_KEY'

def tldr(corpus, max_tokens=100):  
    
    if type(corpus) != str:
        raise TypeError
    else:
    	# tl;dr ์ด ๋งจ ๋งˆ์ง€๋ง‰ ์ค„์— ์žˆ์–ด์•ผ ์š”์•ฝ์ด ๋ฉ๋‹ˆ๋‹ค
        corpus += '\ntl;dr'
        
        # OpenAI API๋ฅผ ํ™œ์šฉํ•ด์„œ ChatGPT์‚ฌ์šฉ
        response = openai.Completion.create(    
              model="text-davinci-003",
              prompt=corpus,
              temperature=0.7,
              max_tokens=max_tokens,
              top_p=1.0,
              frequency_penalty=0.0,
              presence_penalty=1
            )

        return response['choices'][0]['text'].strip()
        
        
# ์š”์•ฝํ•  ํ…์ŠคํŠธ ๋ณ€์ˆ˜๋กœ ์ €์žฅ

## https://en.wikipedia.org/wiki/ChatGPT   
#### Training, Features and Limitation ๋ถ€๋ถ„

corpus1 = """ChatGPT was fine-tuned on top of GPT-3.5 using supervised learning as well as reinforcement learning.[5] Both approaches used human trainers to improve the model's performance. In the case of supervised learning, the model was provided with conversations in which the trainers played both sides: the user and the AI assistant. In the reinforcement step, human trainers first ranked responses that the model had created in a previous conversation. These rankings were used to create 'reward models' that the model was further fine-tuned on using several iterations of Proximal Policy Optimization (PPO).[6][7] Proximal Policy Optimization algorithms present a cost-effective benefit to trust region policy optimization algorithms; they negate many of the computationally expensive operations with faster performance.[8][9] The models were trained in collaboration with Microsoft on their Azure supercomputing infrastructure.
In addition, OpenAI continues to gather data from ChatGPT users that could be used to further train and fine-tune ChatGPT. Users are allowed to upvote or downvote the responses they receive from ChatGPT; upon upvoting or downvoting, they can also fill out a text field with additional feedback.[10][11]
Features and limitations
Conversation with ChatGPT about whether Jimmy Wales was involved in the Tiananmen Square protests, December 30, 2022
Although the core function of a chatbot is to mimic a human conversationalist, ChatGPT is versatile. For example, it can write and debug computer programs,[12] to compose music, teleplays, fairy tales, and student essays; to answer test questions (sometimes, depending on the test, at a level above the average human test-taker);[13] to write poetry and song lyrics;[14] to emulate a Linux system; to simulate an entire chat room; to play games like tic-tac-toe; and to simulate an ATM.[15] ChatGPT's training data includes man pages and information about Internet phenomena and programming languages, such as bulletin board systems and the Python programming language.[15]
In comparison to its predecessor, InstructGPT, ChatGPT attempts to reduce harmful and deceitful responses.[16] In one example, whereas InstructGPT accepts the premise of the prompt "Tell me about when Christopher Columbus came to the U.S. in 2015" as being truthful, ChatGPT acknowledges the counterfactual nature of the question and frames its answer as a hypothetical consideration of what might happen if Columbus came to the U.S. in 2015, using information about Columbus' voyages and facts about the modern world – including modern perceptions of Columbus' actions.[6]
Unlike most chatbots, ChatGPT remembers previous prompts given to it in the same conversation; journalists have suggested that this will allow ChatGPT to be used as a personalized therapist.[17] To prevent offensive outputs from being presented to and produced from ChatGPT, queries are filtered through OpenAI's company-wide moderation API,[18][19] and potentially racist or sexist prompts are dismissed.[6][17]
ChatGPT suffers from multiple limitations. OpenAI acknowledged that ChatGPT "sometimes writes plausible-sounding but incorrect or nonsensical answers".[6] This behavior is common to large language models and is called hallucination.[20] The reward model of ChatGPT, designed around human oversight, can be over-optimized and thus hinder performance, otherwise known as Goodhart's law.[21] ChatGPT has limited knowledge of events that occurred after 2021. According to the BBC, as of December 2022 ChatGPT is not allowed to "express political opinions or engage in political activism".[22] Yet, research suggests that ChatGPT exhibits a pro-environmental, left-libertarian orientation when prompted to take a stance on political statements from two established voting advice applications.[23] In training ChatGPT, human reviewers preferred longer answers, irrespective of actual comprehension or factual content.[6] Training data also suffers from algorithmic bias, which may be revealed when ChatGPT responds to prompts including descriptors of people. In one instance, ChatGPT generated a rap indicating that women and scientists of color were inferior to white and male scientists.
"""

## https://www.mk.co.kr/news/stock/10627563
corpus2 = """
๊ธ€๋กœ๋ฒŒ ์†Œ์…œ๋„คํŠธ์›Œํฌ์„œ๋น„์Šค(SNS)์ธ ์ธ์Šคํƒ€๊ทธ๋žจ, ํŽ˜์ด์Šค๋ถ์˜ ๋ชจํšŒ์‚ฌ ๋ฉ”ํƒ€ ํ”Œ๋žซํผ(META) ์ฃผ๊ฐ€๊ฐ€ 400์–ต๋‹ฌ๋Ÿฌ(์•ฝ 49์กฐ์›) ๊ทœ๋ชจ์˜ ์ž์‚ฌ์ฃผ ๋งค์ž… ์†Œ์‹์— 19% ์ด์ƒ ๊ธ‰๋“ฑํ–ˆ๋‹ค. ๋ฉ”ํƒ€๋Š” ๋””์ง€ํ„ธ ๊ด‘๊ณ  ์‹œ์žฅ ์นจ์ฒด๋กœ ์›”๊ฐ€ ๊ธฐ๋Œ€์น˜๋ฅผ ๋ฐ‘๋„๋Š” ์‹ค์ ์„ ๋ฐœํ‘œํ–ˆ์ง€๋งŒ ํŒŒ๊ฒฉ์ ์ธ ์ฃผ์ฃผ ํ™˜์›์ฑ…์ด ํšจ๊ณผ๋ฅผ ๋ฐœํœ˜ํ–ˆ๋‹ค๋Š” ํ‰๊ฐ€๋‹ค.

1์ผ(ํ˜„์ง€์‹œ๊ฐ„) ๋ฉ”ํƒ€๋Š” ์ง€๋‚œํ•ด 4๋ถ„๊ธฐ ๋งค์ถœ์•ก์œผ๋กœ 321์–ต7000๋งŒ๋‹ฌ๋Ÿฌ(์•ฝ 39์กฐ2800์–ต์›)๋ฅผ ๊ธฐ๋กํ–ˆ๋‹ค๊ณ  ๋ฐœํ‘œํ–ˆ๋‹ค. ์ด๋Š” ์›”๊ฐ€๊ฐ€ ์ถ”์ •ํ•œ 315์–ต3000๋งŒ๋‹ฌ๋Ÿฌ๋ฅผ ์›ƒ๋„๋Š” ํ˜ธ์‹ค์ ์ด๋‹ค. ๋ฐ˜๋ฉด ์›”๊ฐ€๊ฐ€ ์ค‘์š”ํ•˜๊ฒŒ ๋ณด๋Š” ์ˆ˜์ต์„ฑ ์ง€ํ‘œ์ธ ์ฃผ๋‹น์ˆœ์ด์ต(EPS)์€ 1.76๋‹ฌ๋Ÿฌ๋กœ ์‹œ์žฅ ๊ธฐ๋Œ€์น˜(2.26๋‹ฌ๋Ÿฌ)๋ฅผ ํฌ๊ฒŒ ๋ฐ‘๋Œ์•˜๋‹ค. ์ด๋กœ์จ ๋ฉ”ํƒ€๋Š” ์ง์ „ 6๊ฐœ ๋ถ„๊ธฐ ์—ฐ์† ๋งค์ถœ์•ก, ์ฃผ๋‹น์ˆœ์ด์ต ์ค‘ ํ•œ ์š”์†Œ๊ฐ€ ์›”๊ฐ€ ์ถ”์ •์น˜์— ๋ฏธ์น˜์ง€ ๋ชปํ•˜๋Š” ์‹ค์  ์ถฉ๊ฒฉ ๊ธฐ๋ก์„ ์ด์–ด๊ฐ€๊ฒŒ ๋๋‹ค.

๋ถ€์ง„ํ•œ ์‹ค์ ์„ ๋งŒํšŒํ•˜๊ธฐ ์œ„ํ•ด ๋ฉ”ํƒ€๊ฐ€ ๋„์šด ์Šน๋ถ€์ˆ˜๋Š” ํŒŒ๊ฒฉ์ ์ธ ์ฃผ์ฃผ ํ™˜์› ์ •์ฑ…์ด๋‹ค. ์ด๋‚  ๋ฉ”ํƒ€๋Š” ์‹ค์ ์„ ๋ฐœํ‘œํ•˜๋ฉด์„œ ์ฃผ๊ฐ€ ๋ถ€์–‘์„ ์œ„ํ•œ 400์–ต๋‹ฌ๋Ÿฌ ๊ทœ๋ชจ์˜ ์ž์‚ฌ์ฃผ ๋งค์ž…์— ๋‚˜์„œ๊ฒ ๋‹ค๊ณ  ๋ฐœํ‘œํ–ˆ๋‹ค. 1์ผ ๊ธฐ์ค€ ๋ฉ”ํƒ€์˜ ์‹œ๊ฐ€์ด์•ก์€ 4015์–ต1000๋งŒ๋‹ฌ๋Ÿฌ ์ˆ˜์ค€์ด๋‹ค. ๋ฉ”ํƒ€ ์‹œ๊ฐ€์ด์•ก์˜ 10%์— ํ•ด๋‹นํ•˜๋Š” ์•ก์ˆ˜๋งŒํผ ์ž์‚ฌ์ฃผ๋ฅผ ์‚ฌ๋“ค์ด๊ฒ ๋‹ค๋Š” ๊ฒƒ์ด๋‹ค. ์ด๋Š” ๊ตญ๋‚ด ์ฆ์‹œ์—์„œ ์‚ผ์„ฑ์ „์ž ์‹œ๊ฐ€์ด์•ก(377์กฐ์›)์˜ 13%์— ํ•ด๋‹นํ•˜๋Š” ์ˆ˜์น˜์ด๊ธฐ๋„ ํ•˜๋‹ค. ๋ฉ”ํƒ€์˜ ์ž์‚ฌ์ฃผ ๋งค์ž… ๊ทœ๋ชจ(49์กฐ์›)๋ณด๋‹ค ์‹œ๊ฐ€์ด์•ก ๊ทœ๋ชจ๊ฐ€ ํฐ ๊ตญ๋‚ด ์ข…๋ชฉ์€ ์‚ผ์„ฑ์ „์ž, LG์—๋„ˆ์ง€์†”๋ฃจ์…˜, SKํ•˜์ด๋‹‰์Šค, ์‚ผ์„ฑ๋ฐ”์ด์˜ค๋กœ์ง์Šค ๋ฟ์ด๋‹ค.

๋ฉ”ํƒ€์˜ ์ž์‚ฌ์ฃผ ๋งค์ž… ๋ฐœํ‘œ ํ›„ ์ฃผ๊ฐ€๋Š” ์‹œ๊ฐ„์™ธ ๊ฑฐ๋ž˜์—์„œ 19.5% ์ƒ์Šนํ–ˆ๋‹ค. ์ง€๋‚œํ•ด 11์›” ๊ธฐ๋กํ•œ ์ฃผ๋‹น 88๋‹ฌ๋Ÿฌ์™€ ๋น„๊ตํ•˜๋ฉด 107% ์ƒ์Šนํ•œ ์ˆ˜์ค€์ด๋‹ค.

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

SNS ํ”Œ๋žซํผ ์‚ฌ์šฉ์ž ์ˆ˜๊ฐ€ ์ฆ๊ฐ€ํ•˜๊ณ  ์žˆ๋‹ค๋Š” ์ ์€ ํ˜ธ์žฌ๋‹ค. ๋ฉ”ํƒ€๋Š” ํŽ˜์ด์Šค๋ถ ๋“ฑ์˜ ์ผ์ผ ํ™œ์„ฑ ์‚ฌ์šฉ์ž์ˆ˜๊ฐ€ ์ „๋…„ ๋Œ€๋น„ 5% ์ฆ๊ฐ€ํ•œ 29์–ต6000๋งŒ๋ช…์œผ๋กœ ์ง‘๊ณ„๋๋‹ค๊ณ  ๋ฐํ˜”๋‹ค. ์ง€๋‚œ ๋„ทํ”Œ๋ฆญ์Šค ์‹ค์  ๋ฐœํ‘œ ๋•Œ์ฒ˜๋Ÿผ ํ”Œ๋žซํผ ์‚ฌ์—…์ž์˜ ๊ฒฝ์šฐ ์ด์ต์ด ์ •์ฒด ๋ผ๋„ ์‚ฌ์šฉ์ž์ˆ˜๊ฐ€ ๋Š˜๊ฒŒ ๋˜๋ฉด ์„ฑ์žฅ ์ธก๋ฉด์—์„œ ์‹œ์žฅ์€ ๊ธ์ •์ ์œผ๋กœ ํ‰๊ฐ€ํ•˜๋Š” ๋•Œ๋ฌธ์ด๋‹ค.

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

 

ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ

corpus1 ์€ ChatGPT์˜ ์œ„ํ‚คํ”ผ๋””์•„ ์˜๋ฌธ ์„ค๋ช… ์ค‘ Training (ํ›ˆ๋ จ) ๋ถ€๋ถ„๊ณผ Features and Limitation (๊ธฐ๋Šฅ๊ณผ ํ•œ๊ณ„) ๋ถ€๋ถ„์„ ๋ฐœ์ทŒํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  corpus2 ์˜ ๊ฒฝ์šฐ์—๋Š” ๋งค์ผ๊ฒฝ์ œ ์‹ ๋ฌธ๊ธฐ์‚ฌ๋ฅผ ๋ฐœ์ทŒํ–ˆ์Šต๋‹ˆ๋‹ค. 

 

์•„๋ž˜ ๊ฒฐ๊ณผ 1์„ ๋ณด์‹œ๋ฉด ์˜์–ด์˜ ๊ฒฝ์šฐ์—๋Š” ์™„๋ฒฝ์— ๊ฐ€๊นŒ์šด ์š”์•ฝ ์„ฑ๋Šฅ์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค. ๊ธ€์ž๊ฐœ์ˆ˜ ์ œํ•œ์ด 100๊ฐœ๋ผ ํ›„๋ฐ˜์— ์ž˜๋ ธ์ง€๋งŒ, ์–ด๋–ค ๋ฐฉ์‹์œผ๋กœ ํ›ˆ๋ จ์ด ๋˜์—ˆ์œผ๋ฉฐ, ์–ด๋–ค ์ œํ•œ์ ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋Š”์ง€๋ฅผ ์ „๋ถ€ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค. ์‹ฌ์ง€์–ด ๋ณธ๋ฌธ๊ณผ ๋˜‘๊ฐ™์€ ๋ฌธ์žฅ์ด ์ „ํ˜€ ์—†์Šต๋‹ˆ๋‹ค. 

 

๊ฒฐ๊ณผ 2์˜ ๊ฒฝ์šฐ์—๋Š”... ์„ฑ๋Šฅ์ด ์ข‹์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•œ๊ธ€์€ ์•„๋ฌด๋ž˜๋„ ํ•™์Šต๋ฐ์ดํ„ฐ๊ฐ€ ์ ๊ธฐ๋„ ํ•˜๊ณ , ์‚ฌ์šฉ์ž๊ฐ€ ๋งŽ์ง€ ์•Š์•„ ์ง€์›์ด ๋˜๋Š” ๊ฒƒ ๊ฐ™์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ˜„์žฌ ๊นŒ์ง€๋กœ์„œ ํ•œ๊ธ€ ์š”์•ฝ์˜ ๊ฒฝ์šฐ์—๋Š” ์˜์–ด๋กœ ๋ฒˆ์—ญ์„ ํ•˜์—ฌ ์š”์•ฝ์„ ํ•œ ๋’ค, ๋‹ค์‹œ ํ•œ๊ธ€๋กœ ๋ฒˆ์—ญ์„ ํ•˜๋Š” ๋ฐฉ๋ฒ•๋ฐ–์— ์—†์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

TL;DR
TLDR ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ

 

TL;DR

ChatGPT๋กœ ์‚ฌ๋žŒ๊ณผ ๊ฐ™์€ ๋ฌธ์žฅ ์š”์•ฝ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€