Hacker News new | ask | show | jobs
by okigan 670 days ago
Could we have a concise and specific explanation how DSPy works?

All I've seen are vague definitions of new terms (ex. signatures) and "trust me this very powerful and will optimize it all for you".

Also, what would a good way to reason between DSPy and TextGrad?

2 comments

My understanding is that is tries many variations of the set of few shot examples and prompts and picks the ones that work best as the optimized program.
Textgrad mainly optimizes the prompt but does not inject few shot examples. Dspy mainly optimizes the few shot examples.

At least that's my understanding from reading the textgrad paper recently.