Enhance Planning Catalog Context and Prompt Slot Management
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Failing after 2s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m20s
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Failing after 2s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m20s
- Introduced new catalog context handling in planning prompt functions, allowing for improved integration of planning variables. - Added optional catalog context parameters in various functions to streamline the merging of planning prompt variables. - Updated frontend components to include CatalogPromptSlotsEditor for managing prompt slots across different catalog types. - Enhanced API utilities to support fetching and updating catalog prompt slots, improving backend functionality for catalog management. - Incremented version numbers and updated changelog to reflect the new features and improvements.
This commit is contained in:
1 parent
9cee862c32
commit
53f2b027cc
20 files changed
+1922
-204
No files matched your search
@@ -0,0 +1,172 @@
|
||||
-- Migration 091: Planungs-KI H1 — Katalog-Guidance-Platzhalter in Progressions-Prompts
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und prüfst einen vorgeschlagenen Übungspfad.
|
||||
|
||||
Ziel-Anfrage: {{goal_query}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
Schritte (JSON): {{steps_json}}
|
||||
Erkannte Lücken: {{gaps_json}}
|
||||
Eingefügte Brücken: {{bridge_inserts_json}}
|
||||
|
||||
{{catalog_guidance_block}}
|
||||
{{catalog_context_json}}
|
||||
|
||||
Wichtig: Wenn Katalog-Kontext gesetzt ist, haben dessen QS-Kriterien Vorrang vor allgemeinen Technik-/Wettkampf-Maßstäben.
|
||||
|
||||
Prüfe:
|
||||
1. Deckt der Pfad das Hauptthema der Anfrage ab (nicht nur Oberbegriffe)?
|
||||
2. Ist die Reihenfolge didaktisch sinnvoll (Einstieg → Vertiefung → Ziel)?
|
||||
3. Sind Sprünge zwischen benachbarten Schritten zu groß?
|
||||
4. Sind Brücken-Übungen sinnvoll oder überflüssig?
|
||||
5. Fehlen wichtige Zwischenschritte (Kraft, Geschwindigkeit, Anwendung, Perfektion)?
|
||||
6. Gibt es Schritte ohne Bezug zum Hauptthema (z. B. reine Kraftübungen bei einer Technik)?
|
||||
|
||||
Wenn die Reihenfolge verbessert werden sollte: ordered_step_indices = Permutation der aktuellen 0-basierten Schritt-Indizes (beste didaktische Reihenfolge).
|
||||
Nur Indizes aus dem steps_json verwenden — Länge muss exakt der Schrittzahl entsprechen.
|
||||
|
||||
Wenn wichtige Zwischenschritte fehlen oder Schritte themenfremd sind: suggested_new_exercises mit konkreten Übungs-Ideen (Titel + Kurzskizze), jeweils mit insert_after_step_index (0-basiert: nach welchem Schritt einfügen).
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"overall_ok": true,
|
||||
"quality_score": 0.85,
|
||||
"topic_coverage": "Kurz: wie gut das Hauptthema abgedeckt ist",
|
||||
"ordered_step_indices": [0, 1, 2, 3],
|
||||
"issues": ["…"],
|
||||
"sequence_notes": ["…"],
|
||||
"recommendations": ["…"],
|
||||
"suggested_new_exercises": [
|
||||
{
|
||||
"title_hint": "Mae Geri Kraftentwicklung am Sandsack",
|
||||
"sketch": "Gezielte Kraft- und Schnelligkeitsentwicklung für Mae Geri …",
|
||||
"phase": "vertiefung",
|
||||
"insert_after_step_index": 2,
|
||||
"rationale": "Schließt Lücke zwischen Grundlagen und Gleichgewichtstritt"
|
||||
}
|
||||
]
|
||||
}$t$,
|
||||
default_template = $t$Du bist Assistent für Kampfsport-Trainer und prüfst einen vorgeschlagenen Übungspfad.
|
||||
|
||||
Ziel-Anfrage: {{goal_query}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
Schritte (JSON): {{steps_json}}
|
||||
Erkannte Lücken: {{gaps_json}}
|
||||
Eingefügte Brücken: {{bridge_inserts_json}}
|
||||
|
||||
{{catalog_guidance_block}}
|
||||
{{catalog_context_json}}
|
||||
|
||||
Wichtig: Wenn Katalog-Kontext gesetzt ist, haben dessen QS-Kriterien Vorrang vor allgemeinen Technik-/Wettkampf-Maßstäben.
|
||||
|
||||
Prüfe:
|
||||
1. Deckt der Pfad das Hauptthema der Anfrage ab (nicht nur Oberbegriffe)?
|
||||
2. Ist die Reihenfolge didaktisch sinnvoll (Einstieg → Vertiefung → Ziel)?
|
||||
3. Sind Sprünge zwischen benachbarten Schritten zu groß?
|
||||
4. Sind Brücken-Übungen sinnvoll oder überflüssig?
|
||||
5. Fehlen wichtige Zwischenschritte (Kraft, Geschwindigkeit, Anwendung, Perfektion)?
|
||||
6. Gibt es Schritte ohne Bezug zum Hauptthema (z. B. reine Kraftübungen bei einer Technik)?
|
||||
|
||||
Wenn die Reihenfolge verbessert werden sollte: ordered_step_indices = Permutation der aktuellen 0-basierten Schritt-Indizes (beste didaktische Reihenfolge).
|
||||
Nur Indizes aus dem steps_json verwenden — Länge muss exakt der Schrittzahl entsprechen.
|
||||
|
||||
Wenn wichtige Zwischenschritte fehlen oder Schritte themenfremd sind: suggested_new_exercises mit konkreten Übungs-Ideen (Titel + Kurzskizze), jeweils mit insert_after_step_index (0-basiert: nach welchem Schritt einfügen).
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"overall_ok": true,
|
||||
"quality_score": 0.85,
|
||||
"topic_coverage": "Kurz: wie gut das Hauptthema abgedeckt ist",
|
||||
"ordered_step_indices": [0, 1, 2, 3],
|
||||
"issues": ["…"],
|
||||
"sequence_notes": ["…"],
|
||||
"recommendations": ["…"],
|
||||
"suggested_new_exercises": [
|
||||
{
|
||||
"title_hint": "Mae Geri Kraftentwicklung am Sandsack",
|
||||
"sketch": "Gezielte Kraft- und Schnelligkeitsentwicklung für Mae Geri …",
|
||||
"phase": "vertiefung",
|
||||
"insert_after_step_index": 2,
|
||||
"rationale": "Schließt Lücke zwischen Grundlagen und Gleichgewichtstritt"
|
||||
}
|
||||
]
|
||||
}$t$
|
||||
WHERE slug = 'planning_exercise_path_qa';
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und analysierst eine Anfrage für einen Progressionsgraphen.
|
||||
|
||||
Anfrage: {{goal_query}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
|
||||
{{catalog_guidance_block}}
|
||||
|
||||
Wichtig: Keine Gruppenanalyse — nur didaktischer Pfad für die Technik/das Thema.
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"primary_topic": "Mae Geri",
|
||||
"start_assumption": "Welche Voraussetzungen werden für den Einstieg angenommen",
|
||||
"target_state": "Konkreter Zielzustand der Progression",
|
||||
"success_criteria": ["messbare Kriterien"],
|
||||
"constraints": { "partner_required": false }
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_progression_goal_analysis';
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und erstellst eine didaktische Roadmap für einen Progressionsgraphen.
|
||||
|
||||
Anfrage: {{goal_query}}
|
||||
Zielanalyse: {{goal_analysis_json}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
Anzahl Major Steps (N): {{max_steps}}
|
||||
|
||||
{{catalog_guidance_block}}
|
||||
{{catalog_context_json}}
|
||||
|
||||
Erzeuge zuerst 8–12 micro_objectives (phase, title, weight, depends_on), dann konsolidiere auf genau N major_steps.
|
||||
Phasen: einstieg, grundlage, vertiefung, anwendung, perfektion — in sinnvoller Reihenfolge (Grundlagen vor Perfektion).
|
||||
Beachte Katalog-Roadmap-Hinweise, falls gesetzt.
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"micro_objectives": [
|
||||
{ "id": "m1", "phase": "grundlage", "title": "…", "weight": 0.9, "depends_on": [] }
|
||||
],
|
||||
"major_steps": [
|
||||
{ "index": 0, "phase": "grundlage", "learning_goal": "…", "consolidates": ["m1","m2"], "rationale": "…" }
|
||||
],
|
||||
"consolidation_notes": ["…"]
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_progression_roadmap';
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und spezifizierst didaktische Stufen eines Progressionsgraphen.
|
||||
|
||||
Anfrage: {{goal_query}}
|
||||
Zielanalyse: {{goal_analysis_json}}
|
||||
Major Steps: {{major_steps_json}}
|
||||
|
||||
{{catalog_guidance_block}}
|
||||
{{catalog_context_json}}
|
||||
|
||||
Für jeden Major Step: messbares Lernziel, load_profile (z. B. koordination, präzision, kraft), exercise_type (kihon_einzel, partner_drill, kombination, kraft_auxiliary), success_criteria, anti_patterns (z. B. reine Kraft ohne Technikbezug).
|
||||
Beachte Katalog-QS-Kriterien und Anti-Patterns, falls gesetzt.
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"stage_specs": [
|
||||
{
|
||||
"major_step_index": 0,
|
||||
"learning_goal": "…",
|
||||
"load_profile": ["koordination", "gleichgewicht"],
|
||||
"exercise_type": "kihon_einzel",
|
||||
"success_criteria": ["…"],
|
||||
"anti_patterns": ["…"]
|
||||
}
|
||||
]
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_progression_stage_spec';
|
||||
@@ -0,0 +1,176 @@
|
||||
-- Migration 092: Katalog-Prompt-Slots (H2) — Slot-Typ-Vokabular + Werte pro Stammdaten-Zeile
|
||||
|
||||
CREATE TABLE IF NOT EXISTS catalog_prompt_slot_types (
|
||||
slot_key VARCHAR(64) PRIMARY KEY,
|
||||
display_name VARCHAR(200) NOT NULL,
|
||||
description TEXT,
|
||||
applicable_kinds TEXT[] NOT NULL DEFAULT '{}',
|
||||
sort_order INT DEFAULT 99,
|
||||
for_llm BOOLEAN NOT NULL DEFAULT true,
|
||||
for_code BOOLEAN NOT NULL DEFAULT false,
|
||||
created_at TIMESTAMP DEFAULT NOW(),
|
||||
updated_at TIMESTAMP DEFAULT NOW()
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS catalog_prompt_slots (
|
||||
id SERIAL PRIMARY KEY,
|
||||
catalog_kind VARCHAR(32) NOT NULL,
|
||||
catalog_id INT NOT NULL,
|
||||
slot_key VARCHAR(64) NOT NULL REFERENCES catalog_prompt_slot_types(slot_key) ON DELETE CASCADE,
|
||||
content TEXT NOT NULL DEFAULT '',
|
||||
updated_at TIMESTAMP DEFAULT NOW(),
|
||||
UNIQUE (catalog_kind, catalog_id, slot_key)
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_catalog_prompt_slots_kind_id
|
||||
ON catalog_prompt_slots (catalog_kind, catalog_id);
|
||||
|
||||
INSERT INTO catalog_prompt_slot_types (slot_key, display_name, description, applicable_kinds, sort_order, for_llm, for_code)
|
||||
VALUES
|
||||
(
|
||||
'description',
|
||||
'Allgemeine Beschreibung',
|
||||
'Fachliche Einordnung des Katalog-Eintrags für Planungs-KI.',
|
||||
ARRAY['focus_area', 'training_type', 'target_group', 'style_direction'],
|
||||
10,
|
||||
true,
|
||||
false
|
||||
),
|
||||
(
|
||||
'hints_on_progression',
|
||||
'Hinweise Progressionsgraph',
|
||||
'Didaktik für Roadmap, Major Steps und Stufenspezifikation.',
|
||||
ARRAY['focus_area', 'training_type', 'target_group', 'style_direction'],
|
||||
20,
|
||||
true,
|
||||
false
|
||||
),
|
||||
(
|
||||
'hints_on_exercise',
|
||||
'Hinweise Übungsanlage',
|
||||
'Kontext für Gap-Fill, Übungs-KI und Schnellanlage.',
|
||||
ARRAY['focus_area', 'training_type', 'target_group', 'style_direction'],
|
||||
30,
|
||||
true,
|
||||
false
|
||||
),
|
||||
(
|
||||
'hints_on_path_qa',
|
||||
'Hinweise Pfad-QS',
|
||||
'Bewertungsmaßstäbe für Pfad-Qualitätssicherung.',
|
||||
ARRAY['focus_area', 'training_type', 'target_group', 'style_direction'],
|
||||
40,
|
||||
true,
|
||||
false
|
||||
),
|
||||
(
|
||||
'anti_patterns',
|
||||
'Anti-Patterns',
|
||||
'Explizite Fehlbewertungen vermeiden.',
|
||||
ARRAY['focus_area', 'training_type', 'target_group', 'style_direction'],
|
||||
50,
|
||||
true,
|
||||
false
|
||||
),
|
||||
(
|
||||
'rematch_guard',
|
||||
'Rematch-Guard',
|
||||
'Wann kein Auto-Rematch sinnvoll ist (primär Code-Logik).',
|
||||
ARRAY['focus_area', 'training_type', 'target_group', 'style_direction'],
|
||||
60,
|
||||
false,
|
||||
true
|
||||
)
|
||||
ON CONFLICT (slot_key) DO NOTHING;
|
||||
|
||||
-- Seed aus H1-Registry (Name-Match auf Stammdaten)
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'focus_area', fa.id, 'description',
|
||||
'Planung zielt auf Prävention, Deeskalation, Grenzen und sichere Übungsformen — nicht auf Wettkampf-Perfektion oder Technik-Show.'
|
||||
FROM focus_areas fa WHERE fa.name ILIKE 'Gewaltschutz'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'focus_area', fa.id, 'hints_on_path_qa',
|
||||
'Gute Pfade bauen Sicherheit, Kommunikation und Alternativen auf; „Lücken“ sind fehlende Deeskalations- oder Rollenspiel-Stufen, nicht fehlende Kick-Varianten.'
|
||||
FROM focus_areas fa WHERE fa.name ILIKE 'Gewaltschutz'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'focus_area', fa.id, 'anti_patterns',
|
||||
'Nicht nach Kumite-Tiefe, Explosivität oder Wettkampf-Belastung bewerten.'
|
||||
FROM focus_areas fa WHERE fa.name ILIKE 'Gewaltschutz'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'training_type', tt.id, 'description',
|
||||
'Partizipation, Verständlichkeit, Freude am Bewegen; weniger maximale Spezialisierung.'
|
||||
FROM training_types tt WHERE tt.name ILIKE 'Breitensport'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'training_type', tt.id, 'hints_on_path_qa',
|
||||
'Hohe OK-Rate bei moderatem Schwierigkeitsanstieg; „Perfektion“-Stufen nur optional, nicht als Pflicht-Lücke.'
|
||||
FROM training_types tt WHERE tt.name ILIKE 'Breitensport'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'training_type', tt.id, 'rematch_guard',
|
||||
'Keine leeren Slots erzwingen, nur um eine Leistungs-Perfektionsstufe zu füllen.'
|
||||
FROM training_types tt WHERE tt.name ILIKE 'Breitensport'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'target_group', tg.id, 'description',
|
||||
'Kinder: kurze Einheiten, spielerische Einstiege, Sicherheit und altersgerechte Komplexität.'
|
||||
FROM target_groups tg WHERE tg.name ILIKE 'Kinder'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'target_group', tg.id, 'hints_on_path_qa',
|
||||
'Didaktik ohne Überforderung; klare Regeln und Sicherheit vor Perfektion; Lücken bei Spiel-/Rollenelementen wichtiger als Wettkampftiefe.'
|
||||
FROM target_groups tg WHERE tg.name ILIKE 'Kinder'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'target_group', tg.id, 'anti_patterns',
|
||||
'Keine Erwachsenen-Wettkampf-Perfektion als QS-Maßstab.'
|
||||
FROM target_groups tg WHERE tg.name ILIKE 'Kinder'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'target_group', tg.id, 'description',
|
||||
'Leistungsgruppe: höhere Anspruchskurven und Spezialisierung sind fachlich passend.'
|
||||
FROM target_groups tg WHERE tg.name ILIKE 'Leistungssportler'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'target_group', tg.id, 'hints_on_path_qa',
|
||||
'Höhere Anspruchskurven, Belastungs- und Kombinationsprogressionen sind relevant; Lücken in Spezialisierung können echte Hinweise sein.'
|
||||
FROM target_groups tg WHERE tg.name ILIKE 'Leistungssportler'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'style_direction', sd.id, 'description',
|
||||
'Shotokan-Linie: klare Kihon-Struktur, Hüft- und Standarbeit als wiederkehrende Qualitätsanker.'
|
||||
FROM style_directions sd WHERE sd.name ILIKE 'Shotokan'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'style_direction', sd.id, 'hints_on_progression',
|
||||
'Nuancen in Stellung und Hüfttechnik, kein neuer Planungstyp.'
|
||||
FROM style_directions sd WHERE sd.name ILIKE 'Shotokan'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'training_type', tt.id, 'description',
|
||||
'Wettkampforientiertes Training mit höherer Anspruchskurve und belastungsnahen Phasen.'
|
||||
FROM training_types tt WHERE tt.name ILIKE 'Wettkampf'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
|
||||
INSERT INTO catalog_prompt_slots (catalog_kind, catalog_id, slot_key, content)
|
||||
SELECT 'training_type', tt.id, 'hints_on_path_qa',
|
||||
'Spezialisierung, Kombination und Belastung unter Druck sind relevant; Lücken in Anwendungs- oder Perfektionsphasen können echte Hinweise sein.'
|
||||
FROM training_types tt WHERE tt.name ILIKE 'Wettkampf'
|
||||
ON CONFLICT (catalog_kind, catalog_id, slot_key) DO UPDATE SET content = EXCLUDED.content, updated_at = NOW();
|
||||
@@ -0,0 +1,199 @@
|
||||
-- Migration 093: Planungs-KI — granulare Katalog-Slot-Platzhalter in Prompt-Templates
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und prüfst einen vorgeschlagenen Übungspfad.
|
||||
|
||||
Ziel-Anfrage: {{goal_query}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
Schritte (JSON): {{steps_json}}
|
||||
Erkannte Lücken: {{gaps_json}}
|
||||
Eingefügte Brücken: {{bridge_inserts_json}}
|
||||
|
||||
Katalog-Kontext für Bewertung (Trainer-Auswahl — leere Zeilen ignorieren):
|
||||
|
||||
Primärfokus:
|
||||
{{focus_area_description}}
|
||||
QS: {{focus_area_hints_on_path_qa}}
|
||||
Vermeiden: {{focus_area_anti_patterns}}
|
||||
|
||||
Trainingsstil:
|
||||
{{training_type_description}}
|
||||
QS: {{training_type_hints_on_path_qa}}
|
||||
|
||||
Zielgruppe:
|
||||
{{target_group_description}}
|
||||
QS: {{target_group_hints_on_path_qa}}
|
||||
|
||||
Stilrichtung:
|
||||
{{style_direction_description}}
|
||||
QS: {{style_direction_hints_on_path_qa}}
|
||||
|
||||
{{catalog_context_json}}
|
||||
|
||||
Wichtig: Wenn Katalog-Slots gesetzt sind, haben diese Vorrang vor allgemeinen Technik-/Wettkampf-Maßstäben.
|
||||
|
||||
Prüfe:
|
||||
1. Deckt der Pfad das Hauptthema der Anfrage ab (nicht nur Oberbegriffe)?
|
||||
2. Ist die Reihenfolge didaktisch sinnvoll (Einstieg → Vertiefung → Ziel)?
|
||||
3. Sind Sprünge zwischen benachbarten Schritten zu groß?
|
||||
4. Sind Brücken-Übungen sinnvoll oder überflüssig?
|
||||
5. Fehlen wichtige Zwischenschritte — gemäß Katalog-QS-Hinweisen, nicht pauschal „Perfektion“?
|
||||
6. Gibt es Schritte ohne Bezug zum Hauptthema?
|
||||
|
||||
Wenn die Reihenfolge verbessert werden sollte: ordered_step_indices = Permutation der aktuellen 0-basierten Schritt-Indizes.
|
||||
Wenn wichtige Zwischenschritte fehlen: suggested_new_exercises mit Titel + Kurzskizze und insert_after_step_index.
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"overall_ok": true,
|
||||
"quality_score": 0.85,
|
||||
"topic_coverage": "Kurz: wie gut das Hauptthema abgedeckt ist",
|
||||
"ordered_step_indices": [0, 1, 2, 3],
|
||||
"issues": ["…"],
|
||||
"sequence_notes": ["…"],
|
||||
"recommendations": ["…"],
|
||||
"suggested_new_exercises": []
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_exercise_path_qa';
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und analysierst eine Anfrage für einen Progressionsgraphen.
|
||||
|
||||
Anfrage: {{goal_query}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
|
||||
Katalog-Kontext (Primärfokus / Trainingsstil / Zielgruppe / Stil — leere Zeilen ignorieren):
|
||||
|
||||
Primärfokus: {{focus_area_description}}
|
||||
Progression: {{focus_area_hints_on_progression}}
|
||||
|
||||
Trainingsstil: {{training_type_description}}
|
||||
Progression: {{training_type_hints_on_progression}}
|
||||
|
||||
Zielgruppe: {{target_group_description}}
|
||||
|
||||
Stilrichtung: {{style_direction_description}}
|
||||
|
||||
Wichtig: Keine Gruppenanalyse — nur didaktischer Pfad. Katalog-Hinweise beachten.
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"primary_topic": "Mae Geri",
|
||||
"start_assumption": "Welche Voraussetzungen werden für den Einstieg angenommen",
|
||||
"target_state": "Konkreter Zielzustand der Progression",
|
||||
"success_criteria": ["messbare Kriterien"],
|
||||
"constraints": { "partner_required": false }
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_progression_goal_analysis';
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und erstellst eine didaktische Roadmap für einen Progressionsgraphen.
|
||||
|
||||
Anfrage: {{goal_query}}
|
||||
Zielanalyse: {{goal_analysis_json}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
Anzahl Major Steps (N): {{max_steps}}
|
||||
|
||||
Katalog-Kontext für Stufenlogik:
|
||||
|
||||
Primärfokus:
|
||||
{{focus_area_description}}
|
||||
Roadmap: {{focus_area_hints_on_progression}}
|
||||
Vermeiden: {{focus_area_anti_patterns}}
|
||||
|
||||
Trainingsstil:
|
||||
{{training_type_description}}
|
||||
Roadmap: {{training_type_hints_on_progression}}
|
||||
|
||||
Zielgruppe:
|
||||
{{target_group_description}}
|
||||
Roadmap: {{target_group_hints_on_progression}}
|
||||
|
||||
Stilrichtung:
|
||||
{{style_direction_description}}
|
||||
Roadmap: {{style_direction_hints_on_progression}}
|
||||
|
||||
{{catalog_context_json}}
|
||||
|
||||
Erzeuge zuerst 8–12 micro_objectives, dann konsolidiere auf genau N major_steps.
|
||||
Phasen: einstieg, grundlage, vertiefung, anwendung, perfektion — Katalog-Roadmap-Hinweise beachten.
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"micro_objectives": [
|
||||
{ "id": "m1", "phase": "grundlage", "title": "…", "weight": 0.9, "depends_on": [] }
|
||||
],
|
||||
"major_steps": [
|
||||
{ "index": 0, "phase": "grundlage", "learning_goal": "…", "consolidates": ["m1","m2"], "rationale": "…" }
|
||||
],
|
||||
"consolidation_notes": ["…"]
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_progression_roadmap';
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und spezifizierst didaktische Stufen eines Progressionsgraphen.
|
||||
|
||||
Anfrage: {{goal_query}}
|
||||
Zielanalyse: {{goal_analysis_json}}
|
||||
Major Steps: {{major_steps_json}}
|
||||
Intent-Kontext: {{intent_context_json}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
|
||||
Katalog-Kontext je Stufe:
|
||||
|
||||
Primärfokus — Progression: {{focus_area_hints_on_progression}}
|
||||
Primärfokus — Vermeiden: {{focus_area_anti_patterns}}
|
||||
|
||||
Trainingsstil — Progression: {{training_type_hints_on_progression}}
|
||||
Trainingsstil — Vermeiden: {{training_type_anti_patterns}}
|
||||
|
||||
Zielgruppe — Progression: {{target_group_hints_on_progression}}
|
||||
Zielgruppe — Vermeiden: {{target_group_anti_patterns}}
|
||||
|
||||
Stilrichtung — Progression: {{style_direction_hints_on_progression}}
|
||||
|
||||
{{catalog_context_json}}
|
||||
|
||||
Für jeden Major Step: messbares Lernziel, load_profile, exercise_type, success_criteria, anti_patterns — Katalog-Slots beachten.
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"stage_specs": [
|
||||
{
|
||||
"major_step_index": 0,
|
||||
"learning_goal": "…",
|
||||
"load_profile": ["koordination", "gleichgewicht"],
|
||||
"exercise_type": "kihon_einzel",
|
||||
"success_criteria": ["…"],
|
||||
"anti_patterns": ["…"]
|
||||
}
|
||||
]
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_progression_stage_spec';
|
||||
|
||||
UPDATE ai_prompts
|
||||
SET template = $t$Du bist Assistent für Kampfsport-Trainer und extrahierst Start, Ziel und Ergänzungen für einen Progressionsgraphen.
|
||||
|
||||
Anfrage: {{goal_query}}
|
||||
Semantic Brief: {{semantic_brief_json}}
|
||||
Trainer-Notizen: {{user_notes}}
|
||||
|
||||
Katalog-Einordnung:
|
||||
Primärfokus: {{focus_area_description}}
|
||||
Trainingsstil: {{training_type_description}}
|
||||
Zielgruppe: {{target_group_description}}
|
||||
|
||||
Antworte NUR mit JSON:
|
||||
{
|
||||
"primary_topic": "…",
|
||||
"start_situation": "…",
|
||||
"target_state": "…",
|
||||
"roadmap_notes": "…",
|
||||
"extraction_notes": "…"
|
||||
}$t$,
|
||||
default_template = template
|
||||
WHERE slug = 'planning_progression_start_target';
|
||||
Reference in new issue
Block a user