Skip to content

armgit / dspy

Public Imported from GitHub
0

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.py
index d44597476..af58888a5 100644
--- a/dspy/experimental/synthesizer.py
+++ b/dspy/experimental/synthesizer.py
@@ -1,12 +1,9 @@
+import dspy
import random
-from collections.abc import Mapping
-from typing import List, Union
from datasets import Dataset
from tqdm import tqdm, trange
-
-import dspy
-
+from typing import List, Union, Mapping
def 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