xiezhe22 commited on
Commit
d89f54b
·
1 Parent(s): df3f75b

Fix prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -277,7 +277,7 @@ def infer_chatts_stream(prompt: str, csv_file, use_default):
277
  for name, arr in zip(ts_names, ts_list):
278
  prefix += f"The {name} is of length {len(arr)}: <ts><ts/>\n"
279
 
280
- 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. If user has no format requirement, always output a step-by-step analysis about the time series attributes that mentioned in the question first, and then give a detailed result about the given question. Always remember to carefully double check the values before answer the results.<|im_end|><|im_start|>user\n{prefix}{clean_prompt}<|im_end|><|im_start|>assistant\n"
281
 
282
  print(f"[debug] {full_prompt}. {len(ts_list)=}, {[len(item) for item in ts_list]=}")
283
 
 
277
  for name, arr in zip(ts_names, ts_list):
278
  prefix += f"The {name} is of length {len(arr)}: <ts><ts/>\n"
279
 
280
+ 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 user has no format requirement, always output a step-by-step analysis about the time series attributes that mentioned in the question first, and then give a detailed result about the given question.<|im_end|><|im_start|>user\n{prefix}{clean_prompt}<|im_end|><|im_start|>assistant\n"
281
 
282
  print(f"[debug] {full_prompt}. {len(ts_list)=}, {[len(item) for item in ts_list]=}")
283