You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add follow-up suggestion icon button after successful queries
Add a lightbulb icon to message footer that populates the chat input
with an AI-generated follow-up suggestion on click. Uses the cheapest
'ui' LLM spec for efficient generation.
- Add FollowUpSuggestion model in models.py
- Add suggest_followup() to Coordinator with llm_spec='ui'
- Add follow_up_suggestions.jinja2 extending Actor/main.jinja2
- Add lightbulb icon to footer_actions (fallback to footer_objects)
- Add follow_up_suggestions settings toggle
- 14 tests (10 UI + 4 coordinator) + docs
Depends on panel-extensions/panel-material-ui#605 for footer_actions.
Copy file name to clipboardExpand all lines: docs/configuration/ui.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,19 @@ ui = lmai.ExplorerUI(
78
78
79
79
1. Tuples of (Material icon name, button text)
80
80
81
+
### Follow-up suggestions
82
+
83
+
After each successful query, a lightbulb icon appears in the message footer. Clicking it populates the chat input with an AI-generated follow-up suggestion that references actual column names from the data.
84
+
85
+
```py title="Disable follow-up suggestions"
86
+
ui = lmai.ExplorerUI(
87
+
data='penguins.csv',
88
+
follow_up_suggestions=False
89
+
)
90
+
```
91
+
92
+
Users can also toggle this at runtime via **Settings > Follow-Up Suggestions**.
93
+
81
94
## Advanced parameters
82
95
83
96
### Enable chat logging
@@ -203,6 +216,7 @@ Quick reference:
203
216
|`notebook_preamble`| str | Export header |
204
217
|`provider_choices`| dict | LLM providers shown in Settings |
205
218
|`source_controls`| list | Source control components for data |
219
+
|`follow_up_suggestions`| bool | AI follow-up suggestion icon after queries (default: True) |
Copy file name to clipboardExpand all lines: docs/getting_started/navigating_the_ui.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,8 @@ Use **Settings** in the left sidebar to configure analysis behavior:
110
110
111
111
**Validation Step** — AI validates results for correctness (enabled by default)
112
112
113
+
**Follow-Up Suggestions** — After each successful query, a lightbulb icon appears in the message footer. Click it to populate the chat input with an AI-generated follow-up question. Toggle off in Settings if not needed.
114
+
113
115
**Code Execution** — If enabled by administrator, controls how visualizations are generated. See [Code Execution for Visualizations](using_lumen_ai.md#code-execution-for-visualizations) for security implications.
114
116
115
117
**LLM Configuration** — Choose and configure your language model
0 commit comments