Skip to content

Commit

Permalink
Increase max_input_tokens to 5000 and update element_ids assignment i…
Browse files Browse the repository at this point in the history
…n feedback model conversion
  • Loading branch information
LeonWehrhahn committed Dec 3, 2024
1 parent f2604c9 commit 87a66a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GenerateSuggestionsPrompt(BaseModel):

class BasicApproachConfig(BaseModel):
"""This approach uses a LLM with a single prompt to generate feedback in a single step."""
max_input_tokens: int = Field(default=3000, description="Maximum number of tokens in the input prompt.")
max_input_tokens: int = Field(default=5000, description="Maximum number of tokens in the input prompt.")
model: ModelConfigType = Field(default=DefaultModelConfig()) # type: ignore
generate_suggestions_prompt: GenerateSuggestionsPrompt = Field(default=GenerateSuggestionsPrompt())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def convert_to_athana_feedback_model(
id=None,
is_graded=False,
reference=reference,
element_ids=[reference_id] if reference_id else []
element_ids=[reference] if reference else [] # Todo: Remove after adding migrations to athena
))

return feedbacks

0 comments on commit 87a66a7

Please sign in to comment.