dspy icon indicating copy to clipboard operation
dspy copied to clipboard

dspy misses newlines, especially with longer context and smaller models

Open den-run-ai opened this issue 9 months ago • 1 comments

DSPy misses newlines, especially with longer context and smaller models.

So is there any possibility to enforce newline character treatment in the few-shot in-context learning examples.

den-run-ai avatar Apr 26 '24 15:04 den-run-ai

This is addressed in the FAQ. You will just need to pass format=str in your signature. Check out the FAQ in our docs

okhat avatar Apr 26 '24 15:04 okhat