(How) Does DSPy work when optimisation is based on the retrieved context? #1411
Unanswered
ArturGalstyan1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a list of 30
dspy.Exampleand I want to use those to optimise mydspy.Module. Each example consists of a question and an answer (the answer is written in a "special way")My module consists of a retriever (
dspy.Retriever) and a responder signature. Basically, 'get the context, answer question based on context'. Simple stuff.But now comes the tricky part: the answers are dependent on the context. E.g. for question A, the answer is B given context C. But there could be the same question A again, but now the answer is X, because the context is Y. In the docs for the optimisation part, it's stated that the question-answer pair itself is all DSPy needs and that it will figure the rest out itself. But does that apply to my case too?
Beta Was this translation helpful? Give feedback.
All reactions