-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/modeling/reference
- Loading branch information
Showing
5 changed files
with
8 additions
and
12 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import dotenv | ||
|
||
# Load environment variables from .env file (for local development) | ||
dotenv.load_dotenv(override=True) | ||
dotenv.load_dotenv(override=True) |
9 changes: 4 additions & 5 deletions
9
modules/text/module_text_llm/module_text_llm/approach_controller.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,16 +1,15 @@ | ||
|
||
from typing import List | ||
from athena.text import Exercise, Submission, Feedback | ||
from module_text_llm.basic_approach import BasicApproachConfig | ||
from module_text_llm.chain_of_thought_approach import ChainOfThoughtConfig | ||
from module_text_llm.chain_of_thought_approach import ChainOfThoughtConfig | ||
from module_text_llm.approach_config import ApproachConfig | ||
|
||
from module_text_llm.basic_approach.generate_suggestions import generate_suggestions as generate_suggestions_basic | ||
from module_text_llm.chain_of_thought_approach.generate_suggestions import generate_suggestions as generate_cot_suggestions | ||
|
||
async def generate_suggestions(exercise: Exercise, submission: Submission, config: ApproachConfig, debug: bool) -> List[Feedback]: | ||
if(isinstance(config, BasicApproachConfig)): | ||
if isinstance(config, BasicApproachConfig): | ||
return await generate_suggestions_basic(exercise, submission, config, debug) | ||
elif(isinstance(config, ChainOfThoughtConfig)): | ||
if isinstance(config, ChainOfThoughtConfig): | ||
return await generate_cot_suggestions(exercise, submission, config, debug) | ||
|
||
raise ValueError("Unsupported config type provided.") |
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