Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -280,7 +280,8 @@ def google_search_tool(query: str):
|
|
| 280 |
tools = [knowledge_base_tool, google_search_tool]
|
| 281 |
|
| 282 |
# Create the prompt template
|
| 283 |
-
prompt_message = f"""
|
|
|
|
| 284 |
**ROLE:** Act as expert content writer .
|
| 285 |
|
| 286 |
**TASK:** Generate meaningful content for user based upon user query: [{input}] .
|
|
@@ -510,7 +511,7 @@ if prompt :
|
|
| 510 |
try:
|
| 511 |
# Generate response using the agent executor
|
| 512 |
output = agent_executor.invoke({
|
| 513 |
-
"input": f" {prompt} . Always be specific with numbers, dates, people, and $ dollar amounts examples (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.
|
| 514 |
"chat_history": st.session_state.chat_history
|
| 515 |
})
|
| 516 |
full_response = output["output"]
|
|
|
|
| 280 |
tools = [knowledge_base_tool, google_search_tool]
|
| 281 |
|
| 282 |
# Create the prompt template
|
| 283 |
+
prompt_message = f""" * Do not mention any name of trust bucket [ stability, development , relationship , competence , benefit , vision] in your response .
|
| 284 |
+
|
| 285 |
**ROLE:** Act as expert content writer .
|
| 286 |
|
| 287 |
**TASK:** Generate meaningful content for user based upon user query: [{input}] .
|
|
|
|
| 511 |
try:
|
| 512 |
# Generate response using the agent executor
|
| 513 |
output = agent_executor.invoke({
|
| 514 |
+
"input": f" {prompt} . Always be specific with numbers, dates, people, and $ dollar amounts examples (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 : do mention these 3 in sub headings with example related to the report: example proof points , Heuristics used , creative techniques used. DO NOT USE COLONS in the sub-headers. DONOT WRITE CONCLUSION (note all the outputs containing dollars$ should be in a spaced format or shorten that figure so text and figure is readable).",
|
| 515 |
"chat_history": st.session_state.chat_history
|
| 516 |
})
|
| 517 |
full_response = output["output"]
|