All checks were successful
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-ai-compliance (push) Successful in 37s
CI / test-python-backend-compliance (push) Successful in 37s
CI / test-python-document-crawler (push) Successful in 23s
CI / test-python-dsms-gateway (push) Successful in 21s
- Crawler erweitert: +26 neue Dokumente (DSK KP 1-20, SDM V3.1, BfDI Loeschkonzept, BayLDA TOM-Checkliste) - RAG-Queries optimiert: 18 Queries mit EDPB/DSK/WP-Referenzen fuer besseres Retrieval - Chat-Route: queryRAG nutzt jetzt Collection + Query-Boost aus DOCUMENT_RAG_CONFIG - TOM Control Library: 180 Controls in 12 Domaenen (ISO Annex-A Style, tom_controls_v1.json) - Risk Engine Spec: Impact/Likelihood 0-10, Score 0-100, 4 Tiers, Loeschfristen-Engine - Soul-Files: DSK-Kurzpapiere, SDM V3.1, BfDI als primaere deutsche Quellen - Manifest CSV: eu_de_privacy_manifest.csv mit Lizenz-Ampel (gruen/gelb/rot) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
91 lines
3.2 KiB
TypeScript
91 lines
3.2 KiB
TypeScript
/**
|
|
* RAG Configuration per Document Type
|
|
*
|
|
* Maps each ScopeDocumentType to its optimal RAG collection and search query.
|
|
* Used by the Drafting Engine to fetch type-specific legal context.
|
|
*/
|
|
|
|
import type { ScopeDocumentType } from '@/lib/sdk/compliance-scope-types'
|
|
|
|
export interface DocumentRAGConfig {
|
|
/** RAG collection name in bp-core-rag-service */
|
|
collection: string
|
|
/** Optimized search query for this document type */
|
|
query: string
|
|
}
|
|
|
|
export const DOCUMENT_RAG_CONFIG: Record<ScopeDocumentType, DocumentRAGConfig> = {
|
|
dsfa: {
|
|
collection: 'bp_dsfa_corpus',
|
|
query: 'Art. 35 DSGVO Datenschutz-Folgenabschaetzung DSFA Risikobewertung WP248 EDPB',
|
|
},
|
|
tom: {
|
|
collection: 'bp_compliance_datenschutz',
|
|
query: 'Art. 32 DSGVO Sicherheit Verarbeitung TOM technisch-organisatorische Massnahmen EDPB DPbD',
|
|
},
|
|
vvt: {
|
|
collection: 'bp_compliance_gesetze',
|
|
query: 'Art. 30 DSGVO Verarbeitungsverzeichnis Dokumentationspflicht DSK Kurzpapier VVT',
|
|
},
|
|
lf: {
|
|
collection: 'bp_compliance_recht',
|
|
query: 'Aufbewahrungsfristen Loeschkonzept Art. 17 DSGVO Recht auf Loeschung DSK Kurzpapier',
|
|
},
|
|
dsi: {
|
|
collection: 'bp_compliance_datenschutz',
|
|
query: 'Art. 13 Art. 14 DSGVO Transparenz Informationspflicht WP260 EDPB',
|
|
},
|
|
betroffenenrechte: {
|
|
collection: 'bp_compliance_recht',
|
|
query: 'Art. 15-22 DSGVO Betroffenenrechte Auskunft Loeschung EDPB Access Right',
|
|
},
|
|
datenpannen: {
|
|
collection: 'bp_compliance_recht',
|
|
query: 'Art. 33 Art. 34 DSGVO Datenpanne Meldepflicht EDPB Breach Notification WP250',
|
|
},
|
|
daten_transfer: {
|
|
collection: 'bp_compliance_ce',
|
|
query: 'Kapitel V DSGVO Drittlandtransfer SCC EDPB Transfers Supplementary Measures',
|
|
},
|
|
einwilligung: {
|
|
collection: 'bp_compliance_datenschutz',
|
|
query: 'Art. 6 Art. 7 DSGVO Einwilligung Widerruf EDPB Consent Guidelines WP259',
|
|
},
|
|
vertragsmanagement: {
|
|
collection: 'bp_compliance_recht',
|
|
query: 'AVV Art. 28 DSGVO Vertragsmanagement Auftragsverarbeiter Pruefpflichten',
|
|
},
|
|
schulung: {
|
|
collection: 'bp_compliance_datenschutz',
|
|
query: 'Datenschutz Schulung Awareness Sensibilisierung Art. 39 DSGVO Mitarbeiter',
|
|
},
|
|
audit_log: {
|
|
collection: 'bp_compliance_datenschutz',
|
|
query: 'Audit Logging Protokollierung Art. 5 Abs. 2 DSGVO Rechenschaftspflicht',
|
|
},
|
|
risikoanalyse: {
|
|
collection: 'bp_compliance_ce',
|
|
query: 'Risikoanalyse Risikobewertung Framework DSK Kurzpapier 18 SDM Schutzbedarf',
|
|
},
|
|
notfallplan: {
|
|
collection: 'bp_compliance_recht',
|
|
query: 'Notfallplan Incident Response Krisenmanagement Art. 32 DSGVO Wiederherstellung',
|
|
},
|
|
zertifizierung: {
|
|
collection: 'bp_compliance_ce',
|
|
query: 'Art. 42 Art. 43 DSGVO Zertifizierung Datenschutz-Siegel EDPB Certification',
|
|
},
|
|
datenschutzmanagement: {
|
|
collection: 'bp_compliance_datenschutz',
|
|
query: 'DSMS PDCA Datenschutzmanagement Organisation SDM Standard-Datenschutzmodell',
|
|
},
|
|
iace_ce_assessment: {
|
|
collection: 'bp_compliance_ce',
|
|
query: 'AI Act KI-Verordnung CE-Konformitaet Hochrisiko-KI Art. 6 EDPB',
|
|
},
|
|
av_vertrag: {
|
|
collection: 'bp_compliance_recht',
|
|
query: 'AVV Art. 28 DSGVO Auftragsverarbeitung Mindestinhalte EDPB Controller Processor',
|
|
},
|
|
}
|