Fix prompt
Browse files
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
|
| 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 |
|