Architektur: Multi-Bundesland-Abstraktion #5
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
Depends on
#2 Bundesland: Sachsen-Anhalt (Wahl 06.09.2026)
tobias/gwoe-antragspruefer
#3 Bundesland: Berlin (Wahl 20.09.2026)
tobias/gwoe-antragspruefer
#4 Bundesland: Mecklenburg-Vorpommern (Wahl 20.09.2026)
tobias/gwoe-antragspruefer
#7 Zentrale Bundesländer-Konfiguration (app/bundeslaender.py)
tobias/gwoe-antragspruefer
Reference: tobias/gwoe-antragspruefer#5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung
Um weitere Bundesländer effizient anzubinden, braucht es eine saubere Abstraktionsschicht.
Benötigte Komponenten pro Bundesland
Parlamentsdokumentationssysteme in Deutschland
Vorhandene Scraper (Dokukratie, OKF)
https://github.com/okfde/dokukratie
bbbebwbyhbhehhmvninwrpshslsnstthAlternatives Vorgehen: Parlamentsspiegel
https://www.parlamentsspiegel.de/suche
Berlin Sonderfall: Open Data
https://www.parlament-berlin.de/dokumente/open-data
Architektur-Vorschlag
Priorisierung
Scope-Erweiterung: Langfristig soll der Prüfer auch Bundestagsanträge können.
Bedeutet für die Architektur:
→ Im Adapter-Interface berücksichtigen:
level=land|bundScope-Aufteilung zur besseren Reversibilität
Dieses Issue wird in zwei aufeinanderfolgende Issues geteilt:
app/bundeslaender.py). Eigenständig deploybar, keine funktionale Änderung. Voraussetzung für dieses Issue.wahlprogramme.py,embeddings.py,analyzer.pyauf Bundesland-Bewusstsein. Atomar, weil die drei Module sich gegenseitig referenzieren.Reihenfolge: #7 → #5 → #2/#3/#4. Jeder Schritt mit eigenem Commit/Deploy/Rollback-Punkt.
Erledigt
Commit
ee0218bdeployed auf https://gwoe.toppyr.de.Refactor-Umfang (3 Module, atomar):
wahlprogramme.py→WAHLPROGRAMME[bundesland][partei],find_relevant_quotes(text, fraktionen, bundesland)embeddings.py→ Schema-Migrationbundesland-Spalte + Backfill, Filter infind_relevant_chunks(NULL = global),get_relevant_quotes_for_antrag(text, fraktionen, bundesland)analyzer.py→get_bundesland_contextausBUNDESLAENDER, silent NRW-Fallback abgeschafft, Fraktionen-Heuristik nutzt jetztlandtagsfraktionenLive-Verifikation im Produktiv-Container:
chunkshat jetztbundesland-Spalte; Backfill 775 NRW-Chunks + 335 NULL (Grundsatzprogramme) — wie geplantget_bundesland_context("NRW")liefert 17 KB Kontext, beginnt mitLandtag Nordrhein-Westfalen (WP 18, seit 2022-06-01)aus zentraler Konfigget_bundesland_context("XYZ")→ ValueErrorget_bundesland_context("LSA")→ ValueError (LSA noch inaktiv)/api/assessments25 Einträge,/api/assessment?drucksache=18/18100Detail unverändertDamit entblockt: #2 (LSA), #3 (Berlin), #4 (MV).