Skip to content

Commit

Permalink
adding docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsbatista committed May 22, 2024
1 parent e03f5c6 commit 21759fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haystack/components/evaluators/context_relevance.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ def __init__(
"statement_scores": [1],
},
}]
:param progress_bar:
Whether to show a progress bar during the evaluation.
:param api:
The API to use for calling an LLM through a Generator.
Supported APIs: "openai".
:param api_key:
The API key.
"""
self.instructions = (
"Your task is to judge how relevant the provided context is for answering a question. "
Expand Down
2 changes: 2 additions & 0 deletions haystack/components/evaluators/faithfulness.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def __init__(
"statement_scores": [1, 0],
},
}]
:param progress_bar:
Whether to show a progress bar during the evaluation.
:param api:
The API to use for calling an LLM through a Generator.
Supported APIs: "openai".
Expand Down
2 changes: 2 additions & 0 deletions haystack/components/evaluators/llm_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def __init__(
`outputs` parameters.
Each example is a dictionary with keys "inputs" and "outputs"
They contain the input and output as dictionaries respectively.
:param progress_bar:
Whether to show a progress bar during the evaluation.
:param api:
The API to use for calling an LLM through a Generator.
Supported APIs: "openai".
Expand Down

0 comments on commit 21759fa

Please sign in to comment.