Chain-of-thought prompting guides an LLM through an explicit evaluation procedure before producing task outputs. For forecasting, it frames numerical sequences as natural-language tasks; for anomaly detection, it demonstrates how to evaluate each value. section 8.1.2 section 8.5.1
A practical implementation typically:
- Supplies the sequence and relevant statistics, such as the mean and quantile bounds. section 8.5
- Shows examples that map values to explicit labels and requires a machine-readable output format. section 8.5
- Processes long inputs in chunks and handles missing or malformed labels with fallback logic. section 8.5.1
Anomaly labels
Given bounds and values such as 900, 1800, 1000, 500, 1100, the prompt requests 0 for normal values and 1 for anomalies, producing 0,1,0,1,0. section 8.5

















