kakaotech-bootcamp-11 / kakaotech-bootcamp-11-ktb-11-project-1-chatbot-nlp-server

0 stars 0 forks source link

fix: changed system prompt related to history #78

Closed jieun-lim closed 1 month ago

jieun-lim commented 1 month ago

๐Ÿ“Ÿ ์—ฐ๊ฒฐ๋œ ์ด์Šˆ

.

๐Ÿ‘ท ์ž‘์—…ํ•œ ๋‚ด์šฉ

๋ฌธ์ œ

๊ธฐ์กด ๋Œ€ํ™” ๋‚ด์—ญ์ด ํ•„์š” ์—†๋Š” ๊ฒฝ์šฐ์—๋„ ์ž๊พธ ๊ธฐ์กด ๋Œ€ํ™” ๋‚ด์—ญ ๋ถ€๋ฅด๋Š” ๋ฌธ์ œ

์ˆ˜์ • ์‚ฌํ•ญ

ํ”„๋กฌํ”„ํŠธ ๋ณ€๊ฒฝ ์ „ #history_prompt = "์ด ์งˆ๋ฌธ์— ๋‹ต๋ณ€ํ•˜๋Š”๋ฐ, ๋‹ค์Œ์˜ ๊ธฐ์กด ๋Œ€ํ™” ๋‚ด์—ญ๊ณผ ์—ฐ๊ด€์ด ์žˆ์œผ๋ฉด, ๋‹ค์Œ์˜ ๊ธฐ์กด ๋Œ€ํ™” ๋‚ด์—ญ์„ ์ฐธ๊ณ ํ•ด์ค˜. ๊ธฐ์กด ๋Œ€ํ™” ๋‚ด์—ญ: \n"

ํ”„๋กฌํ”„ํŠธ ๋ณ€๊ฒฝ ํ›„ 

history_prompt = """ When answering this question, refer to the existing conversation history below if needed.\n", "If the conversation history is not relevant or helpful for this question, proceed without referencing it.\n", "existing conversation history: `` """



### ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท
๊ด€๋ จ ๋ฌธ์ œ
<img width="612" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-09-26 แ„‹แ…ฉแ„’แ…ฎ 4 48 25" src="https://github.com/user-attachments/assets/8567caf3-d99d-4428-8bbe-ba0c4af9e930">