Zusammenfassung: Kompatibilitaet mit bestehendem ÜBERBLICK
- Frontend + Backend erkennen jetzt sowohl ## ZUSAMMENFASSUNG als auch ## ÜBERBLICK als Zusammenfassungs-Sektion - Inkrementelles Prompt weist Modell an, ÜBERBLICK in ZUSAMMENFASSUNG umzubenennen und als Bullet-Points zu formatieren - Bestehende Lagen zeigen Zusammenfassung sofort in der Kachel
Dieser Commit ist enthalten in:
@@ -173,6 +173,11 @@ Aktualisiere das Briefing mit den neuen Erkenntnissen. Sei so ausführlich wie n
|
|||||||
|
|
||||||
## ZUSAMMENFASSUNG
|
## ZUSAMMENFASSUNG
|
||||||
## HINTERGRUND
|
## HINTERGRUND
|
||||||
|
|
||||||
|
WICHTIG zur Sektion ZUSAMMENFASSUNG:
|
||||||
|
- Falls das bisherige Briefing eine Sektion "## ÜBERBLICK" hat, benenne sie in "## ZUSAMMENFASSUNG" um
|
||||||
|
- Die ZUSAMMENFASSUNG muss als Aufzählung formatiert sein (4-8 Bullet Points mit "- "). Jeder Punkt fasst einen Kernaspekt in 1-2 Sätzen zusammen
|
||||||
|
- Falls der bisherige ÜBERBLICK Fliesstext ist, wandle ihn in Bullet Points um
|
||||||
## AKTEURE
|
## AKTEURE
|
||||||
## AKTUELLE LAGE
|
## AKTUELLE LAGE
|
||||||
## EINSCHÄTZUNG
|
## EINSCHÄTZUNG
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ def _extract_zusammenfassung(summary_text: str) -> tuple[str, str]:
|
|||||||
return "", summary_text
|
return "", summary_text
|
||||||
|
|
||||||
# Suche nach ## ZUSAMMENFASSUNG ... bis zur naechsten ## Ueberschrift
|
# Suche nach ## ZUSAMMENFASSUNG ... bis zur naechsten ## Ueberschrift
|
||||||
pattern = r"(## ZUSAMMENFASSUNG\s*\n)(.*?)(?=\n## |\Z)"
|
pattern = r"(## (?:ZUSAMMENFASSUNG|ÜBERBLICK)\s*\n)(.*?)(?=\n## |\Z)"
|
||||||
match = re.search(pattern, summary_text, re.DOTALL)
|
match = re.search(pattern, summary_text, re.DOTALL)
|
||||||
if not match:
|
if not match:
|
||||||
return "", summary_text
|
return "", summary_text
|
||||||
|
|||||||
@@ -701,7 +701,7 @@ const UI = {
|
|||||||
*/
|
*/
|
||||||
extractZusammenfassung(summary) {
|
extractZusammenfassung(summary) {
|
||||||
if (!summary) return { zusammenfassung: null, remaining: summary };
|
if (!summary) return { zusammenfassung: null, remaining: summary };
|
||||||
const pattern = /## ZUSAMMENFASSUNG\s*\n(.*?)(?=\n## |$)/s;
|
const pattern = /## (?:ZUSAMMENFASSUNG|ÜBERBLICK)\s*\n(.*?)(?=\n## |$)/s;
|
||||||
const match = summary.match(pattern);
|
const match = summary.match(pattern);
|
||||||
if (!match) return { zusammenfassung: null, remaining: summary };
|
if (!match) return { zusammenfassung: null, remaining: summary };
|
||||||
const zusammenfassung = match[1].trim();
|
const zusammenfassung = match[1].trim();
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren