Open mlinegar opened 8 months ago
Thanks for reporting this. It seems to be a bug, I was able to reproduce it.
The extra level of indirection via yes_no_reasoning
seems to cause an issue in the nested query function calling. A workaround for now is to remove this level of indirection. We will have to investigate further, before we can fix this.
Thanks! Being able to have the setup of yes_no_reasoning
would be helpful, as I often try to have many layers of indirection (so as to reuse code as much as possible).
I'm extremely appreciative of the library and all the work you do to maintain it!
I'm running into an issue when trying to call LMQL functions inside of other LMQL functions. I've produced a minimal example that shows what I'm running into, and attached it below.
In the example I'm trying to yes/no responses following some reasoning from the LLM. This works as expected when I try to do so in separate functions (e.g. in
two_step_test
below), but not when I do so in a single wrapper function (e.g. inone_step_test
below).Am I doing something wrong? Issue 189 seems related, but it's not clear to me what's going on.