From b298cc55d0826b7d8efdd0c7f837b91d4b835e69 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Wed, 4 Mar 2026 10:14:37 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Sidebar=20=E2=80=94=20OCR-Labeling=20ent?= =?UTF-8?q?fernt=20(nur=20im=20Lehrer=20Admin=20noetig)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OCR-Labeling ist bereits im Core Admin (macmini:3002/ai/ocr-pipeline) vorhanden und wird im Compliance Dashboard nicht benoetigt. Co-Authored-By: Claude Opus 4.6 --- admin-compliance/lib/module-registry.ts | 22 ----------- admin-compliance/lib/navigation.ts | 12 +----- admin-compliance/types/ai-modules.ts | 49 +------------------------ 3 files changed, 3 insertions(+), 80 deletions(-) diff --git a/admin-compliance/lib/module-registry.ts b/admin-compliance/lib/module-registry.ts index ac716ab..97c467f 100644 --- a/admin-compliance/lib/module-registry.ts +++ b/admin-compliance/lib/module-registry.ts @@ -256,28 +256,6 @@ export const MODULE_REGISTRY: BackendModule[] = [ }, priority: 'medium' }, - { - id: 'ocr-labeling', - name: 'OCR-Labeling', - description: 'Handschrift-Training und Label-Verwaltung', - category: 'ai', - backend: { - service: 'python-backend', - port: 8000, - basePath: '/api/ocr', - endpoints: [ - { path: '/samples', method: 'GET', description: 'Training-Samples' }, - { path: '/labels', method: 'GET', description: 'Label-Kategorien' }, - { path: '/train', method: 'POST', description: 'Training starten' }, - ] - }, - frontend: { - adminV2Page: '/ai/ocr-labeling', - oldAdminPage: '/admin/ocr-labeling', - status: 'not-connected' - }, - priority: 'medium' - }, { id: 'rag-management', name: 'RAG & Daten', diff --git a/admin-compliance/lib/navigation.ts b/admin-compliance/lib/navigation.ts index 13b602e..844f0ea 100644 --- a/admin-compliance/lib/navigation.ts +++ b/admin-compliance/lib/navigation.ts @@ -42,18 +42,8 @@ export const navigation: NavCategory[] = [ description: 'LLM, OCR, RAG & Machine Learning', modules: [ // ----------------------------------------------------------------------- - // KI-Daten-Pipeline: OCR -> Indexierung -> Suche + // KI-Daten-Pipeline: Indexierung -> Suche // ----------------------------------------------------------------------- - { - id: 'ocr-labeling', - name: 'OCR-Labeling', - href: '/ai/ocr-labeling', - description: 'Handschrift-Training & Labels', - purpose: 'Labeln Sie Handschrift-Samples fuer das Training von TrOCR-Modellen. Erstellen Sie Ground Truth Daten, die zur RAG Pipeline exportiert werden koennen.', - audience: ['Entwickler', 'Data Scientists', 'QA'], - oldAdminPath: '/admin/ocr-labeling', - subgroup: 'KI-Daten-Pipeline', - }, { id: 'rag-pipeline', name: 'RAG Pipeline', diff --git a/admin-compliance/types/ai-modules.ts b/admin-compliance/types/ai-modules.ts index c8220cd..4682e6c 100644 --- a/admin-compliance/types/ai-modules.ts +++ b/admin-compliance/types/ai-modules.ts @@ -1,8 +1,7 @@ /** * Shared Types & Constants for AI Modules * - * Diese Datei enthält gemeinsame Typen und Konstanten für die drei AI-Module: - * - OCR-Labeling: Ground Truth für Handschrift-OCR + * Diese Datei enthält gemeinsame Typen und Konstanten für die AI-Module: * - RAG Pipeline: Dokument-Indexierung (NiBiS, EH, Schulordnungen) * - Daten & RAG: Vektor-Suche & Collection-Mapping * @@ -50,11 +49,6 @@ export type IndexingJobStatus = | 'failed' | 'paused' -/** - * Status für OCR-Labeling Items - */ -export type OCRLabelingStatus = 'pending' | 'confirmed' | 'corrected' | 'skipped' - // ============================================================================= // Cross-Module Navigation // ============================================================================= @@ -80,16 +74,9 @@ export interface AIModuleLink { /** * KI-Daten-Pipeline Module * Diese Module bilden eine zusammenhaengende Pipeline mit Datenfluss. - * Datenfluss: OCR-Labeling → RAG Pipeline → Daten & RAG + * Datenfluss: RAG Pipeline → Daten & RAG */ export const AI_PIPELINE_MODULES: AIModuleLink[] = [ - { - id: 'ocr-labeling', - name: 'OCR-Labeling', - href: '/ai/ocr-labeling', - description: 'Handschrift-Training & Ground Truth Erfassung', - icon: '🏷️', - }, { id: 'rag-pipeline', name: 'RAG Pipeline', @@ -142,21 +129,7 @@ export const AI_MODULES: AIModuleLink[] = [ */ export const AI_MODULE_RELATIONS: Record = { // KI-Daten-Pipeline Relations - 'ocr-labeling': [ - { - id: 'rag-pipeline', - name: 'RAG Pipeline', - href: '/ai/rag-pipeline', - description: 'Trainierte Daten indexieren', - }, - ], 'rag-pipeline': [ - { - id: 'ocr-labeling', - name: 'OCR-Labeling', - href: '/ai/ocr-labeling', - description: 'Ground Truth erstellen', - }, { id: 'rag', name: 'Daten & RAG', @@ -214,17 +187,9 @@ export interface DataFlowConnection { /** * Definiert den Datenfluss zwischen den AI-Modulen * - * OCR-Labeling → RAG Pipeline: Ground Truth für Training * RAG Pipeline → Daten & RAG: Embeddings für Vektor-Suche - * Daten & RAG → Klausur-Korrektur: RAG-Suche für Bewertung */ export const DATA_FLOW_CONNECTIONS: DataFlowConnection[] = [ - { - from: 'ocr-labeling', - to: 'rag-pipeline', - label: 'Ground Truth', - description: 'Gelabelte Handschriftproben für OCR-Training', - }, { from: 'rag-pipeline', to: 'rag', @@ -241,16 +206,6 @@ export const DATA_FLOW_CONNECTIONS: DataFlowConnection[] = [ * Backend-Endpunkte für die AI-Module */ export const AI_API_ENDPOINTS = { - /** OCR-Labeling Endpoints */ - OCR_LABELING: { - SESSIONS: '/api/v1/ocr-label/sessions', - QUEUE: '/api/v1/ocr-label/queue', - CONFIRM: '/api/v1/ocr-label/confirm', - CORRECT: '/api/v1/ocr-label/correct', - SKIP: '/api/v1/ocr-label/skip', - STATS: '/api/v1/ocr-label/stats', - EXPORT: '/api/v1/ocr-label/export', - }, /** RAG Pipeline Endpoints */ RAG_PIPELINE: { JOBS: '/api/ai/rag-pipeline?action=jobs',