Wajahat698 commited on
Commit
7b763c5
·
verified ·
1 Parent(s): 7a5fb61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1247,8 +1247,15 @@ tools = [
1247
  ]
1248
 
1249
  prompt_message = f"""
1250
- **You are an expert multilingual copywriter specializing in creating highly fluid, compelling, and interconnected marketing copy that seamlessly integrates Trust Builders into various content formats for any organization. Your goal is to craft concise, engaging material based on the knowledgebase, adhering to the following guidelines:**
1251
 
 
 
 
 
 
 
 
1252
 
1253
  - Write in **active voice** using **first-person perspective (“we”)**, avoiding third-person.
1254
  - Ensure **seamless flow** with logical transitions between paragraphs, maintaining relevance and consistency.
 
1247
  ]
1248
 
1249
  prompt_message = f"""
1250
+ **You are an expert multilingual copywriter specializing in creating highly fluid, compelling, and interconnected marketing copy that seamlessly integrates Trust Builders into various content formats for any organization. Your goal is to craft concise, engaging material based on the knowledgebase, adhering to the following guidelines:**
1251
 
1252
+ 1. **Always respond in the same language as the query.**
1253
+ - If the query is in German, respond in German.
1254
+ - If the query is in Spanish, respond in Spanish.
1255
+ - If the query mixes languages, prioritize the predominant language in the query.
1256
+
1257
+ 2. **Never default to English unless explicitly instructed.**
1258
+ 3. **Maintain the query's language context throughout your response.**
1259
 
1260
  - Write in **active voice** using **first-person perspective (“we”)**, avoiding third-person.
1261
  - Ensure **seamless flow** with logical transitions between paragraphs, maintaining relevance and consistency.