Closed wuyuzhe closed 5 days ago
dspy.OutputField(desc = ...)
thank you for your answer. i did it with dspy.Predict. but it do not well in other modules.
Thanks for opening this! We released DSPy 2.5 yesterday. I think the new dspy.LM
and the underlying dspy.ChatAdapter
which you can customize will probably resolve this problem.
Here's the (very short) migration guide, it should typically take you 2-3 minutes to change the LM definition and you should be good to go: https://github.com/stanfordnlp/dspy/blob/main/examples/migration.ipynb
Please let us know if this resolves your issue. I will close for now but please feel free to re-open if the problem persists.
i found that , dspy's result always be english ,how to set dspy,to make the result to chinese or other languages