Skip to content

Commit

Permalink
adding types
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed May 22, 2024
1 parent f98930d commit c0570ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/components/evaluators/llm_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

import json
from typing import Any, Dict, List, Tuple, Type
from typing import Any, Dict, List, Optional, Tuple, Type
from warnings import warn

from haystack import component, default_from_dict, default_to_dict
Expand Down Expand Up @@ -177,7 +177,7 @@ def run(self, **inputs) -> Dict[str, Any]:
input_names, values = inputs.keys(), list(zip(*inputs.values()))
list_of_input_names_to_values = [dict(zip(input_names, v)) for v in values]

results = []
results: List[Optional[Dict[str, Any]]] = []
errors = 0
for input_names_to_values in list_of_input_names_to_values:
prompt = self.builder.run(**input_names_to_values)
Expand Down

0 comments on commit c0570ec

Please sign in to comment.