Wajahat698 commited on
Commit
7674a90
·
verified ·
1 Parent(s): 26b1464

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -346,7 +346,7 @@ prompt_message = f"""
346
  Strictly DO NOT generate imaginary/Creative content .
347
  When asking for trust builders it has tibe returned short/concised facts & figures as dot points.
348
  All the outputs should be in paragraph tags except heading .
349
- Always provide Accurate source clickable links.
350
  Respond directly to the query.
351
  - DO NOT include column names like "Stability Trust," "Development Trust," "Relationship Trust," "Competence Trust," "Benefit Trust," or "Vision Trust" in tables or anywhere in the response.
352
 
@@ -584,7 +584,7 @@ if prompt :
584
  try:
585
  # Generate response using the agent executor
586
  output = agent_executor.invoke({
587
- "input": f" {prompt} . Always INCLUDE & Be specific with numbers, dates, people, and [$ dollar amounts] (include them).* Search and provide Accurate 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. ",
588
  "chat_history": st.session_state.chat_history
589
  })
590
  full_response = output["output"]
 
346
  Strictly DO NOT generate imaginary/Creative content .
347
  When asking for trust builders it has tibe returned short/concised facts & figures as dot points.
348
  All the outputs should be in paragraph tags except heading .
349
+ Always provide clickable source links.
350
  Respond directly to the query.
351
  - DO NOT include column names like "Stability Trust," "Development Trust," "Relationship Trust," "Competence Trust," "Benefit Trust," or "Vision Trust" in tables or anywhere in the response.
352
 
 
584
  try:
585
  # Generate response using the agent executor
586
  output = agent_executor.invoke({
587
+ "input": f" {prompt} . Always INCLUDE & Be specific with numbers, dates, people, and [$ dollar amounts] (include them).* Search and provide accurate source references links. 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. ",
588
  "chat_history": st.session_state.chat_history
589
  })
590
  full_response = output["output"]