Add few-shot examples to intent prompt, reduce max tokens
Details
The 1B local model was ignoring the available actions list and inventing
its own intent IDs from the text content. Added three few-shot examples
(calendar event, task, and no-action) so the model sees the expected
output format with real intent IDs. Reduced MaxTokens to 384 and
temperature to 0.2 for tighter output. Bumps desktop to v1.41.5.
Rewrite intent classification prompt for small local models
Details
The previous prompt was ~1400 tokens with verbose slot listings, JSON
schema examples, and multiple rules — too much context for a 1B model.
The model was ignoring the actual content and picking random intents.
Rewrote to a compact format: one line per intent with just the ID,
description, and required slot names. Single-line JSON example. Reduced
MaxTokens from 1024 to 384 and temperature from 0.3 to 0.2 to keep
output tight. Added debug logging for raw AI responses. Bumps desktop
to v1.41.4.
Fix intent engine JSON parsing for noisy local LLM output
Details
The local llama-3.2-1b model appends extra text and BOM bytes (0xEF)
after the JSON response, causing JsonDocument.Parse to fail. Added
ExtractJsonObject() which finds the outermost balanced {} pair using
brace depth tracking, ignoring any trailing garbage. This makes intent
classification work reliably with local models that produce noisy output.
Bumps desktop to v1.41.3.
Fix intent tray sparkle button not appearing after enabling setting
Details
The IsEnabled property on IntentSuggestionTrayViewModel was a plain
computed getter with no PropertyChanged notification. When the user
toggled AiIntentEnabled or AiEnabled in settings, the sparkle button
binding never re-evaluated, keeping the button hidden. Added an
IntentSettingsChangedMessage broadcast from the settings change handlers
and subscribed in the tray VM to re-raise PropertyChanged for IsEnabled.
Bumps desktop to v1.41.2.
Add AI Intent Engine settings toggles to Settings UI
Details
Added the missing ToggleSwitch controls for AiIntentEnabled and
AiIntentAutoAnalyze in SettingsPanel.axaml. These properties existed in
the ViewModel but had no corresponding UI controls, making the intent
engine impossible to enable. The Intent Engine toggle is visible when AI
is enabled, and the Auto-Analyze toggle is visible when the Intent Engine
is enabled. Bumps desktop to v1.41.1.
Get notified about new releases