Redmind commited on
Commit
819dc57
·
verified ·
1 Parent(s): 3421909

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +6 -3
chat.py CHANGED
@@ -162,7 +162,7 @@ class ChatHandler:
162
  If the user requested comparison between two or more years or the user asks for the data for all years, data should be shown for all the years with month as first column and the years like 2020, 2021 etc as the adjacent columns.
163
  Do not show everything in the same column. (For example, if the user requested from 2020 to 2024, then display the output table with the columns [Month, Material value in 2020, Material value in 2020, Material value in 2021, Material value in 2022, Material value in 2023, Material value in 2024]) so that the records will be displayed for all the months from Jaunary to December across the years.
164
  If there is any error while executing the user question, kindly display the error message as 'As you know I am still learning at this moment I am not able to respond to your question.\nThank you for your patience!
165
- display the response as a combination of response summary and the response data in the form of table with solid line as border on all sides and do not use "-","|","+" in the border. """,
166
  },
167
  ]
168
 
@@ -192,7 +192,7 @@ class ChatHandler:
192
 
193
  Make sure your answers are aligned with the uploaded document, depending on the context of the query.
194
  display the response as mentioned in the tool description.
195
- include the table data in the Final answer even if there is a single value.
196
  Do not display the first line and the last line of the table as '''
197
  Tools available to you:
198
  {tools}
@@ -270,11 +270,14 @@ def create_visualization_csv(visual_query):
270
  #import matplotlib
271
  #matplotlib.use('TkAgg') # Replace with 'QtAgg' or 'MacOSX' if on macOS
272
 
273
- visual_query = visual_query + """ use proper axis scale and mention axis values properly.
 
274
  Do not miss any values.
275
  Mention only month name in date axis and not the numbers or the date.
276
  Do not place legend in the middle of the chart.
 
277
  Place the legend in such a way that the plotted chart is not hidden.
 
278
  Return the image path only after plotting all the values."""
279
 
280
 
 
162
  If the user requested comparison between two or more years or the user asks for the data for all years, data should be shown for all the years with month as first column and the years like 2020, 2021 etc as the adjacent columns.
163
  Do not show everything in the same column. (For example, if the user requested from 2020 to 2024, then display the output table with the columns [Month, Material value in 2020, Material value in 2020, Material value in 2021, Material value in 2022, Material value in 2023, Material value in 2024]) so that the records will be displayed for all the months from Jaunary to December across the years.
164
  If there is any error while executing the user question, kindly display the error message as 'As you know I am still learning at this moment I am not able to respond to your question.\nThank you for your patience!
165
+ display the response as a combination of response summary and the response data in the form of table with solid line as border on all sides and do not use '-' or '|' or '+' in the border. """,
166
  },
167
  ]
168
 
 
192
 
193
  Make sure your answers are aligned with the uploaded document, depending on the context of the query.
194
  display the response as mentioned in the tool description.
195
+ include the table data in the Final answer if there are more than one value.
196
  Do not display the first line and the last line of the table as '''
197
  Tools available to you:
198
  {tools}
 
270
  #import matplotlib
271
  #matplotlib.use('TkAgg') # Replace with 'QtAgg' or 'MacOSX' if on macOS
272
 
273
+ visual_query = visual_query + """ use proper axis scale so that all values can be plotted and shown properly.
274
+ mention axis values properly.
275
  Do not miss any values.
276
  Mention only month name in date axis and not the numbers or the date.
277
  Do not place legend in the middle of the chart.
278
+ Increase the size of chart to make sure than the values are not trucated and the legend text is not truncated.
279
  Place the legend in such a way that the plotted chart is not hidden.
280
+
281
  Return the image path only after plotting all the values."""
282
 
283