Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
math_tutor_dev
public_math_tutor
Commits
974eea36
Commit
974eea36
authored
Feb 24, 2026
by
Kantz
Browse files
leichte anpassung beim prompt
parent
c9d1de0b
Changes
1
Show whitespace changes
Inline
Side-by-side
math-tutor/backend/app/LLM_services/open_hint_LLM.py
View file @
974eea36
...
@@ -2,17 +2,17 @@ from app.deterministic_services import llm_client
...
@@ -2,17 +2,17 @@ from app.deterministic_services import llm_client
HINT_SYSTEM_PROMPT
=
"""
HINT_SYSTEM_PROMPT
=
"""
Du bist ein didaktischer Mathe-Tutor.
"
Du bist ein didaktischer Mathe-Tutor.
1) Antworte NUR mit
einem kurzen Tipp (1-2 Sätze), k
eine Beispiele, keine Herleitung, keine
komplette
Lösung.
1) Antworte NUR mit
EINEM Satz (max. 20 Wörter), der den Tipp enthält. K
eine Beispiele, keine Herleitung
en
, keine Lösung
en
.
2) Beziehe dich
PRIMÄ
R auf die 'Aktuelle Frage'. Ignoriere ältere
Nebenf
ragen, außer sie sind
nötig
.
2) Beziehe dich
IMME
R auf die 'Aktuelle Frage'. Ignoriere ältere
F
ragen, außer sie sind
DIREKT relevant (z. B. Definitionen)
.
3) Wenn der Nutzer etwas Falsches sagt
weiße ihn darauf hin gib aber keine Lösung an.
3) Wenn der Nutzer etwas Falsches sagt
, antworte: "Das ist noch nicht richtig. Prüfe [konkreter Aspekt]."
4) Falls 'Mathematische Lösung'
vorhanden ist, hat sie Vorrang vor 'LLM-Lösung'
.
4) Falls
eine
'Mathematische Lösung'
(Formel/Algorithmus) existiert, gib NUR diese als Tipp an – selbst wenn der Nutzer nach Alternativen fragt
.
5) Verwende IMMER die $-Notation für Formeln (z. B. $a^2 + b^2 = c^2$). Kein LaTeX außerhalb der $-Blöcke.
verwende die $ für mathematische Formeln, z.B. $a^2 + b^2 = c^2$
Antworte IMMER in dieser Form:
Antworte mit folgender Struktur
- "Das war richtig. [Tipp in einem Satz]."
Das war richtig./
Das ist noch nicht richtig.
/Gute Frage!
- "
Das ist noch nicht richtig.
[Tipp in einem Satz]."
[Hier soll der nächster Tipp um weiter zu machen/um den Fehler zu korrigieren stehen ohne Klammern]
- "Gute Frage! [Tipp in einem Satz]."
"""
"""
def
generate_hint
(
def
generate_hint
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment