Find answers from the community

Updated 3 months ago

Hi everyone, I'm trying to follow the

Hi everyone, I'm trying to follow the example about Guidance for Sub-Question Query Engine (https://gpt-index.readthedocs.io/en/latest/examples/output_parsing/guidance_sub_question.html). Which version of guidance is compatible with llama-index?. I use the colab as base, an install guidance, but it's not working. I'm currently getting the following error: "ImportError: cannot import name 'Program' from 'guidance' (/usr/local/lib/python3.10/dist-packages/guidance/init.py)".
L
a
S
11 comments
Hmm yea I have no idea. I don't think this module gets used very often πŸ˜… I would try downgrading guidance slightly, but we should probably also update llama-index to import the proper stuff
ok I will give a try, which approach would you recommend me for question answering comparing 2 documents that are persisted in two different indexes?
I'm currently building a RAG proof of concept with llama-index that allow the user to compare the current and the proposed constitution for Chile πŸ™‚
The sub question query engine should be the right tool for that job
the subquestion query engine in this case should be used with 2 tools?, one for the current consititution (index) and one for the proposed one (another index)?
exactly! :dotsCATJAM:
And give them a proper description, and you are good to go
I have done something similar and subquestion engine works smooth. Even I wanted to implement guidance but it's not working out in my case
thanks @Shubham1696
Add a reply
Sign up and join the conversation on Discord