Prerequisites
- Docker (recommended)
- Manual install
- Docker Desktop or Docker Engine 20+
- Docker Compose v2+
- An API key for an LLM provider (e.g., OpenAI, DeepSeek, Anthropic)
- An API key for an embedding provider (can be the same as your LLM provider)
Step-by-step setup
Configure environment variables
Copy the example environment file and open it in your editor:At minimum, fill in the six required fields:
The
EMBEDDING_DIMENSION must match your model’s actual output dimension. For text-embedding-3-small use 1536; for text-embedding-3-large use 3072.Start DeepTutor
- Docker Compose (build from source)
- Docker (pre-built image)
- Manual install
Verify the services are running
Once startup is complete, two services are available:
Open http://localhost:3782 in your browser. You should see the DeepTutor dashboard.
| Service | URL | Description |
|---|---|---|
| Frontend | http://localhost:3782 | Main web interface |
| Backend API docs | http://localhost:8001/docs | Interactive Swagger UI |
Create your first knowledge base
A knowledge base indexes your documents so every module can search them.
- Go to http://localhost:3782/knowledge.
- Click New Knowledge Base and enter a name (e.g.,
my-textbook). - Upload one or more PDF, TXT, or Markdown files.
- Watch the terminal for indexing progress — the knowledge graph and vector store are built in the background.
Run your first query
- Go to http://localhost:3782/solver.
- Select the knowledge base you just created.
- Type a question about your documents and click Solve.
- Watch the dual-loop reasoning process unfold in real time and receive a step-by-step answer with citations.
Common Docker commands
Next steps
Configuration
Tune LLM parameters, enable web search, configure TTS, and adjust research presets.
Docker deployment
Cloud deployment, custom ports, HTTPS reverse proxy, and pre-built image tags.
Knowledge base
Learn how to manage, update, and query your knowledge bases.
Smart solver
Explore the dual-loop reasoning architecture and available tool integrations.