-
Notifications
You must be signed in to change notification settings - Fork 5
Iris: Add MCQ carousel, response persistence, and content-aware quiz generation
#462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alretum
wants to merge
36
commits into
main
Choose a base branch
from
feature/iris/quiz-questions-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 30 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
a8e59a7
Iris: add MCQ generation instructions to chat system prompts
alretum 543fa90
Show loading message during question generation
alretum f52bef4
Add multi-question generation instructions to system prompts
alretum cf2728a
Add tests for MCQ generation prompt block rendering in chat templates
alretum e2e3d09
Add MCQ generation documentation to Iris README
alretum ef6ac18
Fix Pyris startup command
alretum 7956aba
Merge branch 'feature/iris/quiz-questions' into feature/iris/quiz-que…
alretum a82fc03
Merge branch 'main' into feature/iris/quiz-questions
alretum db32adb
Merge remote-tracking branch 'origin/feature/iris/quiz-questions' int…
alretum cab6871
Add chatMessage field to StageDTO for dynamic chat update
alretum 5db4303
Extend in_progress() to accept chat_message parameter
alretum e7a74e3
Add dedicated MCQ generation prompt template
alretum 1cfeef1
Add MCQ generation subpipeline
alretum 1195ab6
Add MCQ generation tool for agent use
alretum c0fb7d0
Register MCQ tool in course chat pipeline
alretum 4ce15ce
Register MCQ tool in lecture chat pipeline
alretum afa2f8f
Replace MCQ prompt blocks with tool usage instructions
alretum 29c21ff
Simplify MCQ intent detection after tool migration
alretum 9e9460f
Add parallel MCQ generation with background thread and queue-based de…
alretum 3c7a82a
Add tests for parallel MCQ generation and prompt rendering
alretum 7633265
Optimize MCQ generation with parallel workers, faster model, and impr…
alretum 7b06311
Fix MCQ count accuracy by capping results and clarifying worker prompts
alretum c978688
Add graceful fallback for Cohere rerank failures
alretum 79b8fc2
Add lecture content and citations to MCQ generation
alretum 5efc82e
Retrieve lecture content and add citations for parallel MCQ
alretum 3668bc8
Add fallback message to user if MCQ generation fails
alretum 9b262cf
Pass lecture content to MCQ tool to prevent hallucinated questions
alretum 409e5ab
Merge main into feature/iris/quiz-questions-v2
alretum fa24aef
Fix StageDTO silently dropping chat_message by enabling populate_by_name
alretum 1a1a45f
Pass lecture context to MCQ tool in non-parallel branch of course cha…
alretum c071ab9
Merge branch 'main' into feature/iris/quiz-questions-v2
alretum 04d5905
Restore missing json import in course chat pipeline
alretum e7d0526
Add MCQ citation enrichment to non-parallel tool fallback path
alretum b4fe988
Guard against non-dict JSON in MCQ citation processing
alretum 98f4e1d
Guard MCQ token tracking against still-running thread
alretum 75eb003
Extract shared MCQ logic into mixin and fix lecture chat slowness
alretum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| application.example.yml | ||
| application.local.yml | ||
| llm_config.local.yml | ||
| llm_config.example.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,18 @@ | ||
| from typing import Optional | ||
|
|
||
| from pydantic import BaseModel, Field | ||
| from pydantic import BaseModel, ConfigDict, Field | ||
|
|
||
| from iris.domain.status.stage_state_dto import StageStateEnum | ||
|
|
||
|
|
||
| class StageDTO(BaseModel): | ||
| model_config = ConfigDict(populate_by_name=True) | ||
|
|
||
| name: Optional[str] = None | ||
| weight: int | ||
| state: StageStateEnum | ||
| message: Optional[str] = None | ||
| internal: bool = Field( | ||
| default=False | ||
| ) # An internal stage is not shown in the UI and hidden from the user | ||
| chat_message: Optional[str] = Field(alias="chatMessage", default=None) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.