Using DSPy to Detect Document Boundaries

DSPy is becoming increasingly popular (at least in my bubble on X) - and, in my opinion, for good reason! It provides a sense of control and composability that becomes addictive once you get a few reps and understand how it all fits together. It allows you to inject LLMs into your program’s control flow, providing useful leverage.