Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2233,8 +2233,10 @@ def handle_prompt(prompt):
|
|
| 2233 |
|
| 2234 |
**General Guidelines**:
|
| 2235 |
- Use **clear, professional language** without exaggerated expressions or AI jargon (e.g., "beacon," "realm," "exemplifies").
|
| 2236 |
-
- Always include
|
| 2237 |
-
- Prioritize **accuracy and verification**
|
|
|
|
|
|
|
| 2238 |
|
| 2239 |
**Adhere to Uploaded Document's Style**:
|
| 2240 |
1. Use the document's tone, structure, and formatting as a guide.
|
|
@@ -2244,13 +2246,14 @@ def handle_prompt(prompt):
|
|
| 2244 |
**Formatting and Accuracy**:
|
| 2245 |
- Ensure responses are properly formatted and free of errors.
|
| 2246 |
- Respond in the same language as the query.
|
| 2247 |
-
- Provide **accurate source links** for all TrustBuilders® mentioned.
|
| 2248 |
|
| 2249 |
**Avoid**:
|
| 2250 |
- Flowery language or AI-specific phrases.
|
| 2251 |
-
- Isolated facts—
|
|
|
|
| 2252 |
|
| 2253 |
-
|
| 2254 |
|
| 2255 |
|
| 2256 |
|
|
@@ -2258,25 +2261,22 @@ def handle_prompt(prompt):
|
|
| 2258 |
# Check if user request includes blog, article, or newsletter
|
| 2259 |
if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
|
| 2260 |
appended_instructions = (
|
| 2261 |
-
|
| 2262 |
-
|
| 2263 |
-
|
| 2264 |
-
|
| 2265 |
-
|
| 2266 |
-
|
| 2267 |
-
|
| 2268 |
-
|
| 2269 |
-
|
| 2270 |
-
|
| 2271 |
-
|
| 2272 |
-
|
| 2273 |
-
|
| 2274 |
-
|
| 2275 |
-
|
| 2276 |
-
|
| 2277 |
-
"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."
|
| 2278 |
-
"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."
|
| 2279 |
-
)
|
| 2280 |
else:
|
| 2281 |
appended_instructions = ""
|
| 2282 |
final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
|
|
|
|
| 2233 |
|
| 2234 |
**General Guidelines**:
|
| 2235 |
- Use **clear, professional language** without exaggerated expressions or AI jargon (e.g., "beacon," "realm," "exemplifies").
|
| 2236 |
+
- Always include **specific numbers, names, dollar amounts, programs, awards, and actions** when identifying TrustBuilders®.
|
| 2237 |
+
- Prioritize **accuracy and verification**:
|
| 2238 |
+
- Use the uploaded document or knowledge base as the primary source.
|
| 2239 |
+
- Validate references via Google search and avoid placeholders or vague sources.
|
| 2240 |
|
| 2241 |
**Adhere to Uploaded Document's Style**:
|
| 2242 |
1. Use the document's tone, structure, and formatting as a guide.
|
|
|
|
| 2246 |
**Formatting and Accuracy**:
|
| 2247 |
- Ensure responses are properly formatted and free of errors.
|
| 2248 |
- Respond in the same language as the query.
|
| 2249 |
+
- Provide **accurate source links** for all TrustBuilders® mentioned in a separate section.
|
| 2250 |
|
| 2251 |
**Avoid**:
|
| 2252 |
- Flowery language or AI-specific phrases.
|
| 2253 |
+
- Isolated facts—ensure logical connections between ideas to maintain flow and thematic consistency.
|
| 2254 |
+
- Repetition or mechanical structures.
|
| 2255 |
|
| 2256 |
+
"""
|
| 2257 |
|
| 2258 |
|
| 2259 |
|
|
|
|
| 2261 |
# Check if user request includes blog, article, or newsletter
|
| 2262 |
if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
|
| 2263 |
appended_instructions = (
|
| 2264 |
+
"Craft a flawless, engaging, and fluid compelling copy using *non-flowery language* that reads as though written by a professional copywriter with 25 years of experience. "
|
| 2265 |
+
"Avoid AI jargon, vague phrases, or formal language. Do not mention trustbucket names in the headings or content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
|
| 2266 |
+
"1. **Deep Interconnected Structure**: Ensure every section builds upon the previous one, with logical transitions that reinforce the overall theme. Each idea must flow naturally into the next, creating a narrative that feels cohesive and unified rather than fragmented. "
|
| 2267 |
+
"2. **Seamless Integration of TrustBuilders®**: Incorporate TrustBuilders® naturally into the text. Avoid listing them explicitly or presenting them as isolated facts. Instead, weave them into the narrative to support key points and enhance the overall message. "
|
| 2268 |
+
"3. **Relatable, Human Tone**: Write in a conversational and approachable tone that engages the reader. Use active voice consistently and avoid repetitive phrasing or overly technical language. Ensure the tone is audience-focused, addressing their needs and challenges directly. "
|
| 2269 |
+
"4. **Audience-Centric Engagement**: Tailor the content to resonate with the reader’s goals and experiences. Use relatable examples and vivid imagery to create emotional connections. Ensure actionable insights and relevance in every paragraph to make the audience feel seen and valued. "
|
| 2270 |
+
"5. **Enhanced Storytelling**: Use storytelling techniques to maintain momentum and engagement throughout the content. Begin with a compelling hook, use transitions to maintain a cohesive flow, and conclude with a strong call-to-action that inspires action. "
|
| 2271 |
+
"6. **Purpose-Driven Narrative**: Ensure every paragraph serves the overall purpose of the content—whether to inform, persuade, or inspire. Reinforce the key message consistently while avoiding unnecessary repetition. "
|
| 2272 |
+
"7. **Polished, Professional Presentation**: The final output should be refined, professional, and suitable for publication. Pay attention to formatting, style, and design to ensure clarity and impact. "
|
| 2273 |
+
"8. **Creative Headline and Subheadings**: Provide engaging headlines that summarize each paragraph and avoid terms like 'drive' or 'empower.' Headlines should align with the narrative and maintain a professional tone. "
|
| 2274 |
+
"9. **No Source Links in Content**: Do not include source links in the main body. Instead, provide a separate 'List of TrustBuilders Used' section at the end with accurate source links. "
|
| 2275 |
+
"10. **Heuristics and Creative Techniques**: "
|
| 2276 |
+
" - List heuristics in a footnote-style small heading (e.g., social proof, authority, commitment). "
|
| 2277 |
+
" - Mention creative techniques (e.g., storytelling, vivid imagery, call-to-action) without additional explanation. "
|
| 2278 |
+
"MOST IMPORTANT RULE: Ensure every paragraph is interconnected, creating a seamless narrative that reads like a unified story rather than independent sections. Strengthen transitions between paragraphs to maintain thematic consistency and flow, holding the reader's attention throughout."
|
| 2279 |
+
)
|
|
|
|
|
|
|
|
|
|
| 2280 |
else:
|
| 2281 |
appended_instructions = ""
|
| 2282 |
final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
|