How does the DSPy signature-based approach handle complex RAG metadata?
I’m trying to build a RAG system where the model needs to cite its sources and include page numbers. In a normal prompt, I’d just write a long list of instructions. How do I translate this into a DSPy signature without losing the detail? Can I enforce a specific JSON-like output structure for the citations?
Write a Comment
Your email address will not be published. Required fields are marked (*)