Closed
Description
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