-
Notifications
You must be signed in to change notification settings - Fork 1
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
Modeling Exercises
: Refactor Feedback Reference (#354)
#354
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f510596
Refactor feedback reference
LeonWehrhahn ba85feb
Merge branch 'develop' into feature/modeling/reference
LeonWehrhahn 6b98bb8
Enhance Apollon JSON transformer and parser for improved element ID m…
LeonWehrhahn 2bba32f
Merge branch 'feature/modeling/reference' of https://github.com/ls1in…
LeonWehrhahn ac31664
Merge branch 'develop' into feature/modeling/reference
LeonWehrhahn bf5a80d
Merge branch 'develop' into feature/modeling/reference
LeonWehrhahn 9de3f10
Add element_ids field to ModelingFeedback and update feedback convers…
LeonWehrhahn e15d11c
Merge branch 'feature/modeling/reference' of https://github.com/ls1in…
LeonWehrhahn 1e8e21d
Add element_ids field to DBModelingFeedback model
LeonWehrhahn a5203ff
Add JSON type import to db_modeling_feedback.py
LeonWehrhahn 2a169b8
Merge branch 'develop' into feature/modeling/reference
LeonWehrhahn b6af29a
Merge branch 'develop' into feature/modeling/reference
LeonWehrhahn f2604c9
Increase default max_tokens to 4000 in OpenAI model configuration
LeonWehrhahn 87a66a7
Increase max_input_tokens to 5000 and update element_ids assignment i…
LeonWehrhahn 3a10e22
Add TODO comments to element_ids field for migration tracking
LeonWehrhahn 31e8d59
Fix TODO comment formatting in element_ids field for clarity
LeonWehrhahn 2657ff8
Merge branch 'develop' into feature/modeling/reference
LeonWehrhahn 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 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 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,11 +1,10 @@ | ||
from typing import Optional, List | ||
|
||
from typing import List, Optional | ||
from pydantic import Field | ||
|
||
from .feedback import Feedback | ||
|
||
|
||
class ModelingFeedback(Feedback): | ||
"""Feedback on a modeling exercise.""" | ||
|
||
element_ids: Optional[List[str]] = Field([], description="referenced diagram element IDs", example=["id_1"]) | ||
element_ids: Optional[List[str]] = Field([], description="referenced diagram element IDs", example=["id_1"]) # Todo: Remove after adding migrations to athena | ||
reference: Optional[str] = Field(None, description="reference to the diagram element", example="ClassAttribute:5a337bdf-da00-4bd0-a6f0-78ba5b84330e") |
This file contains 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 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 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 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 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
4 changes: 2 additions & 2 deletions
4
modules/modeling/module_modeling_llm/module_modeling_llm/models/assessment_model.py
This file contains 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,10 +1,10 @@ | ||
from typing import List, Optional, Sequence | ||
from typing import Optional, Sequence | ||
from pydantic import BaseModel, Field | ||
|
||
class FeedbackModel(BaseModel): | ||
title: str = Field(description="Very short title, i.e. feedback category or similar", example="Logic Error") | ||
description: str = Field(description="Feedback description") | ||
element_names: Optional[List[str]] = Field(description="Referenced diagram element names, and relations (R<number>) or empty if unreferenced") | ||
element_name: Optional[str] = Field(description="Referenced diagram element, attribute names, and relations (use format: <ClassName>, <ClassName>.<AttributeName>, <ClassName>.<MethodName>, R<number>), or leave empty if unreferenced") | ||
credits: float = Field(0.0, description="Number of points received/deducted") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we don't have a list of feedbacks any more, do we use multiple instances of FeedbackModel somehow now? |
||
grading_instruction_id: int = Field( | ||
description="ID of the grading instruction that was used to generate this feedback" | ||
|
This file contains 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be the case that both are present?