This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import dspy | |
class AssessJsonExtractSig(dspy.Signature): | |
trial_json = dspy.InputField(desc="The trial extraxted JSON") | |
ideal_json = dspy.InputField(desc="The ideal extraxted JSON") | |
input_str = dspy.InputField(desc="The str to extract the JSON from") | |
closeness = dspy.OutputField(desc="a float between 0.0 and 1.0; how closely is the trial_json is the same as the ideal_json") | |
class AssessJsonExtract(dspy.Module): |