mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 16:41:33 +08:00
update readme
This commit is contained in:
251
.github/workflows/docker-publish.yml
vendored
251
.github/workflows/docker-publish.yml
vendored
@@ -1,251 +0,0 @@
|
||||
name: Build and Publish Docker Image
|
||||
|
||||
on:
|
||||
# Manual trigger only - gives full control over when images are published
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "Version tag (e.g., 0.6.0, 1.0.0) - without 'v' prefix"
|
||||
required: true
|
||||
type: string
|
||||
push_latest:
|
||||
description: "Also update the 'latest' tag?"
|
||||
required: true
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
# IMAGE_NAME must be lowercase for Docker
|
||||
IMAGE_NAME: hkuds/deeptutor
|
||||
|
||||
jobs:
|
||||
# ============================================
|
||||
# Build Multi-Architecture Docker Image
|
||||
# ============================================
|
||||
# This job builds both AMD64 and ARM64 images and creates
|
||||
# a multi-arch manifest so Docker automatically pulls the
|
||||
# correct architecture for each user's system.
|
||||
# ============================================
|
||||
build-multiarch:
|
||||
name: Build Multi-Arch Image
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Free disk space
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
tool-cache: true
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: true
|
||||
docker-images: true
|
||||
swap-storage: true
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Validate and set version
|
||||
id: version
|
||||
run: |
|
||||
VERSION="${{ github.event.inputs.version }}"
|
||||
|
||||
# Validate version format (e.g., 0.6.0, 1.0.0)
|
||||
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
echo "❌ Error: Invalid version format '$VERSION'"
|
||||
echo " Expected format: X.Y.Z (e.g., 0.6.0, 1.0.0)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "📌 Version: ${VERSION}"
|
||||
echo "📌 Push latest: ${{ github.event.inputs.push_latest }}"
|
||||
|
||||
# ============================================
|
||||
# Build and push multi-arch image
|
||||
# Docker will automatically create a manifest list
|
||||
# that includes both architectures
|
||||
# ============================================
|
||||
- name: Build and push multi-arch image
|
||||
id: build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
target: production
|
||||
push: true
|
||||
# Build for both architectures in a single command
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
||||
labels: |
|
||||
org.opencontainers.image.title=DeepTutor
|
||||
org.opencontainers.image.description=AI-Powered Personalized Learning Assistant
|
||||
org.opencontainers.image.version=${{ steps.version.outputs.version }}
|
||||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
build-args: |
|
||||
BACKEND_PORT=8001
|
||||
provenance: false
|
||||
|
||||
# ============================================
|
||||
# Update 'latest' tag if requested
|
||||
# ============================================
|
||||
- name: Tag as latest
|
||||
if: github.event.inputs.push_latest == 'true'
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
|
||||
echo "🏷️ Tagging ${VERSION} as latest..."
|
||||
|
||||
# Pull the manifest and retag as latest
|
||||
docker buildx imagetools create \
|
||||
--tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${VERSION}
|
||||
|
||||
echo "✅ Successfully tagged as latest"
|
||||
|
||||
# ============================================
|
||||
# Create architecture-specific tags for compatibility
|
||||
# Some users may prefer explicit architecture tags
|
||||
# ============================================
|
||||
- name: Create architecture-specific tags
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
||||
|
||||
echo "🏷️ Creating architecture-specific tags..."
|
||||
|
||||
# Create version-specific architecture tags
|
||||
# These are optional convenience tags for users who want explicit control
|
||||
|
||||
# For AMD64
|
||||
docker buildx imagetools create \
|
||||
--tag ${IMAGE}:${VERSION}-amd64 \
|
||||
${IMAGE}:${VERSION} --platform linux/amd64 || true
|
||||
|
||||
# For ARM64
|
||||
docker buildx imagetools create \
|
||||
--tag ${IMAGE}:${VERSION}-arm64 \
|
||||
${IMAGE}:${VERSION} --platform linux/arm64 || true
|
||||
|
||||
# Create latest-arm64 for backward compatibility (only if pushing latest)
|
||||
if [ "${{ github.event.inputs.push_latest }}" == "true" ]; then
|
||||
docker buildx imagetools create \
|
||||
--tag ${IMAGE}:latest-arm64 \
|
||||
${IMAGE}:latest --platform linux/arm64 || true
|
||||
fi
|
||||
|
||||
echo "✅ Architecture-specific tags created"
|
||||
|
||||
# ============================================
|
||||
# Verify the multi-arch manifest
|
||||
# ============================================
|
||||
- name: Verify multi-arch manifest
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
||||
|
||||
echo "🔍 Verifying multi-arch manifest for ${IMAGE}:${VERSION}..."
|
||||
docker buildx imagetools inspect ${IMAGE}:${VERSION}
|
||||
|
||||
if [ "${{ github.event.inputs.push_latest }}" == "true" ]; then
|
||||
echo ""
|
||||
echo "🔍 Verifying multi-arch manifest for ${IMAGE}:latest..."
|
||||
docker buildx imagetools inspect ${IMAGE}:latest
|
||||
fi
|
||||
|
||||
# ============================================
|
||||
# Generate Summary
|
||||
# ============================================
|
||||
summary:
|
||||
name: Generate Summary
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-multiarch]
|
||||
if: always()
|
||||
|
||||
steps:
|
||||
- name: Get version
|
||||
id: version
|
||||
run: |
|
||||
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate image summary
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
|
||||
echo "## 🐳 Docker Images Build Summary" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Registry:** \`${{ env.REGISTRY }}\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Version:** \`${VERSION}\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
echo "### Build Status" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
if [ "${{ needs.build-multiarch.result }}" == "success" ]; then
|
||||
echo "✅ **Multi-arch build successful!**" >> $GITHUB_STEP_SUMMARY
|
||||
else
|
||||
echo "❌ **Build failed**" >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
echo "### Available Images" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| Tag | Architectures | Description |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "|-----|---------------|-------------|" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| \`:latest\` | AMD64, ARM64 | Latest stable release (auto-detects architecture) |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| \`:${VERSION}\` | AMD64, ARM64 | Version ${VERSION} (auto-detects architecture) |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| \`:${VERSION}-amd64\` | AMD64 only | Explicit AMD64 image |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| \`:${VERSION}-arm64\` | ARM64 only | Explicit ARM64 image |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| \`:latest-arm64\` | ARM64 only | Latest ARM64 (backward compatibility) |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
echo "### Quick Start" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Recommended (auto-detects your architecture):**" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
|
||||
echo "docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**Run the container:**" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
|
||||
echo "docker run -d --name deeptutor \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " -p 8001:8001 -p 3782:3782 \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " --env-file .env \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " -e LLM_MODEL=gpt-4o \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " -e LLM_API_KEY=your-api-key \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " -e EMBEDDING_MODEL=text-embedding-3-large \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " -e EMBEDDING_API_KEY=your-api-key \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " -v \$(pwd)/data/user:/app/data/user \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " -v \$(pwd)/data/knowledge_bases:/app/data/knowledge_bases \\\\" >> $GITHUB_STEP_SUMMARY
|
||||
echo " ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_STEP_SUMMARY
|
||||
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
echo "### Architecture Detection" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "The \`:latest\` and \`:${VERSION}\` tags are **multi-architecture images**." >> $GITHUB_STEP_SUMMARY
|
||||
echo "Docker will automatically pull the correct image for your system:" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- **AMD64**: Intel/AMD processors (most Windows PCs, Linux servers)" >> $GITHUB_STEP_SUMMARY
|
||||
echo "- **ARM64**: Apple Silicon (M1/M2/M3/M4), AWS Graviton, Raspberry Pi 4+" >> $GITHUB_STEP_SUMMARY
|
||||
61
.github/workflows/docs.yaml
vendored
61
.github/workflows/docs.yaml
vendored
@@ -1,61 +0,0 @@
|
||||
name: Deploy Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev]
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- '.github/workflows/docs.yaml'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: docs/package-lock.json
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
with:
|
||||
enablement: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: cd docs && npm ci
|
||||
|
||||
- name: Build with VitePress
|
||||
run: cd docs && npm run build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
with:
|
||||
path: docs/.vitepress/dist
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
108
.github/workflows/linting.yaml
vendored
108
.github/workflows/linting.yaml
vendored
@@ -1,108 +0,0 @@
|
||||
name: Linting and Formatting
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
paths:
|
||||
- "deeptutor/**"
|
||||
- "deeptutor_cli/**"
|
||||
- "web/**"
|
||||
- "scripts/**"
|
||||
- "tests/**"
|
||||
- ".pre-commit-config.yaml"
|
||||
- "pyproject.toml"
|
||||
- ".github/workflows/linting.yaml"
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
paths:
|
||||
- "deeptutor/**"
|
||||
- "deeptutor_cli/**"
|
||||
- "web/**"
|
||||
- "scripts/**"
|
||||
- "tests/**"
|
||||
- ".pre-commit-config.yaml"
|
||||
- "pyproject.toml"
|
||||
- ".github/workflows/linting.yaml"
|
||||
|
||||
jobs:
|
||||
python-lint:
|
||||
name: Python Linting
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Cache pre-commit
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pre-commit
|
||||
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||
restore-keys: |
|
||||
pre-commit-
|
||||
|
||||
- name: Install pre-commit
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pre-commit tomli
|
||||
|
||||
- name: Run pre-commit on Python files
|
||||
run: |
|
||||
echo "🔍 Running pre-commit hooks on Python files..."
|
||||
pre-commit run --all-files --verbose
|
||||
|
||||
frontend-lint:
|
||||
name: Frontend Linting
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
cache-dependency-path: web/package-lock.json
|
||||
|
||||
- name: Install frontend dependencies
|
||||
working-directory: ./web
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
working-directory: ./web
|
||||
run: npm run lint
|
||||
|
||||
- name: TypeScript type check
|
||||
working-directory: ./web
|
||||
run: npx tsc --noEmit
|
||||
|
||||
lint-summary:
|
||||
name: Lint Summary
|
||||
runs-on: ubuntu-latest
|
||||
needs: [python-lint, frontend-lint]
|
||||
if: always()
|
||||
|
||||
steps:
|
||||
- name: Generate summary
|
||||
run: |
|
||||
echo "## 🔍 Linting Results" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| Check | Status |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| Python (pre-commit) | ${{ needs.python-lint.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
|
||||
echo "| Frontend (ESLint + TypeScript) | ${{ needs.frontend-lint.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
- name: Fail if linting failed
|
||||
if: needs.python-lint.result == 'failure' || needs.frontend-lint.result == 'failure'
|
||||
run: exit 1
|
||||
41
.github/workflows/sync-branch.yml
vendored
41
.github/workflows/sync-branch.yml
vendored
@@ -1,41 +0,0 @@
|
||||
name: Sync Branch
|
||||
|
||||
on:
|
||||
# Run automatically every 4 hours
|
||||
schedule:
|
||||
- cron: '0 */4 * * *'
|
||||
# Allow manual trigger
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: main
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Sync main to sync branch
|
||||
run: |
|
||||
# Check whether the sync branch exists
|
||||
if git ls-remote --heads origin sync | grep -q sync; then
|
||||
echo "sync branch exists, updating..."
|
||||
else
|
||||
echo "sync branch does not exist, creating..."
|
||||
fi
|
||||
|
||||
# Force-push main branch contents to sync branch
|
||||
git push origin main:sync --force
|
||||
|
||||
echo "✅ Successfully synced main branch to sync branch"
|
||||
48
.github/workflows/update-roster.yml
vendored
48
.github/workflows/update-roster.yml
vendored
@@ -1,48 +0,0 @@
|
||||
name: Update Repo Roster
|
||||
|
||||
on:
|
||||
# Run once a day (at 00:00 UTC)
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
# Allow manual trigger
|
||||
workflow_dispatch:
|
||||
# Run when stars/forks might change (on push to main/dev)
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
paths:
|
||||
- 'scripts/generate_roster.py'
|
||||
|
||||
jobs:
|
||||
update-roster:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
|
||||
- name: Generate roster images
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
python scripts/generate_roster.py \
|
||||
--repo HKUDS/DeepTutor \
|
||||
--output assets/roster \
|
||||
--theme dark \
|
||||
--display 6
|
||||
|
||||
- name: Commit and push if changed
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add assets/roster/
|
||||
git diff --quiet --cached || git commit -m "chore: update repo roster images [skip ci]"
|
||||
git push
|
||||
@@ -87,7 +87,7 @@ FROM python:3.11-slim AS production
|
||||
# Labels
|
||||
LABEL maintainer="DeepTutor Team" \
|
||||
description="DeepTutor: AI-Powered Personalized Learning Assistant" \
|
||||
version="0.1.0"
|
||||
version="1.0.0"
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
|
||||
64
README.md
64
README.md
@@ -2,11 +2,9 @@
|
||||
|
||||
<img src="assets/logo-ver2.png" alt="DeepTutor" width="140" style="border-radius: 15px;">
|
||||
|
||||
# DeepTutor
|
||||
# DeepTutor: Towards Agentic Personalized Tutoring
|
||||
|
||||
**Your AI-Powered Learning Companion**
|
||||
|
||||
[](https://www.python.org/downloads/)
|
||||
[](https://www.python.org/downloads/)
|
||||
[](https://nextjs.org/)
|
||||
[](LICENSE)
|
||||
|
||||
@@ -24,15 +22,41 @@
|
||||
|
||||
</div>
|
||||
|
||||
DeepTutor is an open-source intelligent learning platform that goes far beyond simple Q&A. It brings together conversational AI, personal tutoring agents, knowledge management, and adaptive learning into a unified experience — designed for learners who want depth, not just answers.
|
||||
---
|
||||
### 📰 News
|
||||
|
||||
<div align="center">
|
||||
<img src="assets/screenshots/home.png" alt="DeepTutor Interface" width="90%" style="border-radius: 10px;">
|
||||
</div>
|
||||
> **[2026.3.24]** Long time no see! ✨ DeepTutor v1.0.0 is finally here — an agent-native evolution featuring a lightweight refactor, TutorBot, and flexible mode switching under the Apache-2.0 license. A new chapter begins, and our story continues!
|
||||
|
||||
> **[2026.2.6]** 🚀 We've reached 10k stars in just 39 days! A huge thank you to our incredible community for the support!
|
||||
|
||||
> **[2026.1.1]** Happy New Year! Join our [Discord](https://discord.gg/eRsjPgMU4t), [WeChat](https://github.com/HKUDS/DeepTutor/issues/78), or [Discussions](https://github.com/HKUDS/DeepTutor/discussions) — let's shape the future of DeepTutor together!
|
||||
|
||||
> **[2025.12.29]** DeepTutor is officially released!
|
||||
|
||||
### 📦 Releases
|
||||
|
||||
> **[2026.3.24]** [v1.0.0](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.0) — Agent-native refactor with flexible tool integration, CLI & SDK entry points, TutorBot powered by the nanobot engine, Co-Writer, Guided Learning, and persistent memory. DeepTutor is now lighter, faster, and better than ever!
|
||||
|
||||
<details>
|
||||
<summary><b>Past releases</b></summary>
|
||||
|
||||
> **[2026.1.23]** [v0.6.0](https://github.com/HKUDS/DeepTutor/releases/tag/v0.6.0) — Session persistence, incremental document upload, flexible RAG pipeline import, and full Chinese localization.
|
||||
|
||||
> **[2026.1.18]** [v0.5.2](https://github.com/HKUDS/DeepTutor/releases/tag/v0.5.2) — Docling support for RAG-Anything, logging system optimization, and bug fixes.
|
||||
|
||||
> **[2026.1.15]** [v0.5.0](https://github.com/HKUDS/DeepTutor/releases/tag/v0.5.0) — Unified service configuration, RAG pipeline selection per knowledge base, question generation overhaul, and sidebar customization.
|
||||
|
||||
> **[2026.1.9]** [v0.4.0](https://github.com/HKUDS/DeepTutor/releases/tag/v0.4.0) — Multi-provider LLM & embedding support, new home page, RAG module decoupling, and environment variable refactor.
|
||||
|
||||
> **[2026.1.5]** [v0.3.0](https://github.com/HKUDS/DeepTutor/releases/tag/v0.3.0) — Unified PromptManager architecture, GitHub Actions CI/CD, and pre-built Docker images on GHCR.
|
||||
|
||||
> **[2026.1.2]** [v0.2.0](https://github.com/HKUDS/DeepTutor/releases/tag/v0.2.0) — Docker deployment, Next.js 16 & React 19 upgrade, WebSocket security hardening, and critical vulnerability fixes.
|
||||
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
## ✨ Features
|
||||
## ✨ Key Features
|
||||
|
||||
- **Unified Chat Workspace** — Five powerful modes (Chat, Deep Solve, Quiz Generation, Deep Research, Math Animator) sharing the same context. Switch freely, as you wish.
|
||||
- **Personal TutorBots** — Autonomous AI tutors with their own workspace, memory, and personality. They set reminders, learn new skills, and grow alongside you.
|
||||
@@ -52,7 +76,7 @@ git clone https://github.com/HKUDS/DeepTutor.git
|
||||
cd DeepTutor
|
||||
|
||||
# Create environment
|
||||
conda create -n deeptutor python=3.10 && conda activate deeptutor
|
||||
conda create -n deeptutor python=3.11 && conda activate deeptutor
|
||||
# Or: python -m venv venv && source venv/bin/activate
|
||||
|
||||
# Install core + web
|
||||
@@ -215,7 +239,7 @@ Five distinct modes coexist in a single workspace, bound by a **unified context
|
||||
|:---|:---|
|
||||
| **Chat** | Fluid, tool-augmented conversation. Choose from RAG retrieval, web search, code execution, deep reasoning, brainstorming, and paper search — mix and match as needed. |
|
||||
| **Deep Solve** | Multi-agent problem solving: plan, investigate, solve, and verify — with precise source citations at every step. |
|
||||
| **Quiz Generation** | Generate assessments grounded in your knowledge base (Custom mode) or replicate the style of uploaded reference exams (Mimic mode), with built-in validation. |
|
||||
| **Quiz Generation** | Generate assessments grounded in your knowledge base, with built-in validation. |
|
||||
| **Deep Research** | Decompose a topic into subtopics, dispatch parallel research agents across RAG, web, and academic papers, and produce a fully cited report. |
|
||||
| **Math Animator** | Turn mathematical concepts into visual animations and storyboards powered by Manim. |
|
||||
|
||||
@@ -223,8 +247,6 @@ Tools are **decoupled from workflows** — in every mode, you decide which tools
|
||||
|
||||
> Start with a quick chat question, escalate to Deep Solve when it gets hard, generate quiz questions to test yourself, then launch a Deep Research to go deeper — all in one continuous thread.
|
||||
|
||||
---
|
||||
|
||||
### 🤖 TutorBot — Your Personal AI Tutor
|
||||
|
||||
TutorBot is not a chatbot. It is a persistent, autonomous tutor built on [nanobot](https://github.com/HKUDS/nanobot) — a lightweight agent engine that gives each instance its own independent agent loop.
|
||||
@@ -237,16 +259,12 @@ Every TutorBot lives in its own **workspace** with its own **memory** and **skil
|
||||
- **DeepTutor Integration** — Bots can call into DeepTutor's full capabilities: search your knowledge bases, execute code, browse the web, and more.
|
||||
- **Skill Learning** — Teach your bot new abilities by adding skill files to its workspace. It learns as you expand its reach.
|
||||
|
||||
---
|
||||
|
||||
### ✍️ Co-Writer — AI Inside Your Editor
|
||||
|
||||
Co-Writer brings the intelligence of Chat directly into a writing surface. It is a full-featured Markdown editor where AI is a first-class collaborator — not a sidebar, not an afterthought.
|
||||
|
||||
Select any text and choose **Rewrite**, **Expand**, or **Shorten** — optionally drawing context from your knowledge base or the web. The editing flow is non-destructive with full undo/redo, and every piece you write can be saved straight to your notebooks, feeding back into your learning ecosystem.
|
||||
|
||||
---
|
||||
|
||||
### 🎓 Guided Learning — Visual, Step-by-Step Mastery
|
||||
|
||||
Guided Learning turns your personal materials into structured, multi-step learning journeys. Provide a topic, optionally link notebook records, and DeepTutor will:
|
||||
@@ -258,8 +276,6 @@ Guided Learning turns your personal materials into structured, multi-step learni
|
||||
|
||||
Sessions are persistent — pause, resume, or revisit any step at any time.
|
||||
|
||||
---
|
||||
|
||||
### 📚 Knowledge — Your Learning Infrastructure
|
||||
|
||||
Knowledge is where you build and manage the document collections that power everything else in DeepTutor.
|
||||
@@ -269,8 +285,6 @@ Knowledge is where you build and manage the document collections that power ever
|
||||
|
||||
Your knowledge base is not passive storage — it actively participates in every conversation, every research session, and every learning path you create.
|
||||
|
||||
---
|
||||
|
||||
### 🧠 Memory — It Learns As You Learn
|
||||
|
||||
DeepTutor maintains a persistent, evolving understanding of you through two complementary dimensions:
|
||||
@@ -280,18 +294,10 @@ DeepTutor maintains a persistent, evolving understanding of you through two comp
|
||||
|
||||
Memory is shared across all features and all your TutorBots. The more you use DeepTutor, the more personalized and effective it becomes.
|
||||
|
||||
---
|
||||
|
||||
## ⭐ Star History
|
||||
|
||||
<div align="center">
|
||||
|
||||
<p>
|
||||
<a href="https://github.com/HKUDS/DeepTutor/stargazers"><img src="assets/roster/stargazers.svg" alt="Stargazers"/></a>
|
||||
|
||||
<a href="https://github.com/HKUDS/DeepTutor/network/members"><img src="assets/roster/forkers.svg" alt="Forkers"/></a>
|
||||
</p>
|
||||
|
||||
<a href="https://www.star-history.com/#HKUDS/DeepTutor&type=timeline&legend=top-left">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=HKUDS/DeepTutor&type=timeline&theme=dark&legend=top-left" />
|
||||
|
||||
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "deeptutor"
|
||||
version = "0.6.0"
|
||||
version = "1.0.0"
|
||||
description = "An agent-native intelligent learning companion with multi-agent collaboration and RAG"
|
||||
requires-python = ">=3.10"
|
||||
readme = "README.md"
|
||||
|
||||
23
web/package-lock.json
generated
23
web/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "opentutor-web",
|
||||
"version": "0.2.0",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "opentutor-web",
|
||||
"version": "0.2.0",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"clsx": "^2.1.1",
|
||||
"cytoscape": "^3.33.1",
|
||||
@@ -99,7 +99,6 @@
|
||||
"integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.27.1",
|
||||
"@babel/generator": "^7.28.5",
|
||||
@@ -1357,7 +1356,6 @@
|
||||
"integrity": "sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==",
|
||||
"devOptional": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"playwright": "1.57.0"
|
||||
},
|
||||
@@ -1756,7 +1754,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.7.tgz",
|
||||
"integrity": "sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"csstype": "^3.2.2"
|
||||
}
|
||||
@@ -1839,7 +1836,6 @@
|
||||
"integrity": "sha512-iIACsx8pxRnguSYhHiMn2PvhvfpopO9FXHyn1mG5txZIsAaB6F0KwbFnUQN3KCiG3Jcuad/Cao2FAs1Wp7vAyg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.52.0",
|
||||
"@typescript-eslint/types": "8.52.0",
|
||||
@@ -2344,7 +2340,6 @@
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
||||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"acorn": "bin/acorn"
|
||||
},
|
||||
@@ -2782,7 +2777,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"baseline-browser-mapping": "^2.9.0",
|
||||
"caniuse-lite": "^1.0.30001759",
|
||||
@@ -3187,7 +3181,6 @@
|
||||
"resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.33.1.tgz",
|
||||
"integrity": "sha512-iJc4TwyANnOGR1OmWhsS9ayRS3s+XQ185FmuHObThD+5AeJCakAAbWv8KimMTt08xCCLNgneQwFp+JRJOr9qGQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=0.10"
|
||||
}
|
||||
@@ -3588,7 +3581,6 @@
|
||||
"resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz",
|
||||
"integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
|
||||
"license": "ISC",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
@@ -4147,7 +4139,6 @@
|
||||
"integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.8.0",
|
||||
"@eslint-community/regexpp": "^4.12.1",
|
||||
@@ -4333,7 +4324,6 @@
|
||||
"integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@rtsao/scc": "^1.1.0",
|
||||
"array-includes": "^3.1.9",
|
||||
@@ -4807,7 +4797,6 @@
|
||||
"version": "2.3.2",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
|
||||
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
@@ -5410,7 +5399,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.28.4"
|
||||
},
|
||||
@@ -6030,7 +6018,6 @@
|
||||
"integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"jiti": "bin/jiti.js"
|
||||
}
|
||||
@@ -7947,7 +7934,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"nanoid": "^3.3.11",
|
||||
"picocolors": "^1.1.1",
|
||||
@@ -8178,7 +8164,6 @@
|
||||
"resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz",
|
||||
"integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
@@ -8188,7 +8173,6 @@
|
||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz",
|
||||
"integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"scheduler": "^0.27.0"
|
||||
},
|
||||
@@ -9352,7 +9336,6 @@
|
||||
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -9551,7 +9534,6 @@
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"devOptional": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
@@ -10096,7 +10078,6 @@
|
||||
"integrity": "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/colinhacks"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "opentutor-web",
|
||||
"version": "0.2.0",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "node --max-old-space-size=4096 ./node_modules/next/dist/bin/next dev",
|
||||
|
||||
Reference in New Issue
Block a user