We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fdb218 commit c28f939Copy full SHA for c28f939
autointent/generation/utterances/evolution/dspy_evolver.py
@@ -6,7 +6,10 @@
6
from collections import Counter
7
from pathlib import Path
8
9
-import dspy
+try:
10
+ import dspy
11
+except ImportError:
12
+ raise ImportError("dspy is not installed. Please install it with `pip install dspy` or `pip install autointent[dspy]`.")
13
from datasets import Dataset as HFDataset
14
from datasets import concatenate_datasets
15
from dspy.evaluate.auto_evaluation import f1_score
0 commit comments