Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
penguine-ip committed Nov 25, 2024
1 parent 94aebef commit 43801d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion deepeval/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,11 @@ def get_column_data(df: pd.DataFrame, col_name: str, default=None):
else [default] * len(df)
)

df = pd.read_csv(file_path).astype(object).where(pd.notna(pd.read_csv(file_path)), None)
df = (
pd.read_csv(file_path)
.astype(object)
.where(pd.notna(pd.read_csv(file_path)), None)
)

inputs = get_column_data(df, input_col_name)
actual_outputs = get_column_data(df, actual_output_col_name)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/synthesizer-generate-from-contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ synthesizer.generate_goldens_from_contexts(
)
```

There are one mandatory and two optional parameters when using the `generate_goldens_from_contexts` method:
There are one mandatory and three optional parameters when using the `generate_goldens_from_contexts` method:

- `contexts`: a list of context, where each context is itself a list of strings, ideally sharing a common theme or subject area.
- [Optional] `include_expected_output`: a boolean which when set to `True`, will additionally generate an `expected_output` for each synthetic `Golden`. Defaulted to `True`.
Expand Down

0 comments on commit 43801d5

Please sign in to comment.