-`topic_key` must match an existing socratic topic from the task catalog.
-`topic_key` muss mit einem vorhandenen Sokratischen Thema aus dem Aufgabenkatalog übereinstimmen.
-The links use normalized topic keys in the URL, and the app resolves them back to the catalog key.
-Die Links verwenden normalisierte Themen-Schlüssel in der URL, und die App löst diese wieder in den Katalog-Schlüssel auf.
-The fallback `/select-socratic`page only shows the topic dropdown and start button.
-Die Fallback-Seite`/select-socratic`zeigt nur das Themen-Dropdown-Menü und die Start-Schaltfläche an.
-If the link is invalid, the frontend falls back to`/select-socratic`.
-Wenn der Link ungültig ist, weicht das Frontend auf`/select-socratic` aus.
-The socratic dialog is not locked by deep link, so users can still switch topics afterwards.
-Der Sokratische Dialog ist nicht durch einen Deep Link gesperrt, sodass Benutzer das Thema auch nachträglich noch wechseln können.
To make it accessible over the network.
Um den Zugriff über das Netzwerk zu ermöglichen.
Add the frontend- and backend-adress in the`backend/.env`-file in the frontend- and backend-folder. Use the following command to run the front- and backend.
Füge die Frontend- und Backend-Adressen in die Datei`backend/.env` im Frontend- und Backend-Ordner ein. Verwende den folgenden Befehl, um das Frontend und Backend auszuführen.
- Edit `math-tutor/backend/app/api/chat.py` and update `SYSTEM_PROMPT`.
- Edit `math-tutor/backend/app/api/chat.py` and update `SYSTEM_PROMPT`.
Retrieval settings:
Retrieval settings:
- Frontend request parameters live in `math-tutor/frontend/src/pages/App.tsx`:
- Frontend-Anfrageparameter befinden sich in `math-tutor/frontend/src/pages/App.tsx`:
-`k`
-`k`
-`expand_links`
-`expand_links`
-`neighbor_expand`
-`neighbor_expand`
- Backend defaults are in `math-tutor/backend/app/api/retrieval.py` (`QueryRequest`).
-Die Backend-Standardeinstellungen sind enthalten `math-tutor/backend/app/api/retrieval.py` (`QueryRequest`).
-Core retrieval logic is in `math-tutor/backend/app/services/vector_store.py` (`retrieve`).
-Die Kernlogik für das Abrufen ist vorhanden `math-tutor/backend/app/services/vector_store.py` (`retrieve`).
## Testing
## Testing
currently there a multiple test to test some components seperatly. Check the test files for specific calling. Here are some example calls.
Derzeit gibt es mehrere Tests, um bestimmte Komponenten separat zu prüfen. Die genauen Aufrufe finden Sie in den Testdateien. Hier sind einige Beispielaufrufe.