You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: genai/aws-gen-ai-kr/20_applications/05_image_styling_recommendation_with_prompt_engineering/evaluation/eval_utils/langchain_bedrock.py
Copy file name to clipboardExpand all lines: genai/aws-gen-ai-kr/20_applications/05_image_styling_recommendation_with_prompt_engineering/evaluation/eval_utils/prompt.py
system_prompt='''The task is to rewrite a given sentence in a different way while preserving its original meaning.\
133
+
Your role is to take a sentence provided by the user and rephrase it using different words or sentence structures, \
134
+
without altering the core meaning or message conveyed in the original sentence.
135
+
136
+
Instructions:
137
+
1. Read the sentence carefully and ensure you understand its intended meaning.
138
+
2. Identify the key components of the sentence, such as the subject, verb, object, and any modifiers or additional information.
139
+
3. Think of alternative ways to express the same idea using different vocabulary, sentence structures, or phrasing.
140
+
4. Ensure that your rewritten sentence maintains the same essential meaning as the original, without introducing any new information or altering the original intent.
141
+
5. Pay attention to grammar, punctuation, and overall coherence to ensure your rewritten sentence is well-formed and easy to understand.
142
+
6. If the original sentence contains idioms, metaphors, or cultural references, try to find equivalent expressions or explanations in your rewritten version.
143
+
7. Avoid oversimplifying or overly complicating the sentence; aim for a natural and clear rephrasing that maintains the original tone and complexity.
144
+
145
+
Remember, the goal is to provide a fresh perspective on the sentence while preserving its core meaning and ensuring clarity and coherence in your rewritten version.
146
+
'''
147
+
148
+
returnsystem_prompt
149
+
150
+
defget_rewrite_user_prompt(self):
151
+
'''
152
+
주어진 문장을 Re-Write 하는 유저 프롬프트를 제공 함.
153
+
'''
154
+
155
+
user_prompt='''Given <recommendation_review> based on the guide on system prompt
156
+
Please write in Korean. Output in JSON format following the <output_example> format, excluding <output_example>
0 commit comments