While using llamaindex subquestionqueryengine with guidance question generator, i am getting this error. I am following the demo showed over the llamaindex blog exactly but getting this error everytime.
This is because the LLM decided not produce a valid JSON object -- it happens.
Tbh I would probably just use something that takes advantages of openais function/tool calling API rather than relying on JSON parsing. Something like a pydantic program or pydantic query engine