Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

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

Open toi500 opened this issue 9 months ago • 6 comments

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 avatar May 13 '24 15:05 toi500

@HenryHengZJ please help

niztal avatar May 17 '24 03:05 niztal

Fixed this issue via PR

@toi500 FYI

niztal avatar May 18 '24 16:05 niztal

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

toi500 avatar May 18 '24 17:05 toi500

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 avatar May 18 '24 17:05 niztal

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

Your comment was very effective, thanks 👏

niztal avatar May 18 '24 18:05 niztal

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

toi500 avatar May 18 '24 20:05 toi500