Automating Prompt Engineering with DSPy and Haystack