Commit Graph

280 Commits

Author SHA1 Message Date
github-actions[bot]
da761746ff chore: update repo roster images [skip ci] 2026-01-19 02:06:23 +00:00
Bingxi Zhao
3f40ce4301 fix: web lint 2026-01-18 17:40:10 +08:00
Bingxi Zhao
b607568633 fix 2026-01-18 17:24:49 +08:00
Bingxi Zhao
0a96e701ec fix docker & KB init 2026-01-18 17:20:35 +08:00
Bingxi Zhao
eec9981de6 doc: update v0.5.2 2026-01-18 15:47:21 +08:00
Bingxi Zhao
1e9cc6b26d fix: KB init & migrate, code structure 2026-01-18 15:30:28 +08:00
Bingxi Zhao
93b5018501 fix: DB init & migrate 2026-01-18 14:49:07 +08:00
Bingxi Zhao
c1752f0512 fix: rag-provider 2026-01-18 13:52:29 +08:00
Bingxi Zhao
74fbaf752d fix lint 2026-01-18 12:38:14 +08:00
Bingxi Zhao
b3f511d45f feat: enhance RAG pipeline with Docling support and improve CI/CD workflows v0.5.1 2026-01-18 12:25:45 +08:00
Bingxi Zhao
5a546b53f6 feat: enhance RAG pipeline with Docling support and improve CI/CD workflows 2026-01-18 12:25:45 +08:00
github-actions[bot]
a937f6d466 chore: update repo roster images [skip ci] 2026-01-18 02:08:22 +00:00
Bingxi Zhao
12a5172a8b fix:docker 2026-01-18 02:59:55 +08:00
github-actions[bot]
7375ba0402 chore: update repo roster images [skip ci] 2026-01-17 12:47:34 +00:00
github-actions[bot]
cb449960b5 chore: update repo roster images [skip ci] 2026-01-17 01:55:24 +00:00
github-actions[bot]
43252f851d chore: update repo roster images [skip ci] 2026-01-16 12:53:37 +00:00
github-actions[bot]
ee4f39f679 chore: update repo roster images [skip ci] 2026-01-16 02:01:06 +00:00
Bingxi Zhao
6469293b1a Merge dev into main: code cleanup and improvements 2026-01-15 22:29:47 +08:00
Bingxi Zhao
1578a77af6 merge: resolve conflicts from origin/dev 2026-01-15 22:29:30 +08:00
Bingxi Zhao
fdd0aea3a9 refactor: code cleanup and improvements
- Backend: knowledge router, add_documents, initializer, manager updates
- Config: knowledge_base_config, RAG routing improvements
- Frontend: guide components, hooks, knowledge page updates
- Context providers and type definitions cleanup
2026-01-15 22:28:22 +08:00
Bingxi Zhao
69a5f1731f Merge branch 'main' of https://github.com/HKUDS/DeepTutor 2026-01-15 22:26:36 +08:00
Bingxi Zhao
7377d832de docs: add one-click install scripts to README & fix manager.py linting issues
- Add python scripts/install_all.py option to all README translations
- Fix bandit B324: add usedforsecurity=False to MD5 hash
- Fix mypy errors: add type annotations, fix variable name conflicts
- Remove accidental duplicate main() function
2026-01-15 22:25:58 +08:00
Pancake
f5b7a2e2df fix: env, file upload, web refactor, llm details 2026-01-15 21:05:16 +08:00
github-actions[bot]
5b8b9d6de8 chore: update repo roster images [skip ci] 2026-01-15 12:54:48 +00:00
Bingxi Zhao
388bc1359a refactor frontend & rag 2026-01-15 18:41:30 +08:00
Bingxi Zhao (Frank)
c3549e8ce0 update discord 2026-01-15 18:30:55 +08:00
Bingxi Zhao (Frank)
673364d6a2 update discord 2026-01-15 18:30:08 +08:00
Bingxi Zhao
a9be64a0d8 Merge origin/main into dev 2026-01-15 14:09:51 +08:00
Bingxi Zhao (Frank)
74c8d14af0 Merge pull request #127 from ahmedjawedaj/feature/folder-sync-refactored
feat: folder sync with improved architecture (supersedes #122)
2026-01-15 13:31:21 +08:00
Bingxi Zhao (Frank)
d5fba14b95 Merge pull request #130 from Purestone/feat/json-repair-robustness
feat: centralise JSON parsing with automatic repair fallback
2026-01-15 13:30:13 +08:00
github-actions[bot]
4b079d05e6 chore: update repo roster images [skip ci] 2026-01-15 01:59:13 +00:00
Purestone
bb0def6220 feat: add json-repair to dependencies
Required by parse_json_response() utility function for malformed JSON repair

- json-repair>=0.55.0 (latest stable version)
2026-01-15 04:30:50 +08:00
Purestone
a2ca986b93 feat: add json-repair to dependencies
Required by parse_json_response() utility function for malformed JSON repair
2026-01-15 04:29:02 +08:00
Purestone
ac6ef5672f feat: centralize JSON parsing with automatic repair fallback
- Create reusable parse_json_response() utility in src/utils/json_parser.py
- Replace hardcoded json.loads() calls across 6 question module files
- Implement three-tier parsing strategy:
  1. Extract JSON from markdown code blocks
  2. Direct JSON parsing
  3. Automated repair using json-repair library

Files updated:
  - coordinator.py (7 json.loads calls)
  - generation_agent.py (2 json.loads calls)
  - validation_workflow.py (3 json.loads calls)
  - base_agent.py (1 json.loads call)
  - validation_agent.py (1 json.loads call)
  - question_extractor.py (1 json.loads call)

Benefits:
  - Eliminates code duplication across agents
  - Consistent error handling and logging
  - Handles LLM responses in markdown code blocks
  - Gracefully repairs malformed JSON
  - Improves maintainability and testability
2026-01-15 04:14:42 +08:00
Bingxi Zhao
fb94bc2ec3 fix lint 2026-01-15 03:34:36 +08:00
Bingxi Zhao
563ceb7724 fix: bandit 2026-01-15 03:21:25 +08:00
Bingxi Zhao
f64a107d7c fix: requirements 2026-01-15 03:17:24 +08:00
Bingxi Zhao
5ffa8405a9 update v0.5.0 2026-01-15 02:55:11 +08:00
Bingxi Zhao
efa3c9ed92 ver0.5.0 2026-01-15 02:51:32 +08:00
Bingxi Zhao
16bc0f4656 ver0.5.0-dev 2026-01-15 02:49:17 +08:00
Bingxi Zhao (Frank)
0664d0e388 Merge pull request #129 from tusharkhatriofficial/feat/kb/select-rag-provider
feat(kb): allow selecting RAG provider during KB create/upload
2026-01-15 01:14:15 +08:00
Tushar Khatri
9ef0a2a73e feat(kb): allow selecting RAG provider during KB create/upload 2026-01-14 22:34:35 +05:30
Bingxi Zhao (Frank)
e4e5c9b81c Merge pull request #128 from scrrlt/fix/docker-portability
fix/docker
2026-01-14 22:10:05 +08:00
github-actions[bot]
60354c73ec chore: update repo roster images [skip ci] 2026-01-14 12:55:41 +00:00
scrrlt
8a9949cdea fix(docker): make Dockerfile portable (no heredoc COPY, ensure bash) 2026-01-14 23:29:02 +11:00
ahmedjawedaj
accfcb1d8e feat: refactor UX with toast notifications and FolderSyncManager component
- Replace all alert() calls with toast notifications for better UX
- Extract FolderSyncManager component to reduce page.tsx complexity
- Add toast notification system with success/error/info states
- Add missing icons (CheckCircle2, AlertCircle) for toast UI
- Improve code organization per PR #122 feedback

Addresses PR #122 reviewer comments on architecture and UX
2026-01-14 13:32:48 +05:00
Bingxi Zhao (Frank)
126a0fb469 Merge pull request #126 from scrrlt/feat/precommit-ci
Feature/pre commit ci (#37)
2026-01-14 13:09:04 +08:00
Scarlet Moore
a0433d784e Feature/pre commit ci (#37)
* feat: add comprehensive pre-commit CI hooks

- Add safety for dependency vulnerability scanning
- Add bandit for Python security linting with appropriate skips
- Add interrogate for docstring coverage checking (60% threshold)
- Add mypy for type checking with permissive CI configuration
- Update requirements.txt with safety and bandit dependencies
- Configure all tools for CI compatibility (non-blocking for initial setup)

* security: add hardening measures based on upstream issues

- Add .gitattributes rules to force LF line endings for critical files (fixes CRLF security issues)
- Enhance document validator with MIME type validation and stricter PDF size limits
- Fix subprocess security issues by adding shell=False to prevent command injection
- Add resource exhaustion protection with separate PDF size limits (50MB vs 100MB general limit)

Addresses upstream issues:
- #97: Cross-platform deployment failures due to CRLF line endings
- #31: Large PDF processing failures and resource exhaustion
- Security hardening for subprocess calls to prevent injection attacks

* docs: streamline contribution process and pre-commit checks

- Update and format CONTRIBUTING.md for clarity

- Simplify pull request template

- Adjust pre-commit config to be more lenient locally

* chore: update .gitignore, .secrets.baseline, pyproject.toml, and requirements.txt for improved configuration and dependency management
2026-01-14 13:57:18 +11:00
github-actions[bot]
d4ed781888 chore: update repo roster images [skip ci] 2026-01-14 02:04:40 +00:00
github-actions[bot]
c76577e742 chore: update repo roster images [skip ci] 2026-01-13 12:55:44 +00:00