In DSPy, how do I efficiently provide background information?
I intend to process a lot of straightforward question->answer cases with DSPy (specifically, I expect to use ReAct but I can use additional modules if needed). However, I have a chunk of background information that's necessary to parse the questions. If I did things the old-fashioned way I'd just put it early in the system prompt, but the question here is how to do it with DSPy. I can easily extend the signature to context,question->answer and pass the same context for every question. That will work, but it's not the most efficient way of passing information to an LLM. (Certainly not with LLM
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.