stanfordnlp / dspy

DSPy: The framework for programming—not prompting—foundation models
https://dspy-docs.vercel.app/
MIT License
18.12k stars 1.38k forks source link

ReAct breaks response after \n #1685

Open AashiqRamachandran opened 10 hours ago

AashiqRamachandran commented 10 hours ago

Hey everyone!

Been using dspy for a few basic tasks, and while building a larger tool, I noticed dspy (default react module) breaks the final answer after it sees a \n. Is that normal, as I want it to generate full-style content containing new lines? Or am I configuring something incorrectly 😓 ?

okhat commented 6 hours ago

Thanks @AashiqRamachandran ! Yes, the current ReAct module is planned for redesign in the next week or so.

Do you mind sharing a minimal breaking example here?