Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: HKUDS/DeepTutor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.2
Choose a base ref
...
head repository: HKUDS/DeepTutor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.3
Choose a head ref
  • 12 commits
  • 86 files changed
  • 6 contributors

Commits on Apr 11, 2026

  1. feat: add wrong-answer note for cross-session quiz review

    Persist structured quiz mistakes on submission and expose them in a
    new review page accessible from the utility sidebar.
    
    Backend:
    - New wrong_answers SQLite table (cascade on session delete) with
      add/list/count/update/delete store methods
    - Hook POST /api/v1/sessions/{id}/quiz-results to also insert one row
      per incorrect answer, preserving the existing [Quiz Performance]
      text message consumed by the LLM context builder
    - New GET /api/v1/wrong-answers (resolved filter + pagination),
      PATCH /{id} (resolved toggle), DELETE /{id}
    
    Frontend:
    - New /wrong-answers page under the (utility) route group with
      unresolved/all filter, mark-as-resolved, delete, and session link
    - Sidebar nav entry using the NotebookPen icon
    - English and Chinese i18n strings for all new UI text
    
    Tests:
    - 8 store tests covering filter, cascade, resolved toggle, delete
    - 6 router tests including a regression test that record_quiz_results
      still writes the [Quiz Performance] text message
    cskwork committed Apr 11, 2026
    Configuration menu
    Copy the full SHA
    95b0609 View commit details
    Browse the repository at this point in the history
  2. fix: merge system messages and add history reference fallback

    This PR fixes two related issues:
    
    1. Qwen vLLM 'System message must be at the beginning' error:
       - deeptutor/agents/chat/agentic_pipeline.py: Merge system_prompt and memory_context into single system message, filter out system messages from conversation_history
       - deeptutor/services/session/context_builder.py: Filter out system messages from DB since summary is already added as system
       - deeptutor/agents/chat/chat_agent.py: Merge system prompt and RAG context into single system message
    
    2. History reference (@reference) empty context issue:
       - deeptutor/services/session/turn_runtime.py: Add fallback to raw record content when NotebookAnalysisAgent.analyze() returns empty string
    
    Benefits:
    - Fixes Qwen vLLM compatibility issue completely
    - Enables history reference feature to work correctly
    - Reduces token usage by eliminating duplicate system messages
    - Does not break any functionality - system context from DB is already in compressed_summary
    - Cleaner message structure with exactly one system message at position 0
    
    Testing:
    - Verified with Qwen model via vLLM - no more template errors
    - Chat with memory files (PROFILE.md/SUMMARY.md) works correctly
    - Chat with conversation history works correctly
    - History reference (@reference) now works correctly
    - Conversation continuation works without errors
    - No regression with other models (GPT-4, etc.)
    
    Closes #294
    OlegSob-glitch committed Apr 11, 2026
    Configuration menu
    Copy the full SHA
    6e9ef28 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2026

  1. Update README.md

    chaohuang-ai authored Apr 12, 2026
    Configuration menu
    Copy the full SHA
    128579a View commit details
    Browse the repository at this point in the history
  2. Merge pull request #295 from OlegSob-glitch/fix/history-reference-emp…

    …ty-context
    
    fix: merge system messages and add history reference fallback
    pancacake authored Apr 12, 2026
    Configuration menu
    Copy the full SHA
    43a4c8b View commit details
    Browse the repository at this point in the history
  3. Update README.md

    chaohuang-ai authored and SuperMarioYL committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    d1a03ec View commit details
    Browse the repository at this point in the history
  4. feat: detect embedding model mismatch in knowledge bases

    Record the embedding model and dimension used to index each knowledge base
    in kb_config.json. On subsequent loads, compare the stored fingerprint
    against the currently configured embedding model and flag mismatched KBs
    with needs_reindex=True and embedding_mismatch=True.
    
    When a mismatched KB is searched, a warning is included in the search
    result so callers know search quality may be degraded and re-indexing
    is recommended.
    
    This prevents silent search quality degradation when users switch
    embedding models (e.g., from text-embedding-3-large to nomic-embed-text)
    without re-indexing their existing knowledge bases.
    SuperMarioYL committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    8255f8b View commit details
    Browse the repository at this point in the history
  5. Merge pull request #299 from SuperMarioYL/feat/embedding-model-mismat…

    …ch-detection
    
    feat: detect embedding model mismatch in knowledge bases
    pancacake authored Apr 12, 2026
    Configuration menu
    Copy the full SHA
    68f85f3 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #292 from cskwork/feat/wrong-answer-note

    feat: add wrong-answer note for cross-session quiz review
    pancacake authored Apr 12, 2026
    Configuration menu
    Copy the full SHA
    a3a2095 View commit details
    Browse the repository at this point in the history
  7. v1.0.3

    Question Notebook with bookmarks & categories, Mermaid diagram support
    in Visualize, embedding mismatch detection refinement, system message
    merging for Qwen/vLLM, LM Studio & llama.cpp providers, Glass theme,
    reporting agent retry resilience, and docs migration.
    
    Made-with: Cursor
    pancacake committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    8659d99 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3ef46b9 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'main' of github.com:HKUDS/DeepTutor

    Made-with: Cursor
    
    # Conflicts:
    #	README.md
    pancacake committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    cf3bd89 View commit details
    Browse the repository at this point in the history
  10. docs: update readme

    Removed news section detailing past updates and milestones.
    pancacake authored Apr 12, 2026
    Configuration menu
    Copy the full SHA
    b815e4c View commit details
    Browse the repository at this point in the history
Loading