feat: local on-device LLMs + task extraction from transcripts#1
Merged
Conversation
Adds DeepSeek, Qwen, Google Gemma, and Mistral as downloadable on-device GGUF models (via llama.cpp) alongside the existing voice models, plus a "Tasks" feature that extracts a structured task list from a transcript in the History view. This turns voice notes into actionable to-do items fully offline, with no API keys. - New ModelKind discriminator so LLM models coexist with voice models without affecting the transcription model selector - LlmManager mirrors TranscriptionManager (lazy load, idle-unload); output is constrained to JSON via a GBNF grammar derived from the task schema - Models download directly from Hugging Face with pinned SHA256 - Tasks settings panel (model + prompt), generation from History, and persistence in the history DB Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before Submitting This PR
Please confirm you have done the following:
If this is a feature or change that was previously closed/rejected:
Human Written Description
TODO: author to fill in.
Related Issues/Discussions
Fixes #
Discussion:
Community Feedback
Not yet gathered.
What this PR does
Adds four open-weight, on-device LLMs — DeepSeek (R1-Distill), Qwen 2.5, Google Gemma 2, and Mistral — as downloadable GGUF models that run fully offline via llama.cpp, alongside the existing voice models. On top of that, a new "Tasks" feature extracts a structured task list (title / description / priority) from any transcript in the History view, with no API keys and no network at inference time.
Backend
ModelKind { Transcription, Llm }so LLM models share the download/verify/storage machinery but never appear in the voice model selector.LlmManagermirrorsTranscriptionManager(lazy load, idle-unload, panic-safe). Uses the GGUF's embedded chat template, strips DeepSeek-R1<think>blocks, and constrains output to valid JSON with a GBNF grammar derived from the task schema.tasks_*settings, task-prompt CRUD commands, and atasks_jsonhistory-DB column (append-only migration) so generated tasks persist.Frontend
ModelCard+ prompt editor), an enable toggle, auseLlmModelshook, and aTaskListPanelwith generate/regenerate, priority badges, and copy.Testing
cargo checkclean (0 errors/warnings from new code);cargo test tasks::→ 4/4 pass (JSON/<think>/bare-array/empty parsing)tsc --noEmitclean;eslint src/...clean; Prettier appliedCXX=/usr/bin/clang++ CC=/usr/bin/clang(and withoutCMAKE_POLICY_VERSION_MINIMUM). CI/tauri-action uses the standard toolchain, so this should be fine there.Translations
Only
en/translation.jsonhas the ~37 new keys; the other 19 locales fall back to English at runtime.check:translationswill report them missing until translators add them (per CONTRIBUTING_TRANSLATIONS.md).Screenshots/Videos (if applicable)
AI Assistance
If AI was used:
🤖 Generated with Claude Code