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
13e707fe
Commit
13e707fe
authored
Jan 27, 2026
by
Kantz
Browse files
anpassung des Solvers
parent
d9c55517
Changes
2
Show whitespace changes
Inline
Side-by-side
math-tutor/backend/app/LLM_services/solver_LLM.py
View file @
13e707fe
...
@@ -13,7 +13,7 @@ def solve_question(question: str, context_sheet: str) -> str:
...
@@ -13,7 +13,7 @@ def solve_question(question: str, context_sheet: str) -> str:
prompt
=
(
prompt
=
(
"Frage:
\n
"
"Frage:
\n
"
+
question
+
question
+
"
\n
\
Kontex:
\n
"
+
"
\n
Kontex:
\n
"
+
context_sheet
+
context_sheet
)
)
result
=
llm_client
.
chat
(
result
=
llm_client
.
chat
(
...
...
math-tutor/backend/app/deterministic_services/orchestrator.py
View file @
13e707fe
...
@@ -50,8 +50,8 @@ def run_chat(messages: list[dict], draft: str | None = None) -> dict:
...
@@ -50,8 +50,8 @@ def run_chat(messages: list[dict], draft: str | None = None) -> dict:
history_text
=
context_store
.
format_history
(
messages
)
history_text
=
context_store
.
format_history
(
messages
)
sheet_text
=
context_store
.
format_sheet
(
sheet
)
sheet_text
=
context_store
.
format_sheet
(
sheet
)
llm_solution
=
solver_LLM
.
solve_question
(
messages
,
sheet_text
)
llm_solution
=
solver_LLM
.
solve_question
(
last_user
.
get
(
"content"
,
""
)
,
sheet_text
)
_append_tool_log
(
tool_log
,
"LLM_Solution"
,
messages
,
llm_solution
)
_append_tool_log
(
tool_log
,
"LLM_Solution"
,
last_user
.
get
(
"content"
,
""
)
,
llm_solution
)
context_store
.
add_LLM_solution
(
sheet
,
llm_solution
)
context_store
.
add_LLM_solution
(
sheet
,
llm_solution
)
decision
=
decision_LLM
.
needs_more_context
(
history_text
,
sheet_text
)
decision
=
decision_LLM
.
needs_more_context
(
history_text
,
sheet_text
)
_append_tool_log
(
tool_log
,
"decision"
,
sheet_text
,
decision
)
_append_tool_log
(
tool_log
,
"decision"
,
sheet_text
,
decision
)
...
...
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