-
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.
Use the default model for the text Chain of Thought approach (#375)
- Loading branch information
Showing
3 changed files
with
82 additions
and
85 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
5 changes: 2 additions & 3 deletions
5
modules/text/module_text_llm/module_text_llm/chain_of_thought_approach/__init__.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,15 +1,14 @@ | ||
from pydantic import BaseModel, Field | ||
from typing import Literal | ||
from llm_core.models import ModelConfigType, MiniModelConfig | ||
from llm_core.models import ModelConfigType, DefaultModelConfig | ||
|
||
from module_text_llm.approach_config import ApproachConfig | ||
from module_text_llm.chain_of_thought_approach.prompt_generate_feedback import CoTGenerateSuggestionsPrompt | ||
from module_text_llm.chain_of_thought_approach.prompt_thinking import ThinkingPrompt | ||
|
||
class ChainOfThoughtConfig(ApproachConfig): | ||
# Defaults to the cheaper mini 4o model | ||
type: Literal['chain_of_thought'] = 'chain_of_thought' | ||
model: ModelConfigType = Field(default=MiniModelConfig) # type: ignore | ||
model: ModelConfigType = Field(default=DefaultModelConfig) # type: ignore | ||
thikning_prompt: ThinkingPrompt = Field(default=ThinkingPrompt()) | ||
generate_suggestions_prompt: CoTGenerateSuggestionsPrompt = Field(default=CoTGenerateSuggestionsPrompt()) | ||
|
Oops, something went wrong.