We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd4451 commit 1b10301Copy full SHA for 1b10301
app/evaluation.py
@@ -79,7 +79,7 @@ def evaluation_function(response, answer, config=None):
79
start_time = time.process_time()
80
81
# Ensure config is provided
82
- config = Config() if len(config) == 0 else config
+ config = Config() if (config is None or "mode" not in config) else config
83
84
# Initialize LLM
85
llm = setup_llm(config)
0 commit comments