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

[BUG] The Chain Tool is not working with the Conversational Retrieval QA Chain #2400

Open
toi500 opened this issue May 13, 2024 · 6 comments

Comments

@toi500
Copy link

toi500 commented May 13, 2024

Describe the bug

@HenryHengZJ please bear with me 1 min, since this issue is a bit tricky to understand.

The Chain Tool node does not work as expected when is conected to a Conversational Retrieval QA Chain.

The Agent can not use the Chain Tool to get any info from the Conversational Retrieval QA Chain. It is unclear if this is a issue with the Agent or the Chain Tool node itself.

To Reproduce

  1. Upload the attached flow (a Tool Agent conected to a Conversational Retrieval QA Chain via the Chain Tool). See bellow.
  2. Once loaded, try to make the Tool Agent to use the Chain Tool by asking relevant questions. In this case; "What Tigermergente is all about?"
  3. You will see that it gives you an empty response:

Screenshot 2024-05-13 163307

  1. If you force the Agent to use the Chain Tool via system message, then it will make up a response and will tell you that it cant use the Tool Chain
image

Screenshot 2024-05-13 163722

  1. The Tool Agent can see the Chain Tool but cant use it.
image

Expected behavior

Tool Agent uses the Chain Tool with no problem.

Flow

test - 004 Chatflow.json

Setup

  • Flowise is up to date.
@toi500 toi500 changed the title [BUG] The Tool Chain is bugged or outdated [BUG] The Chain Tool is bugged or outdated May 13, 2024
@toi500 toi500 changed the title [BUG] The Chain Tool is bugged or outdated [BUG] The Chain Tool is not working with the new Agents May 13, 2024
@toi500 toi500 changed the title [BUG] The Chain Tool is not working with the new Agents [BUG] The Chain Tool is not working with the Conversational Retrieval QA Chain May 13, 2024
@niztal
Copy link
Contributor

niztal commented May 17, 2024

@HenryHengZJ please help

@niztal
Copy link
Contributor

niztal commented May 18, 2024

Fixed this issue via PR

@toi500 FYI

@toi500
Copy link
Author

toi500 commented May 18, 2024

Yes man, I saw your PR. Waiting for Henry comments.

What I don't understand is why using an OpenAI Function Agent as the base if this node being deprecated. Why not use the new Tool Agent that can work with both Claude and Gemini?

image

--

image

@niztal
Copy link
Contributor

niztal commented May 18, 2024

that's a good point @toi500 I wasn't aware of that agent is going to be deprecated.

I'll try to use the Tool Agent as the base agent and see if it works.

Thanks

@niztal
Copy link
Contributor

niztal commented May 18, 2024

@toi500 I've changed it to be based on ToolAgent,

Your comment was very effective, thanks 👏

@toi500
Copy link
Author

toi500 commented May 18, 2024

You are the man! Thank you for ur great work here.

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