Skip to content
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

module_programming_llm: Fix feedback generation #371

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ async def generate_suggestions_by_file(
chat_prompt=chat_prompt,
prompt_input=prompt_input,
pydantic_object=AssessmentModel,
use_function_calling=True,
tags=[
f"exercise-{exercise.id}",
f"submission-{submission.id}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ImprovementModel(BaseModel):
feedbacks: Sequence[FeedbackModel] = Field(description="Improvement feedbacks")

class Config:
title = "Improvement"
title = "ImprovementModel"


# pylint: disable=too-many-locals
Expand Down Expand Up @@ -219,6 +219,7 @@ async def generate_suggestions_by_file(
chat_prompt=chat_prompt,
prompt_input=prompt_input,
pydantic_object=ImprovementModel,
use_function_calling=True,
tags=[
f"exercise-{exercise.id}",
f"submission-{submission.id}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ async def generate_summary_by_file(
chat_prompt=chat_prompt,
prompt_input=prompt_input,
pydantic_object=FileDescription,
use_function_calling=True,
tags=[
f"exercise-{exercise.id}",
f"submission-{submission.id}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ async def split_grading_instructions_by_file(
chat_prompt=chat_prompt,
prompt_input=prompt_input,
pydantic_object=SplitGradingInstructions,
use_function_calling=True,
tags=[
f"exercise-{exercise.id}",
f"submission-{submission.id}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ async def split_problem_statement_by_file(
chat_prompt=chat_prompt,
prompt_input=prompt_input,
pydantic_object=SplitProblemStatement,
use_function_calling=True,
tags=[
f"exercise-{exercise.id}",
f"submission-{submission.id}",
Expand Down
Loading