From 2fdf3ff86885ef1f92fb3af233155d3836751434 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Thu, 12 Mar 2026 06:43:19 +0100 Subject: [PATCH] feat(rag): Register Verbraucherschutz laws + EU directives in RAG constants Add 15 new regulations from Phase H ingestion: - DE: PAngV, VSBG, ProdHaftG, VerpackG, ElektroG, BattDG, BFSG, UWG, GewO - EU: Warenkauf-RL, Klausel-RL, UGP-RL, Preisangaben-RL, Omnibus-RL, BattVO Chunk counts set to 0 (will be updated after successful ingestion). Co-Authored-By: Claude Opus 4.6 --- .../app/(admin)/ai/rag/rag-constants.ts | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/admin-lehrer/app/(admin)/ai/rag/rag-constants.ts b/admin-lehrer/app/(admin)/ai/rag/rag-constants.ts index 10fdd1b..e1051c5 100644 --- a/admin-lehrer/app/(admin)/ai/rag/rag-constants.ts +++ b/admin-lehrer/app/(admin)/ai/rag/rag-constants.ts @@ -26,6 +26,13 @@ export const REGULATIONS_IN_RAG: Record = { E_COMMERCE_RL: { collection: 'bp_compliance_ce', chunks: 197, qdrant_id: 'eu_2000_31' }, VERBRAUCHERRECHTE_RL: { collection: 'bp_compliance_ce', chunks: 266, qdrant_id: 'eu_2011_83' }, DIGITALE_INHALTE_RL: { collection: 'bp_compliance_ce', chunks: 321, qdrant_id: 'eu_2019_770' }, + // Verbraucherschutz EU-Richtlinien (Phase H2 Ingestion) + WARENKAUF_RL: { collection: 'bp_compliance_ce', chunks: 0, qdrant_id: 'sgd' }, + KLAUSEL_RL: { collection: 'bp_compliance_ce', chunks: 0, qdrant_id: 'uctd' }, + UNLAUTERE_PRAKTIKEN_RL: { collection: 'bp_compliance_ce', chunks: 0, qdrant_id: 'ucpd' }, + PREISANGABEN_RL: { collection: 'bp_compliance_ce', chunks: 0, qdrant_id: 'pid' }, + OMNIBUS_RL: { collection: 'bp_compliance_ce', chunks: 0, qdrant_id: 'omn' }, + BATTERIE_VO: { collection: 'bp_compliance_ce', chunks: 0, qdrant_id: 'battvo' }, DMA: { collection: 'bp_compliance_ce', chunks: 701, qdrant_id: 'eu_2022_1925' }, DPF: { collection: 'bp_compliance_ce', chunks: 2464, qdrant_id: 'dpf' }, EUCSA: { collection: 'bp_compliance_ce', chunks: 558, qdrant_id: 'eucsa' }, @@ -68,6 +75,17 @@ export const REGULATIONS_IN_RAG: Record = { DE_USTG_RET: { collection: 'bp_compliance_gesetze', chunks: 1071, qdrant_id: 'de_ustg_ret' }, DE_URHG: { collection: 'bp_compliance_gesetze', chunks: 626, qdrant_id: 'urhg_komplett' }, + // === DE Verbraucherschutz-Gesetze (bp_compliance_gesetze) — Phase H Ingestion === + DE_PANGV: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'pangv' }, + DE_VSBG: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'vsbg' }, + DE_PRODHAFTG: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'prodhaftg' }, + DE_VERPACKG: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'verpackg' }, + DE_ELEKTROG: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'elektrog' }, + DE_BATTDG: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'battdg' }, + DE_BFSG: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'bfsg' }, + DE_UWG: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'uwg' }, + DE_GEWO: { collection: 'bp_compliance_gesetze', chunks: 0, qdrant_id: 'gewo' }, + // === BSI Standards (bp_compliance_gesetze) === 'BSI-TR-03161-1': { collection: 'bp_compliance_gesetze', chunks: 138, qdrant_id: 'bsi_tr_03161_1' }, 'BSI-TR-03161-2': { collection: 'bp_compliance_gesetze', chunks: 124, qdrant_id: 'bsi_tr_03161_2' }, @@ -217,6 +235,12 @@ export const REGULATION_INFO: RegulationInfo[] = [ { code: 'DSM', name: 'DSM-Urheberrechtsrichtlinie', type: 'eu_directive' }, { code: 'PLD', name: 'Produkthaftungsrichtlinie', type: 'eu_directive' }, { code: 'GPSR', name: 'General Product Safety', type: 'eu_regulation' }, + { code: 'WARENKAUF_RL', name: 'Warenkauf-RL', type: 'eu_directive' }, + { code: 'KLAUSEL_RL', name: 'Klausel-RL', type: 'eu_directive' }, + { code: 'UNLAUTERE_PRAKTIKEN_RL', name: 'UGP-RL', type: 'eu_directive' }, + { code: 'PREISANGABEN_RL', name: 'Preisangaben-RL', type: 'eu_directive' }, + { code: 'OMNIBUS_RL', name: 'Omnibus-RL', type: 'eu_directive' }, + { code: 'BATTERIE_VO', name: 'Batterieverordnung', type: 'eu_regulation' }, { code: 'E_COMMERCE_RL', name: 'E-Commerce-Richtlinie', type: 'eu_directive' }, { code: 'VERBRAUCHERRECHTE_RL', name: 'Verbraucherrechte-RL', type: 'eu_directive' }, { code: 'DIGITALE_INHALTE_RL', name: 'Digitale-Inhalte-RL', type: 'eu_directive' }, @@ -245,6 +269,16 @@ export const REGULATION_INFO: RegulationInfo[] = [ { code: 'DE_GESCHGEHG', name: 'GeschGehG', type: 'de_law' }, { code: 'DE_USTG_RET', name: 'UStG', type: 'de_law' }, { code: 'DE_URHG', name: 'UrhG', type: 'de_law' }, + // DE Verbraucherschutz + { code: 'DE_PANGV', name: 'PAngV', type: 'de_law' }, + { code: 'DE_VSBG', name: 'VSBG', type: 'de_law' }, + { code: 'DE_PRODHAFTG', name: 'ProdHaftG', type: 'de_law' }, + { code: 'DE_VERPACKG', name: 'VerpackG', type: 'de_law' }, + { code: 'DE_ELEKTROG', name: 'ElektroG', type: 'de_law' }, + { code: 'DE_BATTDG', name: 'BattDG', type: 'de_law' }, + { code: 'DE_BFSG', name: 'BFSG', type: 'de_law' }, + { code: 'DE_UWG', name: 'UWG', type: 'de_law' }, + { code: 'DE_GEWO', name: 'GewO', type: 'de_law' }, // BSI { code: 'BSI-TR-03161-1', name: 'BSI-TR Teil 1', type: 'bsi_standard' }, { code: 'BSI-TR-03161-2', name: 'BSI-TR Teil 2', type: 'bsi_standard' },