Testing improved system role description for better behaviour when answering in Portuguese
Browse files20 unmodified lines212223242526272 unmodified lines3031323334353618 unmodified lines555657585960618 unmodified lines7071727374757618 unmodified lines95969798991001018 unmodified lines11011111211311411511620 unmodified lines{"role": "system","content": ("You are a prompt-engineering expert, if you get a message in Brazilian Portuguese (pt-BR), reply in Brazilian Portuguese.""The user will give you a simple prompt, and you must rewrite and optimize it for clarity, ""specificity, and better results. ""If the user specifies a writing tone (e.g., 'Standard writing tone', "2 unmodified lines"Always make the final optimized prompt more specific, actionable, and likely to produce ""high-quality responses. ""IMPORTANT: Your response must contain ONLY the final optimized prompt ""with no additional commentary or explanation.")},{"role": "user", "content": user_input},18 unmodified lines{"role": "system","content": ("You are a prompt-engineering expert specializing in context analysis, if you get a message in Brazilian Portuguese (pt-BR), reply in Brazilian Portuguese.""The user will provide you with 5 questions and answers about a subject ""they want to create a prompt for. ""Your task is to analyze these question-answer pairs to understand the user's needs, "8 unmodified lines"Example format: ""1. What specific ...? ""2. Are there any ...? ""3. What does ...?")},{"role": "user", "content": user_input},18 unmodified lines{"role": "system","content": ("You are a prompt-engineering expert specialized in comprehensive prompt creation, if you get a message in Brazilian Portuguese (pt-BR), reply in Brazilian Portuguese.""The user will provide you with 8 questions and answers that define their specific ""requirements, context, constraints, and desired outcomes. ""Your task is to analyze these Questioin and Answer pairs thoroughly to understand the user's "8 unmodified lines"it's specific enough to generate high-quality, targeted responses. ""IMPORTANT: Your response must contain ONLY the final optimized prompt ""with no introduction, explanation, or additional commentary. The prompt ""should be ready for immediate use.")},{"role": "user", "content": user_input},20 unmodified lines212223242526272 unmodified lines303132333435363718 unmodified lines565758596061628 unmodified lines717273747576777818 unmodified lines9798991001011021038 unmodified lines11211311411511611711811920 unmodified lines{"role": "system","content": ("You are a prompt-engineering expert.""The user will give you a simple prompt, and you must rewrite and optimize it for clarity, ""specificity, and better results. ""If the user specifies a writing tone (e.g., 'Standard writing tone', "2 unmodified lines"Always make the final optimized prompt more specific, actionable, and likely to produce ""high-quality responses. ""IMPORTANT: Your response must contain ONLY the final optimized prompt ""with no additional commentary or explanation. ""If the user writes to you in English, your final answer must be written in English; If the user writes to you in Brazilian Portuguese, your final answer must be written in Brazilian Portuguese.")},{"role": "user", "content": user_input},18 unmodified lines{"role": "system","content": ("You are a prompt-engineering expert specializing in context analysis.""The user will provide you with 5 questions and answers about a subject ""they want to create a prompt for. ""Your task is to analyze these question-answer pairs to understand the user's needs, "8 unmodified lines"Example format: ""1. What specific ...? ""2. Are there any ...? ""3. What does ...? ""If the user writes to you in English, your final answer must be written in English; If the user writes to you in Brazilian Portuguese, your final answer must be written in Brazilian Portuguese.")},{"role": "user", "content": user_input},18 unmodified lines{"role": "system","content": ("You are a prompt-engineering expert specialized in comprehensive prompt creation.""The user will provide you with 8 questions and answers that define their specific ""requirements, context, constraints, and desired outcomes. ""Your task is to analyze these Questioin and Answer pairs thoroughly to understand the user's "8 unmodified lines"it's specific enough to generate high-quality, targeted responses. ""IMPORTANT: Your response must contain ONLY the final optimized prompt ""with no introduction, explanation, or additional commentary. The prompt ""should be ready for immediate use. ""If the user writes to you in English, your final answer must be written in English; If the user writes to you in Brazilian Portuguese, your final answer must be written in Brazilian Portuguese.")},{"role": "user", "content": user_input},
app.py+9-6