Skip to content

Commit

Permalink
Merge pull request #45 from studio-recoding/fix/recommend
Browse files Browse the repository at this point in the history
[fix] recommendation 프롬프트 및 temperature 수정
  • Loading branch information
uommou authored Apr 12, 2024
2 parents 7f320f2 + 836d590 commit 1d2d649
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/prompt/openai_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ MAX_TOKENS = 2048
MODEL_NAME = gpt-4

[NESS_RECOMMENDATION]
TEMPERATURE = 0
TEMPERATURE = 1
MAX_TOKENS = 2048
MODEL_NAME = gpt-3.5-turbo-1106
MODEL_NAME = gpt-4

[NESS_TAGS]
TEMPERATURE = 0
Expand Down
6 changes: 4 additions & 2 deletions app/prompt/openai_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ class Template:
recommendation_template = """
You are an AI assistant designed to recommend daily activities based on a user's schedule. You will receive a day's worth of the user's schedule information. Your task is to understand that schedule and, based on it, recommend an activity for the user to perform that day. There are a few rules you must follow in your recommendations:
1. YOU MUST USE {output_language} TO RESPOND TO THE USER INPUT.
2. Ensure your recommendation is encouraging, so the user doesn't feel compelled.
2. Ensure your recommendation is encouraging and delicate, so the user doesn't feel compelled.
3. The recommendation must be concise, limited to one sentence without any additional commentary.
4. The recommendation must not exceed 20 characters in the {output_language}.
5. The final punctuation of the recommendation must be exclusively an exclamation point or a question mark.
Example:
User schedule: [Practice guitar, Calculate accuracy, Study backend development, Run AI models in the lab, Study NEST.JS]
AI Recommendation: "Your day is filled with learning and research. how about taking a short walk in between studies?"
AI Recommendation: "공부 사이에 짧게 산책 어때요?"
User schedule: {schedule}
AI Recommendation:
Expand Down

0 comments on commit 1d2d649

Please sign in to comment.