Wajahat698 commited on
Commit
4a4f569
·
verified ·
1 Parent(s): 45f5adf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -33
app.py CHANGED
@@ -1465,18 +1465,6 @@ Note: When including heuristics and creative techniques, use the structure “He
1465
  - If requested, generate a LinkedIn profile in a professional manner.
1466
  - **Avoid prohibited terms** and **flowery language**.
1467
 
1468
- ###7.Newsletter:
1469
- **1. Personal and Engaging Tone**:
1470
- - Use "you" or "your" consistently throughout the newsletter to establish a direct and personal connection with the reader.
1471
- - Avoid distant references like "they" or "them"—make the reader feel like the newsletter speaks directly to them.
1472
- - Write in a conversational, human tone that feels approachable yet professional.
1473
-
1474
- **2. Purpose-Driven Messaging**:
1475
- - Clearly define the newsletter's purpose—whether to inform, inspire, or prompt action.
1476
- - Conclude with a strong and actionable Call-to-Action (CTA) that encourages the reader to take the next step (e.g., "Join Us Today" or "Support This Initiative Now").
1477
- - Keep the CTA specific, urgent, and relevant to the content.
1478
-
1479
-
1480
  ### General Queries
1481
  - Do not use the knowledge base for non-trust content.
1482
  - Always clarify the audience impact and ensure all information is based on verified sources.
@@ -2201,26 +2189,28 @@ def handle_prompt(prompt):
2201
  cleaned_text = ""
2202
  base_instructions = """
2203
 
2204
- Avoid Flowery language and ai words.Always include alof of data of numbers,names,dollars, programs ,awards and action when finding trustbuilders from internet.*
2205
-
2206
- 1. **Adhere to Uploaded Document's Style**:
2207
- - When asked uploaded files or document means knowledgebase.
2208
- - Use the uploaded document as a primary guide for writing style, tone, and structure. Just directly give response.
2209
- - Match formatting such as headings, subheadings, and paragraph styles. If the uploaded document lacks headings, Strictly do not include them in the response.
2210
-
2211
- 2. **Prioritize Knowledge Base and Internet Sources**:
2212
- - Use uploaded documents or knowledge base files as the primary source.
2213
- - Perform a Google search to retrieve valid and correct internet links for references, ensuring only accurate and verified source links are used.
2214
-
2215
- 3. **Avoid Flowery Language and AI Jargon**:
2216
- - Use clear, professional language without exaggerated or vague expressions. Avoid jargon like "beacon," "realm," "exemplifies," etc.
2217
-
2218
- 4. **Ensure Accuracy**:
2219
- - Provide only verifiable and accurate information. Do not include placeholders, fabricated URLs, or vague references.
2220
- - Response in same language in which asked.
2221
- -Use google to provide accurate sources links containing the trustbuilder text information.
2222
-
2223
-
 
 
2224
  """
2225
  # base_instructions = """
2226
  # **General Guidelines**:
@@ -2266,7 +2256,7 @@ def handle_prompt(prompt):
2266
  " Use the following structure:"
2267
  " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2268
  " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2269
- "The final output must not include AI jargons. *With every paragraph give a creative headline that summarises the content give sub-headlines with each paragraph like example headline: Drive,empower use similar words but no driving, empowering etc *. Avoid mentioning trustbucket names."
2270
  "MOST IMPORTANT RULE. IN EVERY PARAGRAPH Strengthen the connections between sections to ensure smoother flow and SHOULD BE DEEPLY INTERCONNECTED WITH EACH OTHER 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."
2271
  )
2272
 
 
1465
  - If requested, generate a LinkedIn profile in a professional manner.
1466
  - **Avoid prohibited terms** and **flowery language**.
1467
 
 
 
 
 
 
 
 
 
 
 
 
 
1468
  ### General Queries
1469
  - Do not use the knowledge base for non-trust content.
1470
  - Always clarify the audience impact and ensure all information is based on verified sources.
 
2189
  cleaned_text = ""
2190
  base_instructions = """
2191
 
2192
+ **General Guidelines**:
2193
+ - Use **clear, professional language** without exaggerated expressions or AI jargon (e.g., "beacon," "realm," "exemplifies").
2194
+ - Always include **specific numbers, names, dollar amounts, programs, awards, and actions** when identifying TrustBuilders®.
2195
+ - Prioritize **accuracy and verification**:
2196
+ - Use the uploaded document or knowledge base as the primary source.
2197
+ - Validate references via Google search and avoid placeholders or vague sources.
2198
+
2199
+ **Adhere to Uploaded Document's Style**:
2200
+ 1. Use the document's tone, structure, and formatting as a guide.
2201
+ 2. Match headings, subheadings, and paragraph styles exactly.
2202
+ 3. If no headings exist in the document, do not include them in the response.
2203
+
2204
+ **Formatting and Accuracy**:
2205
+ - Ensure responses are properly formatted and free of errors.
2206
+ - Respond in the same language as the query.
2207
+ - Provide **accurate source links** for all TrustBuilders® mentioned in a separate section.
2208
+
2209
+ **Avoid**:
2210
+ - Flowery language or AI-specific phrases.
2211
+ - Isolated facts—ensure logical connections between ideas to maintain flow and thematic consistency.
2212
+ - Repetition or mechanical structures.
2213
+
2214
  """
2215
  # base_instructions = """
2216
  # **General Guidelines**:
 
2256
  " Use the following structure:"
2257
  " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2258
  " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2259
+ "The final output must not include AI jargons. *With every paragraph give a active language creative headline that summarises the content give sub-headlines with each paragraph like example headline: Drive,empower use similar words but no driving, empowering etc *. Avoid mentioning trustbucket names."
2260
  "MOST IMPORTANT RULE. IN EVERY PARAGRAPH Strengthen the connections between sections to ensure smoother flow and SHOULD BE DEEPLY INTERCONNECTED WITH EACH OTHER 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."
2261
  )
2262