mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:29:24 +08:00
1.5 KiB
1.5 KiB
Local Start
DeepTutor now has a single local onboarding flow.
Recommended flow
- Clone the repository.
- Activate a Python 3.11+ environment.
- Install from source:
pip install -e .
pip install ".[server]"
pip install ".[math-animator]" # optional
- Run:
python scripts/start_tour.py
The tour runs directly in the terminal and asks whether you want Web or CLI guidance.
Both flows end by writing a clean project-root .env. Runtime behavior config is loaded only from:
data/user/settings/main.yamldata/user/settings/agents.yamldata/user/settings/interface.json
What the tour does
- chooses the frontend and backend ports DeepTutor will keep using
- installs the selected dependency profile
- collects LLM, embedding, and optional search settings
- lets you test LLM and embedding before finalizing
- writes
.envand clears any stale temporarydata/user/settings/env.json
Start the app after onboarding
python scripts/start_web.py
This launcher reads the project-root .env, starts the FastAPI backend, and injects NEXT_PUBLIC_API_BASE into the frontend process automatically.
CLI-only usage
If you only want the terminal workflow, choose CLI inside start_tour.py. After that, common commands remain:
deeptutor chat
deeptutor kb list
deeptutor serve --port 8001
Notes
config/is no longer used at runtime.web/.env.localis no longer part of the supported local setup flow.- TTS settings are no longer part of the official configuration surface.