Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix & update docs

Bingxi Zhaob6600ab32c62
diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml
index 569201ffb..f249a15c0 100644
--- a/.github/workflows/linting.yaml
+++ b/.github/workflows/linting.yaml
@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v6
- name: Set up Python
- uses: actions/setup-python@v6
+ uses: actions/setup-python@v5
with:
python-version: '3.10'
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index a181def14..8fdb57049 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -84,7 +84,9 @@ jobs:
- name: Check core module imports
run: |
- python -c "from src.core.core import get_llm_config, load_config_with_main; print('✅ Core imports OK')"
+ python -c "from src.core import LLMFactory, llm_complete, sanitize_url; print('✅ Core imports OK')"
+ python -c "from src.services.llm.config import get_llm_config; print('✅ LLM config imports OK')"
+ python -c "from src.services.config.loader import load_config_with_main; print('✅ Config loader imports OK')"
python -c "from src.knowledge.kb import KnowledgeBase; print('✅ Knowledge imports OK')"
python -c "from src.tools.rag_tool import rag_search; print('✅ Tools imports OK')"
env:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4f41216e9..5cd0532a1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -97,21 +97,6 @@ git commit --no-verify -m "Emergency fix"
- `test: for adding missing tests or correcting existing tests.`
---
-## 📢 Call for PRs
-
-We welcome contributions in the following areas! Check our current roadmap and pick something that interests you:
-
-### 🗺️ Current Roadmap
-
-| Priority | Area | Description |
-|----------|------|-------------|
-| 🔴 High | **Multi-modal Support** | Enhance support for images, tables, and diagrams in documents |
-| 🔴 High | **Performance Optimization** | Improve response speed and reduce latency |
-| 🟡 Medium | **New LLM Integrations** | Add support for more LLM providers and models |
-| 🟡 Medium | **UI/UX Improvements** | Enhance the chat interface and user experience |
-| 🟢 Low | **Documentation** | Improve docs, tutorials, and examples |
-| 🟢 Low | **Testing** | Increase test coverage and add integration tests |
-
### 💡 How to Get Started
1. Check our [Issues](https://github.com/HKUDS/DeepTutor/issues) for tasks labeled `good first issue` or `help wanted`
diff --git a/Dockerfile b/Dockerfile
index 735363f26..d9fd71e85 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -282,7 +282,7 @@ if [ ! -f "/app/data/user/user_history.json" ]; then
echo " Initializing user data directories..."
python -c "
from pathlib import Path
-from src.core.setup import init_user_directories
+from src.services.setup import init_user_directories
init_user_directories(Path('/app'))
" 2>/dev/null || echo " ⚠️ Directory initialization skipped (will be created on first use)"
fi
diff --git a/README.md b/README.md
index 8bd9c516e..e5a1686af 100644
--- a/README.md
+++ b/README.md
@@ -236,11 +236,10 @@
• **Memory System**: Session state management and citation tracking for contextual continuity.
## 📋 Todo
-
> 🌟 Star to follow our future updates!
-- [-] Refactor RAG Module (see [Discussions](https://github.com/HKUDS/DeepTutor/discussions))
-- [ ] Deep-coding from idea generation
-- [ ] Personalized Interaction with Notebook
+- [ x ] Support More RAG Pipelines
+- [ x ] DataBase Robostness and Visualization
+- [ ] Personalized Interaction with Notebook
## 🚀 Getting Started
diff --git a/assets/releases/ver0-2-0.md b/assets/releases/ver0-2-0.md
new file mode 100644
index 000000000..e69de29bb
diff --git a/assets/releases/ver0-3-0.md b/assets/releases/ver0-3-0.md
new file mode 100644
index 000000000..a57f96eb6
--- /dev/null
+++ b/assets/releases/ver0-3-0.md
@@ -0,0 +1,87 @@
+# 🚀 DeepTutor v0.3.0 Release Notes
+
+**Release Date:** January 6, 2026
+
+We're excited to announce DeepTutor v0.3.0! This release focuses on **developer experience improvements**, **CI/CD automation**, and **simplified local deployment**.
+
+## ✨ Highlights
+
+### 🏗️ Unified PromptManager Architecture
+
+A major refactor consolidates all prompt loading across 10+ agent modules into a centralized `PromptManager` singleton:
+
+- **Global caching** with module-level invalidation for improved performance
+- **Language fallback chain** (`zh → en`, `en → zh`) for seamless i18n support
+- **ISO 639-1 compliance** — all `cn/` prompt directories renamed to `zh/`
+- Simplified agent code by removing redundant `_load_prompts` methods and class-level caches
+
+### 🤖 GitHub Actions & CI/CD
+
+Introducing automated workflows for better code quality and easier deployment:
+
+| Workflow | Description |
+|:---|:---|
+| `dependabot.yml` | Automatic dependency updates (pip, npm, GitHub Actions, Docker) |
+| `tests.yml` | Automated testing on push/PR |
+| `docker-publish.yml` | Auto-publish Docker images to GHCR |
+
+### 🐳 Pre-built Docker Images
+
+Deploy in ~30 seconds using our pre-built image from GitHub Container Registry:
+
+docker run -d --name deeptutor \
+ -p 8001:8001 -p 3782:3782 \
+ --env-file .env \
+ -v $(pwd)/data:/app/data \
+ ghcr.io/hkuds/deeptutor:latest### 🏠 Local-First LLM Configuration
+
+Simplified settings page now focuses exclusively on **local LLM providers**:
+
+- ✅ **Ollama** (default)
+- ✅ **LM Studio**
+- ❌ Removed cloud providers (OpenAI, Gemini, Azure, etc.)
+
+This aligns with DeepTutor's vision for privacy-first, self-hosted AI tutoring.
+
+## 📦 What's Changed
+
+### Core Infrastructure
+
+- Added `src/core/prompt_manager.py` with singleton `PromptManager`
+- Export `get_prompt_manager()` from `src/core/__init__.py`
+- Added `/api/v1/config/agents` endpoint for data-driven frontend configuration
+
+### Agent Modules Migrated (10 files)
+
+- `research/agents/base_agent.py`
+- `solve/base_agent.py`
+- `guide/agents/base_guide_agent.py`
+- `question/agents/generation_agent.py`
+- `question/agents/validation_agent.py`
+- `question/validation_workflow.py`
+- `ideagen/idea_generation_workflow.py`
+- `ideagen/material_organizer_agent.py`
+- `co_writer/edit_agent.py`
+- `co_writer/narrator_agent.py`
+
+### Removed Legacy Code
+
+- Deleted `src/agents/solve/utils/prompt_loader.py`
+- Removed `use_prompt_loader` parameter from `BaseAgent`
+- Cleaned up `_PROMPT_CACHE` class-level caches across all modules
+- Removed `PromptLoader` exports from `solve/__init__.py`
+
+## ⬆️Upgrade
+
+git pull origin main
+docker pull ghcr.io/hkuds/deeptutor:latest*Closes #33*
+## What's Changed
+* fix(UI): unrendered markdown in ActivityDetail card by @tusharkhatriofficial in https://github.com/HKUDS/DeepTutor/pull/26
+* chore: transtale readme to ru by @oshliaer in https://github.com/HKUDS/DeepTutor/pull/27
+* fix: improve reload_excludes configuration for uvicorn server and added support for newer models (openai) by @LouisACR in https://github.com/HKUDS/DeepTutor/pull/28
+* feat: Dynamic LLM Provider Support (Local & Cloud) by @ahmedjawedaj in https://github.com/HKUDS/DeepTutor/pull/34
+
+## 🤝New Contributors
+* @oshliaer made their first contribution in https://github.com/HKUDS/DeepTutor/pull/27
+* @LouisACR made their first contribution in https://github.com/HKUDS/DeepTutor/pull/28
+* @ahmedjawedaj made their first contribution in https://github.com/HKUDS/DeepTutor/pull/34
diff --git a/assets/releases/ver0-4-0.md b/assets/releases/ver0-4-0.md
new file mode 100644
index 000000000..f88627928
--- /dev/null
+++ b/assets/releases/ver0-4-0.md
@@ -0,0 +1,185 @@
+# 🚀 DeepTutor v0.4.0 Release Notes
+
+**Release Date:** 2026.01.09
+
+We're excited to announce DeepTutor v0.4.0! This release brings **New home page**, **Expanded provider support for LLM & Embeddings provider**, **RAG module decoupling**, **Web improvement**, and a bunch of minor improvements.
+
+> 🚧 **Possible Issues:** Docker deployment and local LLM/Embeddings setup (Ollama, LM Studio) may still have compatibility issues. We're actively working on improvements. **Issues and PRs are welcome!** → [Open an Issue](https://github.com/HKUDS/DeepTutor/issues) | [Contributing Guide](https://github.com/HKUDS/DeepTutor/blob/main/CONTRIBUTING.md)
+
+## ⚠️ Breaking Changes: Environment Configuration
+
+**Environment variable names have been updated.** Please update your `.env` file based on `.env.example`.
+
+| Old Variable | New Variable | Notes |
+|:---|:---|:---|
+| `OPENAI_API_KEY` | `LLM_API_KEY` | Now provider-agnostic |
+| `OPENAI_API_BASE` | `LLM_HOST` | Renamed for clarity |
+| `OPENAI_MODEL` | `LLM_MODEL` | Renamed for clarity |
+| `EMBEDDING_DIM` | `EMBEDDING_DIMENSION` | Full word naming |
+| *(hardcoded)* | `BACKEND_PORT` | Now configurable in `.env` (default: 8001) |
+| *(hardcoded)* | `FRONTEND_PORT` | Now configurable in `.env` (default: 3782) |
+
+**New required variables:**
+- `LLM_BINDING` — Provider type: `openai`, `ollama`, `azure_openai`, `anthropic`, etc.
+- `EMBEDDING_BINDING` — Provider type: `openai`, `ollama`, `jina`, `cohere`, etc.
+
+**New optional variables:**
+- `SEARCH_PROVIDER` — Web search provider: `perplexity` (default) or `baidu`
+- `BAIDU_API_KEY` — For Baidu AI Search (百度AI搜索)
+- `NEXT_PUBLIC_API_BASE` — Frontend API URL for **remote/LAN access** (e.g., `http://192.168.1.100:8001`)
+
+> 💡 **Remote Access:** If accessing DeepTutor from another device on your network, set `NEXT_PUBLIC_API_BASE` to your server's IP. If not set, defaults to `http://localhost:8001` (local machine only).
+
+> 📌 **Action Required:** Copy `.env.example` to `.env` and update your configuration before upgrading.
+
+## ✨ Highlights
+
+### 🔌 Multi-Provider LLM & Embedding Support
+
+Expanded from local-only to a full provider ecosystem:
+
+| LLM Providers | Embedding Providers |
+|:---|:---|
+| OpenAI, Anthropic, Azure OpenAI | OpenAI, Azure OpenAI, Jina AI |
+| Ollama, Ollama Cloud, LM Studio | Cohere, Ollama, LM Studio |
+| Groq, OpenRouter, DeepSeek, Gemini | HuggingFace (OpenAI-compatible) |
+
+New adapter-based architecture in `src/services/embedding/adapters/` enables easy addition of new providers.
+
+### 🧩 RAG Module Decoupling
+
+New `RAGService` class provides a unified, provider-agnostic interface:
+
+```python
+from src.services.rag import RAGService
+
+service = RAGService() # Uses RAG_PROVIDER env var (default: raganything)
+await service.initialize("my_kb", ["doc.pdf"])
+result = await service.search("query", "my_kb")
+```
+
+> 📌 Currently supports **RAG-Anything** (MinerU + LightRAG). More backends coming soon!
+
+### 🌙 Dark Mode & UI Overhaul
+
+- **Theme toggle** with system preference detection & localStorage persistence
+- **Collapsible sidebar** with icon-only compact mode
+- **Settings page rebuild**: Environment variable management with category-based organization
+- Consistent dark mode styling across all pages
+
+### ⚙️ Centralized Configuration
+
+New `settings.py` using `pydantic-settings` for unified configuration:
+
+| Category | Environment Variables |
+|:---|:---|
+| LLM | `LLM_BINDING`, `LLM_MODEL`, `LLM_HOST`, `LLM_API_KEY` |
+| Embedding | `EMBEDDING_BINDING`, `EMBEDDING_MODEL`, `EMBEDDING_HOST`, `EMBEDDING_API_KEY`, `EMBEDDING_DIMENSION` |
+| RAG | `RAG_PROVIDER` |
+| TTS | `TTS_MODEL`, `TTS_URL`, `TTS_API_KEY`, `TTS_VOICE` |
+| Search | `PERPLEXITY_API_KEY` |
+
+Runtime updates via `/api/settings/env` with automatic `.env` persistence.
+
+## 📦 What's Changed
+
+### Core Infrastructure
+
+- Added `settings.py` with `pydantic-settings` for centralized config management
+- Added `src/core/llm_factory.py` with unified `llm_complete()` function
+- Added `/api/embedding-providers` router for embedding configuration CRUD
+- Added `/api/settings/env` endpoints for runtime environment management
+
+### Services Module Restructure (`src/services/`)
+
+```
+services/
+├── embedding/ # 🆕 Adapter-based embedding providers
+│ ├── adapters/ # Provider implementations
+│ │ ├── base.py, openai_compatible.py, jina.py, cohere.py, ollama.py
+│ ├── client.py # Unified embedding client
+│ ├── provider.py # Provider manager (singleton)
+│ └── provider_config.py # Multi-provider config persistence
+├── llm/ # LLM configuration & client
+├── rag/ # 🆕 Decoupled RAG system
+│ ├── service.py # Unified RAGService entry point
+│ ├── factory.py # Pipeline factory
+│ ├── pipelines/ # Backend implementations
+│ │ └── raganything.py, lightrag.py, llamaindex.py, academic.py
+│ └── components/ # Modular RAG components
+│ ├── chunkers/ # Text chunking strategies
+│ ├── parsers/ # Document parsers (PDF, Markdown, Text)
+│ ├── embedders/ # Embedding wrappers
+│ ├── indexers/ # Vector & Graph indexers
+│ └── retrievers/ # Dense & Hybrid retrieval
+├── prompt/ # PromptManager singleton
+├── tts/ # TTS configuration
+└── setup/ # Initialization utilities
+```
+
+### Frontend Updates
+
+- 🆕 Added **Home page** (`web/app/page.tsx`) with feature overview
+- 🆕 Rebuilt **History page** (`web/app/history/page.tsx`) with improved activity views
+- Added `web/lib/theme.ts` with theme utilities (`initializeTheme()`, `setTheme()`)
+- Added `web/hooks/useTheme.ts` for React theme hook
+- Added `web/components/ThemeScript.tsx` for SSR theme hydration
+- Added `web/components/ChatSessionDetail.tsx` for history page
+- Refactored `Sidebar.tsx` with collapsible mode
+- Rebuilt `settings/page.tsx` with environment variable management
+
+### IdeaGen Improvements
+
+Enhanced 4-stage workflow: Loose Filter → Explore Ideas → Strict Filter → Generate Statement
+
+## 🐳 Docker
+
+Streamlined single-container deployment:
+
+```bash
+docker compose up -d
+# Exposes: backend (8001), frontend (3782)
+# Volumes: ./config (ro), ./data/user, ./data/knowledge_bases
+```
+
+Cloud deployment supported via `NEXT_PUBLIC_API_BASE_EXTERNAL`.
+
+## ⬆️ Upgrade
+
+```bash
+git pull origin main
+docker compose build && docker compose up -d
+```
+
+**Migration Notes:**
+- Rename `EMBEDDING_DIM` → `EMBEDDING_DIMENSION`
+- Default RAG provider changed to `raganything`
+
+## What's Changed
+* chore(deps): bump actions/checkout from 4 to 6 by @dependabot in https://github.com/HKUDS/DeepTutor/pull/39
+* chore(deps): bump actions/configure-pages from 4 to 5 by @dependabot in https://github.com/HKUDS/DeepTutor/pull/40
+* chore(deps): bump lucide-react from 0.460.0 to 0.562.0 in /web by @dependabot in https://github.com/HKUDS/DeepTutor/pull/43
+* chore(deps): bump react-markdown from 9.1.0 to 10.1.0 in /web by @dependabot in https://github.com/HKUDS/DeepTutor/pull/47
+* chore(deps): bump node from 20-slim to 25-slim by @dependabot in https://github.com/HKUDS/DeepTutor/pull/42
+* chore(deps): bump actions/upload-pages-artifact from 3 to 4 by @dependabot in https://github.com/HKUDS/DeepTutor/pull/38
+* chore(deps): bump framer-motion from 11.18.2 to 12.24.0 in /web by @dependabot in https://github.com/HKUDS/DeepTutor/pull/44
+* chore(deps): bump tailwind-merge from 2.6.0 to 3.4.0 in /web by @dependabot in https://github.com/HKUDS/DeepTutor/pull/45
+* chore(deps): bump @types/node from 22.19.3 to 25.0.3 in /web by @dependabot in https://github.com/HKUDS/DeepTutor/pull/48
+* fix(ci): Resolve linting and formatting issues by @ahmedjawedaj in https://github.com/HKUDS/DeepTutor/pull/50
+* Feature/rag plugin system by @tusharkhatriofficial in https://github.com/HKUDS/DeepTutor/pull/57
+* fix: resolve double decoration in embedding functions for OpenRouter by @Laksh-star in https://github.com/HKUDS/DeepTutor/pull/64
+* Fix critical jspdf vuln and clean up pre-commit hooks by @RinZ27 in https://github.com/HKUDS/DeepTutor/pull/62
+* UI/theme by @tusharkhatriofficial in https://github.com/HKUDS/DeepTutor/pull/51
+* feat: support baidu ai search by @yugasun in https://github.com/HKUDS/DeepTutor/pull/55
+* Cleanup: address reviewer feedback on PR #62 (Final) by @RinZ27 in https://github.com/HKUDS/DeepTutor/pull/67
+* provides more llm providers supports, UI updates by @kushalgarg101 in https://github.com/HKUDS/DeepTutor/pull/77
+* Dev embeddings providers by @FacundoMajda in https://github.com/HKUDS/DeepTutor/pull/79
+
+## 🤝 New Contributors
+* @dependabot made their first contribution in https://github.com/HKUDS/DeepTutor/pull/39
+* @Laksh-star made their first contribution in https://github.com/HKUDS/DeepTutor/pull/64
+* @yugasun made their first contribution in https://github.com/HKUDS/DeepTutor/pull/55
+* @kushalgarg101 made their first contribution in https://github.com/HKUDS/DeepTutor/pull/77
+* @FacundoMajda made their first contribution in https://github.com/HKUDS/DeepTutor/pull/79
+
+**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v0.3.0...v0.4.0
diff --git a/docs/features/overview.md b/docs/features/overview.md
index c34594c1f..fe1caaa1b 100644
--- a/docs/features/overview.md
+++ b/docs/features/overview.md
@@ -4,7 +4,9 @@
### 💬 User Interface Layer
• **Intuitive Interaction**: Simple bidirectional query-response flow for intuitive interaction.
-• **Structured Output**: Structured response generation that organizes complex information into actionable outputs.
+• **Structured Output**: Structured response generation that organizes complex information into actionable outputs.
+• **Dark/Light Mode**: System-wide theme support with automatic system preference detection.
+• **Collapsible Sidebar**: Compact navigation with icon-only mode for focused learning.
### 🤖 Intelligent Agent Modules
• **Problem Solving & Assessment**: Step-by-step problem solving and custom assessment generation.
@@ -13,7 +15,8 @@
### 🔧 Tool Integration Layer
• **Information Retrieval**: RAG hybrid retrieval, real-time web search, and academic paper databases.
-• **Processing & Analysis**: Python code execution, query item lookup, and PDF parsing for document analysis.
+• **Processing & Analysis**: Python code execution, query item lookup, and PDF parsing for document analysis.
+• **Multi-Provider Support**: Flexible LLM providers (OpenAI, Anthropic, Ollama, etc.) and embedding adapters (OpenAI, Jina, Cohere, Ollama, etc.).
### 🧠 Knowledge & Memory Foundation
• **Knowledge Graph**: Entity-relation mapping for semantic connections and knowledge discovery.
diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md
index 9ff938b63..e7f729ddf 100644
--- a/docs/guide/configuration.md
+++ b/docs/guide/configuration.md
@@ -1,31 +1,37 @@
# Configuration
-DeepTutor uses YAML configuration files for easy customization.
+DeepTutor uses YAML configuration files and environment variables for easy customization.
## 📁 Configuration Files
```
config/
-├── main.yaml # Main system configuration (all module settings)
+├── main.yaml # Main system configuration (paths, tools, module settings)
├── agents.yaml # Unified agent parameters (temperature, max_tokens)
└── README.md # Full documentation
```
| File | Purpose |
|------|---------|
-| `config/main.yaml` | Server ports, paths, tools, module settings |
+| `config/main.yaml` | Paths, tools, module settings |
| `config/agents.yaml` | LLM parameters for each agent module |
-| `.env` | API keys and secrets |
+| `.env` | API keys, server ports, and service configuration |
## 🔧 Server Configuration
-Edit `config/main.yaml`:
+Server ports are configured in `.env` file:
-```yaml
-server:
- backend_port: 8001
- frontend_port: 3782
+```bash
+# Backend API port (default: 8001)
+BACKEND_PORT=8001
+
+# Frontend web port (default: 3782)
+FRONTEND_PORT=3782
+```
+
+System language is configured in `config/main.yaml`:
+```yaml
system:
language: en # "zh" or "en"
```
@@ -71,36 +77,77 @@ co_writer:
Create a `.env` file based on `.env.example`:
```bash
+# ============================================================================
+# Server Configuration
+# ============================================================================
+BACKEND_PORT=8001 # Backend API port
+FRONTEND_PORT=3782 # Frontend web port
+
+# For remote/LAN access - set to your server's IP address
+# Example: http://192.168.1.100:8001 (if not set, defaults to localhost)
+# NEXT_PUBLIC_API_BASE=http://your-server-ip:8001
+
# ============================================================================
# LLM (Large Language Model) Configuration - Required
# ============================================================================
-LLM_BINDING=openai # Options: openai, azure_openai, ollama
+LLM_BINDING=openai # Provider type (see supported list below)
LLM_MODEL=gpt-4o # e.g., gpt-4o, deepseek-chat, qwen-plus
LLM_HOST=https://api.openai.com/v1
LLM_API_KEY=your_api_key
+DISABLE_SSL_VERIFY=false # Set true for self-signed certificates
# ============================================================================
# Embedding Model Configuration - Required for Knowledge Base
# ============================================================================
-EMBEDDING_BINDING=openai
-EMBEDDING_MODEL=text-embedding-3-large # e.g., text-embedding-3-large, text-embedding-3-small
-EMBEDDING_DIM=3072 # Important !! Must match model dimensions
+EMBEDDING_BINDING=openai # Provider type (see supported list below)
+EMBEDDING_MODEL=text-embedding-3-large # e.g., text-embedding-3-large, nomic-embed-text
+EMBEDDING_DIMENSION=3072 # Important! Must match model dimensions
EMBEDDING_HOST=https://api.openai.com/v1
EMBEDDING_API_KEY=your_api_key
# ============================================================================
-# Optional Features
+# Web Search Configuration - Optional
# ============================================================================
-# Web Search (Perplexity API)
+SEARCH_PROVIDER=perplexity # Options: perplexity, baidu
PERPLEXITY_API_KEY=your_perplexity_key
+BAIDU_API_KEY=your_baidu_key # For Baidu AI Search (百度AI搜索)
-# TTS (Text-to-Speech) for Co-Writer narration
+# ============================================================================
+# TTS (Text-to-Speech) Configuration - Optional
+# ============================================================================
TTS_MODEL=
TTS_URL=
TTS_API_KEY=
```
-> **Note**: Please make sure you have configured the right dimensions. Currently our RAG module uses RAG-Anything, you could further check [its repo](https://github.com/HKUDS/RAG-Anything) for more questions.
+## 🔌 Supported Providers
+
+### LLM Providers
+
+| Provider | `LLM_BINDING` Value | Notes |
+|:---------|:--------------------|:------|
+| OpenAI | `openai` | GPT-4o, GPT-4, GPT-3.5, etc. |
+| Anthropic | `anthropic` | Claude 3.5, Claude 3, etc. |
+| Azure OpenAI | `azure_openai` | Enterprise deployments |
+| Ollama | `ollama` | Local models (auto adds `/v1` suffix) |
+| Groq | `groq` | Fast inference |
+| OpenRouter | `openrouter` | Multi-model gateway |
+| DeepSeek | `deepseek` | DeepSeek-V3, DeepSeek-R1 |
+| Google Gemini | `gemini` | OpenAI-compatible mode |
+
+### Embedding Providers
+
+| Provider | `EMBEDDING_BINDING` Value | Notes |
+|:---------|:--------------------------|:------|
+| OpenAI | `openai` | text-embedding-3-large/small |
+| Azure OpenAI | `azure_openai` | Enterprise deployments |
+| Jina AI | `jina` | jina-embeddings-v3 |
+| Cohere | `cohere` | embed-v3 series |
+| Ollama | `ollama` | Local embedding models |
+| LM Studio | `lm_studio` | Local inference server |
+| HuggingFace | `huggingface` | OpenAI-compatible endpoints |
+
+> **Note**: Please make sure you have configured the correct `EMBEDDING_DIMENSION`. Currently our RAG module uses RAG-Anything, you could further check [its repo](https://github.com/HKUDS/RAG-Anything) for more questions.
## 🛠️ Tool Configuration
diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md
index e60d40941..5bdfea2de 100644
--- a/docs/guide/getting-started.md
+++ b/docs/guide/getting-started.md
@@ -54,7 +54,15 @@ By default, the application uses:
- **Backend (FastAPI)**: `8001`
- **Frontend (Next.js)**: `3782`
-You can modify these ports in `config/main.yaml` by editing the `server.backend_port` and `server.frontend_port` values.
+You can modify these ports in your `.env` file:
+
+```bash
+BACKEND_PORT=8001
+FRONTEND_PORT=3782
+
+# For remote/LAN access, set your server's IP address:
+# NEXT_PUBLIC_API_BASE=http://192.168.1.100:8001
+```
**LLM Configuration**: Agent settings for `temperature` and `max_tokens` are centralized in `config/agents.yaml`. Each module (guide, solve, research, question, ideagen, co_writer) has customizable parameters. See [Configuration](/guide/configuration) for details.
diff --git a/docs/roadmap.md b/docs/roadmap.md
index cc364e791..c0e530452 100644
--- a/docs/roadmap.md
+++ b/docs/roadmap.md
@@ -2,12 +2,23 @@
Our vision for DeepTutor's future development.
+## ✅ Recently Completed (v0.4.0)
+
+- [x] **RAG Module Decoupling** — Modular RAG architecture with provider-agnostic interface
+ - Currently supports RAG-Anything (MinerU + LightRAG)
+ - More backends coming soon
+- [x] **Multi-Provider Support** — Expanded LLM and Embedding provider options
+ - LLM: OpenAI, Anthropic, Azure, Ollama, Groq, OpenRouter, DeepSeek, Gemini
+ - Embedding: OpenAI, Jina, Cohere, Ollama, LM Studio, HuggingFace
+- [x] **Dark Mode** — System-wide dark/light theme support
+- [x] **Environment Configuration** — Unified `.env` based configuration
+
## 🚀 Planned Features
- [ ] **Deepcoding from Idea Generation** — Transform research ideas into working prototypes
- [ ] **Personalized Memory** — Adapt tutoring style based on user learning history
-- [ ] **Alternative RAG Techniques** — More choice of base RAG methods
-
+- [ ] **Additional RAG Backends** — LlamaIndex, ChromaDB, Pinecone integration
+- [ ] **More Embedding Adapters** — Voyage AI, Mixedbread, local transformers
## 💭 Under Consideration