feat(ocr): per-sender specialized Kurrent models with automatic active-learning retraining #263

Merged
marcel merged 32 commits from feat/issue-253-sender-models into main 2026-04-18 12:30:57 +02:00
3 changed files with 18 additions and 30 deletions
Showing only changes of commit 0c2175aa07 - Show all commits

View File

@@ -1,27 +1,15 @@
<script lang="ts">
import TrainingHistory from './TrainingHistory.svelte';
import { m } from '$lib/paraglide/messages.js';
interface Run {
id: string;
personId?: string;
status: 'RUNNING' | 'DONE' | 'FAILED' | 'QUEUED';
blockCount: number;
documentCount: number;
modelName: string;
errorMessage?: string;
triggeredBy?: string;
createdAt: string;
completedAt?: string;
}
import type { TrainingRun } from '$lib/types/training.js';
interface TrainingInfo {
availableBlocks?: number;
totalOcrBlocks?: number;
availableDocuments?: number;
ocrServiceAvailable?: boolean;
lastRun?: Run | null;
runs?: Run[];
lastRun?: TrainingRun | null;
runs?: TrainingRun[];
personNames?: Record<string, string>;
}

View File

@@ -1,22 +1,9 @@
<script lang="ts">
import { m } from '$lib/paraglide/messages.js';
interface Run {
id: string;
status: 'QUEUED' | 'RUNNING' | 'DONE' | 'FAILED';
blockCount: number;
documentCount: number;
modelName: string;
errorMessage?: string;
triggeredBy?: string;
createdAt: string;
completedAt?: string;
cer?: number;
personId?: string;
}
import type { TrainingRun } from '$lib/types/training.js';
interface Props {
runs: Run[];
runs: TrainingRun[];
personNames?: Record<string, string>;
}

View File

@@ -0,0 +1,13 @@
export interface TrainingRun {
id: string;
status: 'QUEUED' | 'RUNNING' | 'DONE' | 'FAILED';
personId?: string;
blockCount: number;
documentCount: number;
modelName: string;
errorMessage?: string;
triggeredBy?: string;
createdAt: string;
completedAt?: string;
cer?: number;
}