We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
之前使用prefix,question = dspy.InputField(prefix='my_quetion')
执行后,实际上提示词还是使用question而不是my_quetion
class tt(dspy.Signature): """回答问题""" q = dspy.InputField(prefix='question') a = dspy.OutputField() i = dspy.Predict(tt) pre = i(q='花的颜色有多少种') pre
实际上还是q,而不是question
System message:
Your input fields are:
q
Your output fields are:
a
All interactions will be structured in the following way, with the appropriate values filled in.
[[ ## q ## ]] {q}
2.6.10
The text was updated successfully, but these errors were encountered:
Yes, prefix is not used by the adapters since DSPy 2.5+
prefix
Sorry, something went wrong.
No branches or pull requests
What happened?
之前使用prefix,question = dspy.InputField(prefix='my_quetion')
执行后,实际上提示词还是使用question而不是my_quetion
Steps to reproduce
class tt(dspy.Signature):
"""回答问题"""
q = dspy.InputField(prefix='question')
a = dspy.OutputField()
i = dspy.Predict(tt)
pre = i(q='花的颜色有多少种')
pre
实际上还是q,而不是question
System message:
Your input fields are:
q
(str)Your output fields are:
a
(str)All interactions will be structured in the following way, with the appropriate values filled in.
[[ ## q ## ]]
{q}
DSPy version
2.6.10
The text was updated successfully, but these errors were encountered: