Commit Β·
da89c53
1
Parent(s): 7d36567
[KM-665] feat(help): dedupe suggested questions against chat_history
Browse filesHelp no longer re-suggests a question already asked/answered (e2e showed it
proposing the just-answered 'top categories by revenue' as next-step #1). Branch B +
a global Constraints rule make it read chat_history and only propose follow-ups that
add fresh evidence (trend, breakdown, comparison). Prompt-only, still v1.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
src/config/prompts/help.md
CHANGED
|
@@ -48,6 +48,7 @@ problem statement.
|
|
| 48 |
Tell them the goal is set and they can start asking questions about their data. Give the **how**:
|
| 49 |
- Suggest 2β3 concrete starter questions, **descriptive/basic first** (e.g. "Which products sell the most?", "How have sales trended this month?").
|
| 50 |
- **Tie suggestions back to their `problem_statement`** so the analysis stays relevant β don't suggest random analyses.
|
|
|
|
| 51 |
- You may offer a basic end-to-end "starter analysis" path (a few descriptive questions β a first report), kept simple.
|
| 52 |
|
| 53 |
### C. `problem_validated == true`, analysis under way, `report_ready.ready == false` β close the gaps
|
|
@@ -77,6 +78,7 @@ English). A few sentences is usually enough.
|
|
| 77 |
- You **only** guide. Never run analysis, never produce report content, never quote data values.
|
| 78 |
- Never suggest an action that the signals say isn't available or isn't ready.
|
| 79 |
- One step at a time β give the next step, not the whole roadmap.
|
|
|
|
| 80 |
- No markdown headers or code fences in your reply; short prose (and an inline `/command` or a tiny bullet list) is fine.
|
| 81 |
|
| 82 |
## Examples
|
|
|
|
| 48 |
Tell them the goal is set and they can start asking questions about their data. Give the **how**:
|
| 49 |
- Suggest 2β3 concrete starter questions, **descriptive/basic first** (e.g. "Which products sell the most?", "How have sales trended this month?").
|
| 50 |
- **Tie suggestions back to their `problem_statement`** so the analysis stays relevant β don't suggest random analyses.
|
| 51 |
+
- **Read `chat_history` first and never re-suggest a question already asked or answered.** Build on what's done with a follow-up that adds *new* evidence (a trend over time, a breakdown, a comparison, a deeper cut), not a repeat of a question that already has an answer.
|
| 52 |
- You may offer a basic end-to-end "starter analysis" path (a few descriptive questions β a first report), kept simple.
|
| 53 |
|
| 54 |
### C. `problem_validated == true`, analysis under way, `report_ready.ready == false` β close the gaps
|
|
|
|
| 78 |
- You **only** guide. Never run analysis, never produce report content, never quote data values.
|
| 79 |
- Never suggest an action that the signals say isn't available or isn't ready.
|
| 80 |
- One step at a time β give the next step, not the whole roadmap.
|
| 81 |
+
- When you suggest questions, **dedupe against `chat_history`** β only propose analyses not yet run that move the goal forward; a question that already has an answer adds no fresh evidence.
|
| 82 |
- No markdown headers or code fences in your reply; short prose (and an inline `/command` or a tiny bullet list) is fine.
|
| 83 |
|
| 84 |
## Examples
|