'use client' /** * RAG & Legal Corpus Management * * Verwaltet das Legal Corpus RAG System fuer Compliance. * Zeigt Status aller 19 Regulierungen, Chunks und ermoeglicht Suche. */ import React from 'react' import Link from 'next/link' import { PagePurpose } from '@/components/common/PagePurpose' import { AIModuleSidebarResponsive } from '@/components/ai/AIModuleSidebar' import { REGULATIONS_IN_RAG } from './rag-constants' import { ChunkBrowserQA } from './components/ChunkBrowserQA' import { useRAGPage } from './_hooks/useRAGPage' import { REGULATIONS, COLLECTION_TOTALS, API_PROXY, TABS, } from './rag-data' import { OverviewTab } from './_components/OverviewTab' import { RegulationsTab } from './_components/RegulationsTab' import { MapTab } from './_components/MapTab' import { SearchTab } from './_components/SearchTab' import { DataTab } from './_components/DataTab' import { IngestionTab } from './_components/IngestionTab' import { PipelineTab } from './_components/PipelineTab' export default function RAGPage() { const hook = useRAGPage() const { activeTab, setActiveTab, dsfaLoading, dsfaStatus, dsfaSources } = hook return (
{/* Header */}

Daten & RAG

Legal Corpus Management fuer Compliance

KI & Automatisierung
{/* Page Purpose */} {/* AI Module Sidebar - Desktop: Fixed, Mobile: FAB + Drawer */} {/* RAG Collections Stats */}

Legal Corpus

{COLLECTION_TOTALS.total_legal.toLocaleString()}

Chunks · {Object.keys(REGULATIONS_IN_RAG).length}/{REGULATIONS.length} im RAG

DSFA Corpus

{dsfaLoading ? '-' : (dsfaStatus?.total_chunks || 0).toLocaleString()}

Chunks · {dsfaSources.length || '~70'} Quellen

NiBiS EH

7.996

Chunks · Bildungs-Erwartungshorizonte

Legal Templates

7.689

Chunks · Dokumentvorlagen

{/* Tabs */}
{TABS.map((tab) => ( ))}
{/* Tab Content */} {activeTab === 'overview' && } {activeTab === 'regulations' && } {activeTab === 'map' && } {activeTab === 'search' && } {activeTab === 'chunks' && } {activeTab === 'data' && } {activeTab === 'ingestion' && } {activeTab === 'pipeline' && }
) }