NL filter wired to your LLM
Live in demo 51-ai-assistant.
When
"show last quarter > $10k sorted by date" - one natural-language input drives setFilter + setSort.
How
Key API surface:
api.ai.filter(query)setAIProvider(adapter)
See the demo source for the full implementation; this recipe pins the pattern + the surface so you can copy-paste it confidently. The doc page that explains the underlying feature in depth is linked from the recipes index.
See also
- Demo 51-ai-assistant source
- Demo 51-ai-assistant prompt sidecar - drop into an LLM context window
- Recipes index
Related articles
- Excel-Style Filtering for Your Svelte Data Grid - Per-column filter menus, a filter row, global search, and server-side filtering - all wired through a single columnFilteringFeature in SvGrid.
- Saved Views - Persist Grid Layout and Filters - Give users named, switchable snapshots of column order, sorting, filters, and grouping - persisted to localStorage or a server adapter - using SvGrid's createNamedViews API.
- A Right-Click Context Menu for Your Svelte Data Grid - Build a right-click context menu that wires row actions, handles multi-row selection, and stays out of the way of SvGrid's own event handling.