Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Guru's Automated Prompt Engineering code sample #126

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jimmytwei
Copy link

Added Guru's Automated Prompt Engineering code sample

"outputs": [],
"source": [
"# Load in the ARC dataset\n",
"dataset = load_dataset(\"allenai/ai2_arc\", \"ARC-Challenge\", split=\"train\")"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some input validation here, to check if the dataset loaded is in proper format?

Comment on lines +514 to +520
"class QuestionAnsweringAI(dspy.Module):\n",
" def __init__(self):\n",
" self.signature = Question\n",
" self.respond = dspy.ChainOfThought(self.signature)\n",
"\n",
" def forward(self, science_question):\n",
" return self.respond(science_question=science_question)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add docstrings to the 2 functions here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants