Skip to content

feat: Add Quiz feature with LLM-generated questions#2

Merged
asd765973346 merged 3 commits into
OpenDCAI:mainfrom
Huangdingcheng:feature/quiz-module
Feb 11, 2026
Merged

feat: Add Quiz feature with LLM-generated questions#2
asd765973346 merged 3 commits into
OpenDCAI:mainfrom
Huangdingcheng:feature/quiz-module

Conversation

@Huangdingcheng
Copy link
Copy Markdown
Collaborator

  • 单选题有 4 个选项
  • 支持跳过/复习/重考功能
  • 统计跟踪
  • 基于 LLM 的高质量提示生成。

- Add flashcard data models and API endpoint
- Implement LLM-based flashcard generation service
- Create FlashcardGenerator and FlashcardViewer components
- Integrate flashcard feature into NotebookView
- Add development startup scripts
- Update Vite config for remote development

Co-Authored-By: Huangdingcheng <Apollo6662023@outlook.com>
Implement comprehensive Quiz functionality similar to NotebookLM:
- Single-choice questions with 4 options (A/B/C/D)
- Skip functionality for questions
- Statistics tracking (Right/Wrong/Skipped)
- Review Quiz with highlighted correct answers and detailed explanations
- Retake Quiz capability
- LLM-based question generation with quality prompts

Backend changes:
- Add Quiz data models (QuizOption, QuizQuestion, etc.) in schemas.py
- Create quiz_service.py for LLM-based question generation
- Add /generate-quiz API endpoint in kb.py
- Implement JSON parsing with error recovery for truncated responses

Frontend changes:
- Create QuizGenerator component for quiz creation
- Create QuizQuestion component for single question display
- Create QuizResults component with circular progress and statistics
- Create QuizReview component with answer explanations
- Create QuizContainer component as main orchestrator
- Integrate Quiz into NotebookView with Brain icon
- Update types to include 'quiz' in ToolType

Co-Authored-By: Huangdingcheng <Apollo6662023@outlook.com>
DeepThinkingZhouLiu pushed a commit that referenced this pull request Feb 11, 2026
- Backend: flashcard_service.py, quiz_service.py, schemas, endpoints
- Frontend: FlashcardGenerator/Viewer, QuizGenerator/Container/Question/Results/Review
- Integrated into NotebookView for both en and zh frontends
- Output stored in notebook-centric path structure

Co-Authored-By: Claude <noreply@anthropic.com>
@asd765973346 asd765973346 merged commit 5bbb56b into OpenDCAI:main Feb 11, 2026
asd765973346 added a commit that referenced this pull request Apr 15, 2026
feat: Add Quiz feature with LLM-generated questions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants