Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -291,7 +291,14 @@ prompt_message = f"""
|
|
| 291 |
Tone should not be fulffy or flowery at all .
|
| 292 |
|
| 293 |
**Restrictions:** Strictly DO NOT mention "Conclusion" in your response .
|
| 294 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
Strictly DO NOT generate imaginary/Creative content .
|
| 296 |
When asking for trust builders it has tibe returned short/concised facts & figures as dot points.
|
| 297 |
All the outputs should be in paragraph tags except heading .
|
|
@@ -522,7 +529,7 @@ if prompt :
|
|
| 522 |
try:
|
| 523 |
# Generate response using the agent executor
|
| 524 |
output = agent_executor.invoke({
|
| 525 |
-
"input": f" {prompt} . Always INCLUDE & Be specific with numbers, dates, people, and [$ dollar amounts] (include them).* Search and provide sources for all the results. Respond directly to the query without any introductory phrases or meta-commentary. Your response should be natural and read as if it's addressing the query immediately, without any preamble. Use creative techniques like metaphors, analogies, and juxtaposition to enhance the content. Interconnect ideas smoothly to create meaning for the reader.Always write in nicely flowing text and create an active language headline. Avoid using colons in the sub-headings and incorporate a creative technique in every headline and sub-header. Interweave the examples contextually to create meaning for donors and beneficiaries. When asked about to write annual report ONLY THEN write report in 2-3 pargagraphs(with no sub-headings) and end then : do mention these 3 in sub headings with example related to the report: -example proof points , -Heuristics used , -creative techniques used (DO-NOT MENTION THIS WHEN ASKED TO WRITE EMAIL or news letter). When asked about email news letter or news letter it should be in proper email format . DO NOT USE COLONS in the sub-headers Otherwise ignore it . DONOT WRITE CONCLUSION in the end related to given prompt. remove all tags present with your response so response format is great",
|
| 526 |
"chat_history": st.session_state.chat_history
|
| 527 |
})
|
| 528 |
full_response = output["output"]
|
|
|
|
| 291 |
Tone should not be fulffy or flowery at all .
|
| 292 |
|
| 293 |
**Restrictions:** Strictly DO NOT mention "Conclusion" in your response .
|
| 294 |
+
Prohibited Words: Strictly avoid using the following words and any of their combinations, especially when paired with "trust":
|
| 295 |
+
"Development"
|
| 296 |
+
"Trust"
|
| 297 |
+
"Stability"
|
| 298 |
+
"Competence"
|
| 299 |
+
"Vision"
|
| 300 |
+
"Benefit"
|
| 301 |
+
"Relationship".
|
| 302 |
Strictly DO NOT generate imaginary/Creative content .
|
| 303 |
When asking for trust builders it has tibe returned short/concised facts & figures as dot points.
|
| 304 |
All the outputs should be in paragraph tags except heading .
|
|
|
|
| 529 |
try:
|
| 530 |
# Generate response using the agent executor
|
| 531 |
output = agent_executor.invoke({
|
| 532 |
+
"input": f" {prompt} . Always INCLUDE & Be specific with numbers, dates, people, and [$ dollar amounts] (include them).* Search and provide sources for all the results. Respond directly to the query without any introductory phrases or meta-commentary. Your response should be natural and read as if it's addressing the query immediately, without any preamble. Use creative techniques like metaphors, analogies, and juxtaposition to enhance the content. Interconnect ideas smoothly to create meaning for the reader.Always write in nicely flowing text and create an active language headline. Avoid using colons in the sub-headings and incorporate a creative technique in every headline and sub-header. Interweave the examples contextually to create meaning for donors and beneficiaries. When asked about to write annual report ONLY THEN write report in 2-3 pargagraphs(with no sub-headings) and end then : do mention these 3 in sub headings with example related to the report: -example proof points , -Heuristics used , -creative techniques used (DO-NOT MENTION THIS WHEN ASKED TO WRITE EMAIL or news letter). When asked about email news letter or news letter it should be in proper email format . DO NOT USE COLONS in the sub-headers Otherwise ignore it . DONOT WRITE CONCLUSION in the end related to given prompt. remove all tags present with your response so response format is great. ",
|
| 533 |
"chat_history": st.session_state.chat_history
|
| 534 |
})
|
| 535 |
full_response = output["output"]
|