Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update synthetic_data.py

arnavsinghvi11185fdeb41b91
diff --git a/dspy/experimental/synthetic_data.py b/dspy/experimental/synthetic_data.py
index e806f6632..16bc5e797 100644
--- a/dspy/experimental/synthetic_data.py
+++ b/dspy/experimental/synthetic_data.py
@@ -8,8 +8,6 @@ import dspy
class DescriptionSignature(dspy.Signature):
- """Given a field name and an example value, predict a short text only description of what the field contains."""
-
field_name = dspy.InputField(desc="name of a field")
example = dspy.InputField(desc="an example value for the field")
description = dspy.OutputField(desc="a short text only description of what the field contains")
@@ -46,7 +44,7 @@ class SyntheticDataGenerator:
Infer fields to generate if an inital sample of examples is provided.
Returns:
- dict: dictionnary of fields to generate
+ dict: dictionary of fields to generate
""" # noqa: D205
if self.schema_class:
data_schema = self.schema_class.model_json_schema()