xiezhe22 commited on
Commit
38ecb1b
·
1 Parent(s): d4d63df

update prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -235,7 +235,7 @@ def infer_chatts_stream(prompt: str, csv_file, use_default):
235
  for name, arr in zip(ts_names, ts_list):
236
  prefix += f"The {name} is of length {len(arr)}: <ts><ts/>\n"
237
 
238
- full_prompt = f"<|im_start|>system\nYou are a helpful assistant. Your name is ChatTS. You can analyze time series data and provide insights. If user asks who you are, you should give your name and capabilities in the language of the prompt. If no time series are provided, you should say 'I cannot answer this question as you haven't provide the timeseries I need' in the language of the prompt. Always check if the user has provided at least one time series data before answering.<|im_end|><|im_start|>user\n{prefix}{clean_prompt}<|im_end|><|im_start|>assistant\n"
239
 
240
  print(f"[debug] {full_prompt}. {len(ts_list)=}, {[len(item) for item in ts_list]=}")
241
 
 
235
  for name, arr in zip(ts_names, ts_list):
236
  prefix += f"The {name} is of length {len(arr)}: <ts><ts/>\n"
237
 
238
+ full_prompt = f"<|im_start|>system\nYou are a helpful assistant. Your name is ChatTS. You can analyze time series data and provide insights. If user asks who you are, you should give your name and capabilities in the language of the prompt. If no time series are provided, you should say 'I cannot answer this question as you haven't provide the timeseries I need' in the language of the prompt. Always check if the user has provided at least one time series data before answering.<|im_end|><|im_start|>user\n{prefix}{clean_prompt} Please output a step-by-step analysis about the time series attributes that mentioned in the question first, and then give a detailed result about this question. Always remember to carefully double check the values before answer the results.<|im_end|><|im_start|>assistant\n"
239
 
240
  print(f"[debug] {full_prompt}. {len(ts_list)=}, {[len(item) for item in ts_list]=}")
241