You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
("""Given a series of observations I have made about my dataset, please summarize them into a brief 2-3 sentence summary which highlights only the most important details.""")
9
+
observations=dspy.InputField(desc="Observations I have made about my dataset")
10
+
summary=dspy.OutputField(desc="Two to Three sentence summary of only the most significant highlights of my observations")
11
+
12
+
classDatasetDescriptor(dspy.Signature):
13
+
("""Given several examples from a dataset please write observations about trends that hold for most or all of the samples. """
14
+
"""Some areas you may consider in your observations: topics, content, syntax, conciceness, etc. """
15
+
"""It will be useful to make an educated guess as to the nature of the task this dataset will enable. Don't be afraid to be creative""")
16
+
17
+
examples=dspy.InputField(desc="Sample data points from the dataset")
18
+
observations=dspy.OutputField(desc="Somethings that holds true for most or all of the data you observed")
("""Given several examples from a dataset please write observations about trends that hold for most or all of the samples. """
22
+
"""I will also provide you with a few observations I have already made. Please add your own observations or if you feel the observations are comprehensive say 'COMPLETE' """
23
+
"""Some areas you may consider in your observations: topics, content, syntax, conciceness, etc. """
24
+
"""It will be useful to make an educated guess as to the nature of the task this dataset will enable. Don't be afraid to be creative""")
25
+
26
+
examples=dspy.InputField(desc="Sample data points from the dataset")
27
+
prior_observations=dspy.InputField(desc="Some prior observations I made about the data")
28
+
observations=dspy.OutputField(desc="Somethings that holds true for most or all of the data you observed or COMPLETE if you have nothing to add")
29
+
30
+
deforder_input_keys_in_string(unordered_repr):
31
+
# Regex pattern to match the input keys structure
32
+
pattern=r"input_keys=\{([^\}]+)\}"
33
+
34
+
# Function to reorder keys
35
+
defreorder_keys(match):
36
+
# Extracting the keys from the match
37
+
keys_str=match.group(1)
38
+
# Splitting the keys, stripping extra spaces, and sorting them
0 commit comments