'use client' import type { DataSource } from '../types' export function DataSourcesTab({ sources }: { sources: DataSource[] }) { return (
{/* Introduction */}

Wie werden Daten hinzugefuegt?

Das RAG-System nutzt verschiedene Datenquellen. Jede Quelle hat einen eigenen Ingestion-Prozess:

Automatisch

NiBiS-PDFs werden automatisch aus dem za-download Verzeichnis eingelesen

Manuell

Eigene EH koennen ueber die Klausur-Korrektur hochgeladen werden

{/* Data Sources List */}
{sources.map((source) => ( ))}
{/* How to add data */}

Daten hinzufuegen

) } // --- Internal helper components --- function DataSourceCard({ source }: { source: DataSource }) { return (

{source.name}

{source.description}

Collection: {source.collection}
Dokumente: {source.document_count}
Chunks: {source.chunk_count}
{source.last_updated && (
Aktualisiert: {new Date(source.last_updated).toLocaleDateString('de-DE')}
)}
) } function DataSourceStatusBadge({ status }: { status: DataSource['status'] }) { const className = status === 'active' ? 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200' : status === 'pending' ? 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200' : 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200' const label = status === 'active' ? 'Aktiv' : status === 'pending' ? 'Ausstehend' : 'Fehler' return ( {label} ) } function AddDataCard({ icon, title, description, linkHref, linkText }: { icon: string title: string description: string linkHref?: string linkText: string }) { return (
{icon}

{title}

{description}

{linkHref ? ( {linkText} ) : ( )}
) }