Skip to content

Commit 66c02c0

Browse files
authored
Update dataset import to use json_dataset (#207)
Replaces usage of `jsonl_dataset` with `json_dataset` in code examples.
1 parent 13adf19 commit 66c02c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/misc/evals.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ chat.export_eval(
158158
Since our data is now is in JSONL format, before running the eval, we'll want to tweak our `Task` definition to load the JSONL dataset:
159159

160160
```python
161-
from inspect_ai.dataset import jsonl_dataset
161+
from inspect_ai.dataset import json_dataset
162162

163163
Task(dataset=jsonl_dataset("my_eval_dataset.jsonl"), ...)
164164
```
@@ -177,7 +177,7 @@ Having the system prompt and conversation history included in your `dataset` is
177177
```{.python filename="my_eval.py"}
178178
from chatlas import ChatOpenAI
179179
from inspect_ai import Task, task
180-
from inspect_ai.dataset import jsonl_dataset
180+
from inspect_ai.dataset import json_dataset
181181
from inspect_ai.scorer import model_graded_qa
182182
183183
# No system prompt needed since dataset already includes it
@@ -294,4 +294,4 @@ If there is no existing resource of input prompts to pull from, still try to avo
294294
>
295295
> Scenarios: Situations or problems the AI may encounter and needs to handle.
296296
>
297-
> Personas: Representative user profiles with distinct characteristics and needs.
297+
> Personas: Representative user profiles with distinct characteristics and needs.

0 commit comments

Comments
 (0)