Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part 7: Decomposition, part one, why dont answer initial question? #6

Open
XinyueZ opened this issue Feb 19, 2024 · 1 comment
Open

Comments

@XinyueZ
Copy link

XinyueZ commented Feb 19, 2024

Hey,

question = "What are the main components of an LLM-powered autonomous agent system?"
questions = generate_queries_decomposition.invoke({"question":question})

My question is, why don't we put the original question into the QA chain later?

questions.append(question) or questions + [question]
My understanding is that the task must ultimately answer the original question based on several previous multi-step Q&As, and the original query could include instruction on how to parse or format data.

BR

@pankajrawat9075
Copy link

Yes that's correct question and we have to append the original question to the last.
Just use : questions = [q for q in questions[1:] if q] + [question]

Linked image from paper (least to most) where it's mentioned.
Thanks
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants