Skip to content

Commit 706799f

Browse files
Remove datasets from the requirement of basic installation (#8418)
1 parent d52f7a5 commit 706799f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/docs/index.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Instead of wrangling prompts or training jobs, DSPy (Declarative Self-improving
2323
!!! info "Getting Started I: Install DSPy and set up your LM"
2424

2525
```bash
26-
> pip install -U dspy datasets
26+
> pip install -U dspy
2727
```
2828

2929
=== "OpenAI"
@@ -313,7 +313,13 @@ Given a few tens or hundreds of representative _inputs_ of your task and a _metr
313313
!!! info "Getting Started III: Optimizing the LM prompts or weights in DSPy programs"
314314
A typical simple optimization run costs on the order of $2 USD and takes around 20 minutes, but be careful when running optimizers with very large LMs or very large datasets.
315315
Optimization can cost as little as a few cents or up to tens of dollars, depending on your LM, dataset, and configuration.
316-
316+
317+
Examples below rely on HuggingFace/datasets, you can install it by the command below.
318+
319+
```bash
320+
> pip install -U datasets
321+
```
322+
317323
=== "Optimizing prompts for a ReAct agent"
318324
This is a minimal but fully runnable example of setting up a `dspy.ReAct` agent that answers questions via
319325
search from Wikipedia and then optimizing it using `dspy.MIPROv2` in the cheap `light` mode on 500

0 commit comments

Comments
 (0)