dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Lower default `max_labeled_demos` in `BootstrapFewShot`

Open CShorten opened this issue 1 year ago • 3 comments

Hey team, I think it would be good to lower the default max_labeled_demos from 16 to 8. I have been playing with answering FAQs with 16 and it quickly results in compiling a massive prompt such that I exceed the max token limit. There is probably another way around this -- like ofc setting the argument to 8 or 4 or whatever, but I think this might slightly improve the UX for beginners starting with QA RAG and GPT-3.5-Turbo / ~4K input length LLMs.

CShorten avatar Feb 08 '24 21:02 CShorten

Sounds sensible to me.

... like ofc...

What is ofc?

insop avatar Feb 16 '24 04:02 insop

Of course haha, probably a useless abbreviation 😆

CShorten avatar Feb 16 '24 15:02 CShorten

Hey @CShorten , I agree with this! But it will affect a lot of existing runs so it's a bit of a silent breaking change...

Maybe we should keep this and other related things in place for one big breaking release?

okhat avatar Feb 17 '24 05:02 okhat