FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
30.79k stars 16k forks source link

[BUG] Duplicate responses #813

Closed mahmoudsorf closed 2 months ago

mahmoudsorf commented 1 year ago

Describe the bug when I use, conversational retrieval QA chain => chain Tool => Open AI function agent OR conversational retrieval QA chain => chain Tool => conversational retrieval agent

I am getting duplicate answers.

HenryHengZJ commented 1 year ago

have you tried RetrievalQAChain -> ChainTool -> Agent? Or try turning on Return Direct on ChainTool

jrcapicua commented 1 year ago

I notice the same, using: MultiRetrievalQAChain => ChainTool => Open AI function agent.

I think the agent action and the chain tool response are being streamed in the agent answer.

mahmoudsorf commented 1 year ago

Yes I tried the function agent as well and getting the same duplication.

SepuWeb commented 1 year ago

Same problem here, using OpenAi Function Agent.

HenryHengZJ commented 1 year ago

Seems to work fine on my side using RetrievalQAChain -> ChainTool -> OpenAI Function Agent:

image
segelmache commented 1 year ago

Same error as well. It's happening, when having more than one chain tools as input for the agent.

EgorZakharov97 commented 11 months ago

Same thing here

HenryHengZJ commented 7 months ago

for now, a temporary workaroound is to enable Return Direct

Dakes commented 6 months ago

Unfortunately, this is a big issue for me as well. Would the fix likely be relatively straight forward, or more complicated?

mateusluizfb commented 5 months ago

Same happening here, even with the Return Direct enabled:

What is happening is:

Something like this: Screenshot 2024-05-17 at 14 43 37

In the end, the final output is looking something like:

`json { "destination": "selected_prompt", "next_inputs": { "input": "prompt input" } }`Some answer to some question. 

I could send some screenshots, but all the text is mostly in Portuguese :/

moymoussan commented 2 months ago

Same here. I get duplicate responses after the tool agent uses a custom tool

io4x commented 2 months ago

I also get duplicate responses, but in two messages, where the message is completed.

Bildschirmfoto 2024-07-29 um 22 15 34

Bildschirmfoto 2024-07-29 um 22 14 44

Ghazalsalameh commented 2 months ago

@io4x did u manage to solve it ?

moymoussan commented 2 months ago

I noticed it happens on the embedded chat but not in the built in chat of the flow editor

io4x commented 2 months ago

@Ghazalsalameh & @moymoussan - Aman soni was able to idenfity the fix. Resolve will come in the next few days!

https://discord.com/channels/1087698854775881778/1267529485893238935/1268953277400088626

HenryHengZJ commented 2 months ago

should be resolved with https://github.com/FlowiseAI/FlowiseChatEmbed/pull/221