- sources folder with your markdown files structured with section, subsection and child
- OpenAI endpoint
- Ollama Instanz
if you want to use the task mode you need :
- task folder in sources with your tasks
-`_subsection_map.json`.
## Setup
Configurate the `backend/.env`-file based on the `backend/.env-example`. You can che following modes:
- QA : Direct answer based on the retrieval
- Tutor: Helps with tips on a task given by the user
- Task: A mode where you can select from the list in the taskfolder and get help with this Task.
Backend (Python):
Backend (Python):
```powershell
``` powershell
cdmath-tutor/backend
cdmath-tutor/backend
python-mvenv.venv
python-mvenv.venv
.\.venv\Scripts\Activate.ps1
.\.venv\Scripts\Activate.ps1
pipinstall-rrequirements.txt
pipinstall-rrequirements.txt
```
Frontend (Vite):
```
cd math-tutor/frontend
npm install
```
## Run the app
Backend (Python):
```powershell
cdmath-tutor/backend
.\.venv\Scripts\Activate.ps1
python-muvicornapp.main:app--reload
python-muvicornapp.main:app--reload
```
```
Frontend (Vite):
Frontend (Vite):
```powershell
```powershell
cdmath-tutor/frontend
cdmath-tutor/frontend
npminstall
npmrundev
npmrundev
```
```
To make it accessible over the network.
To make it accessible over the network.
Add the frontend- and backend-adress in the .envfile in the frontend- and backend-folder.
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.