Wajahat698 commited on
Commit
cff41a3
·
verified ·
1 Parent(s): a723fba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1214,9 +1214,9 @@ With every copy application involving always include this:
1214
  #### 1. Report/Article/writeup/blog/website intro or any copy
1215
  - **Introduction**: Start with "Here is a draft of your [Annual Report/Article/writeup]. Feel free to suggest further refinements."
1216
  - **Structure**:
1217
- - **Headlines **: WRITE ONE CREATIVE ACTIVE LANGUAGE HEADLINE THAT SUMMARISES THE POINTS YOU MAKE.Headline should be like this in activae language eg.we empower instead of empowering.
1218
  - **Content**:
1219
- - GIVE CURIOUS ACTIVE LANGUAGE SUB-HEADLINES WITH EACH PARAGRAPHS **Donot give any source link in contents**
1220
  - **Perspective**: Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
1221
  - **Integration**: Interweave various trust-builder fluidly, focusing on specifics like names, numbers (dollar amounts and years), programs, strategies, places, awards, and actions, **without mentioning prohibited terms**.
1222
  - **Avoid Flowery Language**: Ensure content is clear and factual.
@@ -1269,7 +1269,7 @@ With every copy application involving always include this:
1269
  #### 4. Emails, Newsletter, Direct Marketing Letters**
1270
  - **Introduction Line**: Start with "Here is a draft of your [Email/Newsletter/Letter,Blog]. Feel free to suggest further refinements."
1271
  - **Structure**:
1272
- - **Headlines**: Create a compelling headline in active language that reflects the content, **without mentioning prohibited terms**.
1273
  - **Content**:
1274
  - Use **headings** with all content paragraphs to structure the article.** Donot give any source link in contents**
1275
  - **Perspective**: Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
@@ -1364,8 +1364,9 @@ Note: When including heuristics and creative techniques, use the structure “He
1364
  - Always clarify the audience impact and ensure all information is based on verified sources.
1365
  -Refer knowledgebase when asked about trustifier or TrustLogic.
1366
  -Resond user in the same language as user.
1367
- #MOST IMPORTANT RULES : EVERY PARAGRAPH SHOULD BE INTERCONNECTED TO CREATE A SEAMLESS FLOW, MAKING THE CONTENT READ LIKE A SINGLE CONTENT RATHER THAN DISJOINTED PARAGRAPHS OR INDEPENDENT BLOG SECTIONS. EACH SECTION MUST LOGICALLY TRANSITION INTO THE NEXT, ENSURING THAT THE TOPIC REMAINS CONSISTENT AND RELEVANT THROUGHOUT. BY MAINTAINING A COHESIVE STRUCTURE, THE ARTICLE WILL ENGAGE READERS MORE EFFECTIVELY, HOLDING THEIR ATTENTION AND CONVEYING THE INTENDED MESSAGE WITH CLARITY AND IMPACT.
1368
 
 
 
1369
  """
1370
 
1371
 
@@ -2102,7 +2103,7 @@ def handle_prompt(prompt):
2102
  # Specialized responses if keywords detected
2103
  try:
2104
  output = agent_executor.invoke({
2105
- "input": f"{prompt}Avoid flowery words and ai jargons.",
2106
  "chat_history": st.session_state.chat_history
2107
  })
2108
  full_response = output["output"]
 
1214
  #### 1. Report/Article/writeup/blog/website intro or any copy
1215
  - **Introduction**: Start with "Here is a draft of your [Annual Report/Article/writeup]. Feel free to suggest further refinements."
1216
  - **Structure**:
1217
+ - **Headlines **: WRITE ONE CREATIVE ACTIVE LANGUAGE HEADLINE THAT SUMMARISES THE POINTS.Headline should be like this in activae language eg.we empower instead of empowering.**without mentioning prohibited terms**.
1218
  - **Content**:
1219
+ - **Donot give any source link in contents**
1220
  - **Perspective**: Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
1221
  - **Integration**: Interweave various trust-builder fluidly, focusing on specifics like names, numbers (dollar amounts and years), programs, strategies, places, awards, and actions, **without mentioning prohibited terms**.
1222
  - **Avoid Flowery Language**: Ensure content is clear and factual.
 
1269
  #### 4. Emails, Newsletter, Direct Marketing Letters**
1270
  - **Introduction Line**: Start with "Here is a draft of your [Email/Newsletter/Letter,Blog]. Feel free to suggest further refinements."
1271
  - **Structure**:
1272
+ - **Headlines**: WRITE ONE CREATIVE ACTIVE LANGUAGE HEADLINE THAT SUMMARISES THE POINTS YOU MAKE.Headline should be like this in activae language eg.we empower instead **without mentioning prohibited terms**.
1273
  - **Content**:
1274
  - Use **headings** with all content paragraphs to structure the article.** Donot give any source link in contents**
1275
  - **Perspective**: Write as if you are part of the organization (using "we"), emphasizing togetherness and collective effort.
 
1364
  - Always clarify the audience impact and ensure all information is based on verified sources.
1365
  -Refer knowledgebase when asked about trustifier or TrustLogic.
1366
  -Resond user in the same language as user.
 
1367
 
1368
+ # MOST IMPORTANT RULES:
1369
+ - EVERY PARAGRAPH SHOULD BE INTERCONNECTED TO CREATE A SEAMLESS FLOW, MAKING THE CONTENT READ LIKE A SINGLE ARTICLE RATHER THAN DISJOINTED PARAGRAPHS OR INDEPENDENT BLOG SECTIONS. EACH SECTION MUST LOGICALLY TRANSITION INTO THE NEXT, ENSURING THAT THE TOPIC REMAINS CONSISTENT AND RELEVANT THROUGHOUT. BY MAINTAINING A COHESIVE STRUCTURE, THE ARTICLE WILL ENGAGE READERS MORE EFFECTIVELY, HOLDING THEIR ATTENTION AND CONVEYING THE INTENDED MESSAGE WITH CLARITY AND IMPACT.
1370
  """
1371
 
1372
 
 
2103
  # Specialized responses if keywords detected
2104
  try:
2105
  output = agent_executor.invoke({
2106
+ "input": f"{prompt}Avoid flowery words and ai jargons.With copy always give curious active language sub-headlines with each paragraph.",
2107
  "chat_history": st.session_state.chat_history
2108
  })
2109
  full_response = output["output"]