Commit Graph

7 Commits

Author SHA1 Message Date
Brummel fa585c4316 Add section on suppressed tokens for digits 2026-04-28 00:56:05 +02:00
Brummel 3a656bd2a9 Refactor LLM API key handling for Ollama
The LLM client now conditionally adds the `Authorization` header only
when an API key is provided. The `llm_configured` check is updated to
reflect that an API key is not strictly required for Ollama-style
endpoints. A new integration test verifies the functionality against an
Ollama-compatible endpoint without an API key.
2026-04-16 14:19:43 +02:00
Brummel b2b1368902 Add admin-only case reset functionality
Introduce a new "reset" action for bulk operations and a dedicated
endpoint for individual case resets. These features allow administrators
to revert a case to its raw audio state by deleting derived artifacts
like transcripts, analysis input, and documents. The functionality also
includes renaming `.m4a.failed` files back to `.m4a` to re-trigger
transcription.

This commit also:
- Adds a `reset_case_artefacts` helper function to `case_actions.rs`.
- Implements the `handle_reset_case` endpoint.
- Adds the "Reset" button to the UI for administrators.
- Includes unit and integration tests to verify the new functionality
  and access control.
2026-04-16 11:27:55 +02:00
Brummel 83d3a52df7 Add hotwords form field to whisper service
Hotwords give per-request logit boosts to specified terms throughout
decoding (not just as prefix context like initial_prompt). Measured on
a cardiology dictation: 8/8 correct fachbegriffe vs. 3/8 without.
2026-04-14 00:22:36 +02:00
Brummel 8a19fc370d Add deploy script for whisper service
Syncs whisper/ to a remote host via rsync, rebuilds the image in place,
and polls /health until the model is loaded or a 5 minute timeout hits.
2026-04-13 22:31:52 +02:00
Brummel 5f961bd9b6 Bump faster-whisper to 1.2.1 for large-v3-turbo support
The 1.0.x line predates the turbo model; pin to latest stable (1.2.1).
2026-04-13 22:27:47 +02:00
Brummel 6e6cfd77b7 Add custom faster-whisper service with anti-hallucination params
Off-the-shelf Whisper wrappers hardcode faster-whisper defaults that
cause cascading hallucinations on real dictations (2/13 runs against
ahmetoner v1.9.1). This thin FastAPI service mirrors the /asr interface
but fixes condition_on_previous_text=False, temperature=0.0, and
vad_filter=True so the Axum server can switch by changing WHISPER_URL.
2026-04-13 19:45:52 +02:00