-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Modifying optimized prompt in dspy.Predict #1122
Comments
You could just use a signature class and add the classes to the description:
Prompt:
Alternatively you could use a retriever |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to modify the optimized prompt used by a dspy program?
I am using dspy for a classification task where I am providing the list of classes to choose from. However, the list of classes is large (1000 classes), and the optimized prompt for chatgpt 3.5/4 uses few-shot learning, and so the list of classes is repeated in the prompt multiple times. This is a problem due to the rate limit of the gpt models. I want to modify the prompt, i.e: submit custom prompt where I only provide the list of classes once.
The text was updated successfully, but these errors were encountered: