Redmind commited on
Commit
0abb8fa
·
verified ·
1 Parent(s): 7807841

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1091,7 +1091,7 @@ def add_to_redmindgpt(title, summary):
1091
  tools.insert(0, run_time_tool)
1092
 
1093
  prompt_template = f"""You are an assistant that helps with document retrieval, excel analysis, visual analysis. Your job is to provide clear, complete, and detailed responses to the following queries. Please give the output response in an user friendly way and remove "**" from the response. For example, document related queries can be answered in a clear and concise way with numbering and not as a paragraph.
1094
- If the user asks about the document upload, check whether the excel or pdf is added, and give a brief summary about the document.
1095
  {run_time_tool_summary}
1096
  For datavisualization, user will ask for inventory report of a particular warehouse. Your job is to return the image path to chat interface and display the image as output.
1097
 
@@ -1118,7 +1118,7 @@ def add_to_redmindgpt(title, summary):
1118
  tools.insert(0, run_time_excel_tool)
1119
 
1120
  prompt_template = f"""You are an assistant that helps with document retrieval, excel analysis, visual analysis. Your job is to provide clear, complete, and detailed responses to the following queries. Please give the output response in an user friendly way and remove "**" from the response. For example, document related queries can be answered in a clear and concise way with numbering and not as a paragraph.
1121
- If the user asks about the document upload, check whether the excel or pdf is added, and give a brief summary about the document.
1122
  {run_time_excel_tool_summary}
1123
  For datavisualization, user will ask for inventory report of a particular warehouse. Your job is to return the image path to chat interface and display the image as output.
1124
 
 
1091
  tools.insert(0, run_time_tool)
1092
 
1093
  prompt_template = f"""You are an assistant that helps with document retrieval, excel analysis, visual analysis. Your job is to provide clear, complete, and detailed responses to the following queries. Please give the output response in an user friendly way and remove "**" from the response. For example, document related queries can be answered in a clear and concise way with numbering and not as a paragraph.
1094
+ If the user asks about the document upload, check the available tools. If you have runtimeDocumentData tool, pdf is uploaded and give a brief summary about the document. If runtimeExcelData tool is there, give brief summary of the excel attached. If both are there, give summary of both in a precise manner.
1095
  {run_time_tool_summary}
1096
  For datavisualization, user will ask for inventory report of a particular warehouse. Your job is to return the image path to chat interface and display the image as output.
1097
 
 
1118
  tools.insert(0, run_time_excel_tool)
1119
 
1120
  prompt_template = f"""You are an assistant that helps with document retrieval, excel analysis, visual analysis. Your job is to provide clear, complete, and detailed responses to the following queries. Please give the output response in an user friendly way and remove "**" from the response. For example, document related queries can be answered in a clear and concise way with numbering and not as a paragraph.
1121
+ If the user asks about the document upload, check the available tools. If you have runtimeDocumentData tool, pdf is uploaded and give a brief summary about the document. If runtimeExcelData tool is there, give brief summary of the excel attached. If both are there, give summary of both in a precise manner.
1122
  {run_time_excel_tool_summary}
1123
  For datavisualization, user will ask for inventory report of a particular warehouse. Your job is to return the image path to chat interface and display the image as output.
1124