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
d9a5740d
Commit
d9a5740d
authored
Jan 23, 2026
by
Kantz
Browse files
altlast
parent
f6bf4c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
math-tutor/backend/app/tools/retrieval_tool.py
deleted
100644 → 0
View file @
f6bf4c66
from
app.deterministic_services
import
retrieval_service
def
retrieve_context
(
query
:
str
)
->
dict
:
context
,
sources
=
retrieval_service
.
retrieve_context
(
query_text
=
query
)
return
{
"context"
:
context
,
"sources"
:
sources
}
TOOL_SPEC
=
{
"type"
:
"function"
,
"function"
:
{
"name"
:
"retrieve_context"
,
"description"
:
(
"Laedt Kontext aus dem Material via Vektor-Retrieval. "
"Nutze dieses Tool, wenn zusaetzlicher Kontext fuer die Antwort noetig ist."
),
"parameters"
:
{
"type"
:
"object"
,
"properties"
:
{
"query"
:
{
"type"
:
"string"
,
"description"
:
"Suchanfrage fuer das Retrieval"
},
},
"required"
:
[
"query"
],
},
},
}
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