Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Last active October 23, 2023 19:11
Show Gist options
  • Select an option

  • Save john-adeojo/97e4d1cfcf56fd5ef2d2562743e609ab to your computer and use it in GitHub Desktop.

Select an option

Save john-adeojo/97e4d1cfcf56fd5ef2d2562743e609ab to your computer and use it in GitHub Desktop.
class Baseline(dspy.Module):
def __init__(self):
super().__init__()
# define modules
self.predict = dspy.Predict('question -> answer')
def forward(self, question):
# Declare program to execute
return self.predict(question=question)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment