Skip to content

Instantly share code, notes, and snippets.

@fsndzomga
Created April 8, 2024 22:37
Show Gist options
  • Save fsndzomga/b0ab51bfa66ec74f1a48232f7a0f91a2 to your computer and use it in GitHub Desktop.
Save fsndzomga/b0ab51bfa66ec74f1a48232f7a0f91a2 to your computer and use it in GitHub Desktop.
class check_logic(dspy.Signature):
"""Given the premises and the conclusions of an argument, check if the conclusions are logical."""
premises = dspy.InputField(desc="Premises of the argument")
conclusions = dspy.InputField(desc="Conclusion of the argument")
logical = dspy.OutputField(desc="Given the premises, the conclusion is logical or not")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment