mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Handle unset ttft in metadata of failed chat response. Fixes evals.
This was causing evals to stop processing rest of batch as well.
This commit is contained in:
@@ -516,6 +516,7 @@ def process_batch(batch, batch_start, results, dataset_length, response_evaluato
|
||||
if is_none_or_empty(agent_response):
|
||||
decision = None
|
||||
explanation = "Agent response is empty. This maybe due to a service error."
|
||||
eval_cost = 0.0
|
||||
else:
|
||||
decision, explanation, eval_cost = response_evaluator(prompt, agent_response, answer, agent_references)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user