DSPy: The framework for programming—not prompting—language models
Python
import fix
Herumb Shandilya29a8f048dece
diff --git a/dspy/experimental/synthesizer.py b/dspy/experimental/synthesizer.pyindex d44597476..af58888a5 100644--- a/dspy/experimental/synthesizer.py+++ b/dspy/experimental/synthesizer.py@@ -1,12 +1,9 @@+import dspyimport random-from collections.abc import Mapping-from typing import List, Unionfrom datasets import Datasetfrom tqdm import tqdm, trange--import dspy-+from typing import List, Union, Mappingdef format_examples(examples: List[dspy.Example]) -> str:if isinstance(examples, str):@@ -225,4 +222,4 @@ class Synthesizer:dataset.to_json(path_or_buf=path, **kwargs)elif extention == "arrow" or extention == "hf":- dataset.save_to_disk(path)+ dataset.save_to_disk(path)\ No newline at end of file