Wajahat698 commited on
Commit
ac29500
·
verified ·
1 Parent(s): 82c756d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -4
app.py CHANGED
@@ -2051,10 +2051,29 @@ def handle_prompt(prompt):
2051
  add_dot_typing_animation()
2052
  display_typing_indicator()
2053
  cleaned_text = ""
2054
- base_instructions = (
2055
- "When asked for key trust drivers or top trustbuilders or brand positioning statement search in knowledgebase give as-is wording. for other quries also like mentioning food for the hungry or fh Search google Give valid verifiable sources links always *Be over specific with $ amounts awards, people and programs*."
2056
- "Strictly dont use trustbucket names in copy headings and content avoid it"
2057
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2058
 
2059
  # Check if user request includes blog, article, or newsletter
2060
  if any(keyword in prompt.lower() for keyword in ["blog", "article","annual report","report", "newsletter"]):
 
2051
  add_dot_typing_animation()
2052
  display_typing_indicator()
2053
  cleaned_text = ""
2054
+ base_instructions = """
2055
+ Please follow these instructions:
2056
+
2057
+ 1. **Exact Wording**:
2058
+ - When asked for **key trust drivers**, **top trust builders**, or **brand positioning statements**, search the **provided knowledgebase** and give the exact wording as-is, maintaining the original formatting.
2059
+
2060
+ 2. **External Queries**:
2061
+ - For other queries, such as those mentioning **Food for the Hungry** or **FH**, search the internet using reliable sources.
2062
+ - Always provide valid, verifiable source links.
2063
+ - Be overly specific with details like dollar amounts, awards, people's names, and program titles.
2064
+
2065
+ 3. **Content Guidelines**:
2066
+ - Do **not** use **trust bucket names** (e.g., Stability Trust, Benefit Trust) in headings or content. Strictly avoid mentioning them.
2067
+
2068
+ 4. **Formatting**:
2069
+ - Preserve the formatting from the knowledgebase in your responses.
2070
+ - Use clear headings and bullet points where appropriate.
2071
+
2072
+ 5. **Tone and Style**:
2073
+ - Maintain a professional and informative tone.
2074
+ - Ensure clarity and accuracy in all responses.
2075
+ """
2076
+
2077
 
2078
  # Check if user request includes blog, article, or newsletter
2079
  if any(keyword in prompt.lower() for keyword in ["blog", "article","annual report","report", "newsletter"]):