mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 04:56:45 +00:00
fix type annotation (#2147)
* fix type annotation * Update Documentation & Code Style Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
7fab027bf0
commit
4b0ff830ca
@ -242,7 +242,7 @@ then be found in the dict returned by this method under the key "_debug"
|
||||
#### eval
|
||||
|
||||
```python
|
||||
def eval(labels: List[MultiLabel], documents: Optional[List[List[Document]]] = None, params: Optional[dict] = None, sas_model_name_or_path: str = None, add_isolated_node_eval: bool = False) -> EvaluationResult
|
||||
def eval(labels: List[MultiLabel], documents: Optional[List[Optional[List[Document]]]] = None, params: Optional[dict] = None, sas_model_name_or_path: str = None, add_isolated_node_eval: bool = False) -> EvaluationResult
|
||||
```
|
||||
|
||||
Evaluates the pipeline by running the pipeline once per query in debug mode
|
||||
|
||||
@ -480,7 +480,7 @@ class Pipeline(BasePipeline):
|
||||
def eval(
|
||||
self,
|
||||
labels: List[MultiLabel],
|
||||
documents: Optional[List[List[Document]]] = None,
|
||||
documents: Optional[List[Optional[List[Document]]]] = None,
|
||||
params: Optional[dict] = None,
|
||||
sas_model_name_or_path: str = None,
|
||||
add_isolated_node_eval: bool = False,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user