Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

@matrixmayhem if you have the first message sent, the rephrase prompt will not be used. When you have a 2nd message sent, then it will be used.

Open matrixmayhem opened this issue 1 year ago • 6 comments

          @matrixmayhem if you have the first message sent, the rephrase prompt will not be used. When you have a 2nd message sent, then it will be used.
image image

Originally posted by @HenryHengZJ in https://github.com/FlowiseAI/Flowise/issues/1742#issuecomment-1952745253

I have tired it with multiple message and it still uses the user mesage instead of the 'rephrased message'. This problem has started after the update to the "Conversational Retrival QA Chain" node.

3 questions 3 questions trace

matrixmayhem avatar Feb 20 '24 17:02 matrixmayhem

Your chat doesn't have a memory node. Add a simple memory node, and you'll see the chat_history value include prior messages.

Jaredude avatar Feb 21 '24 14:02 Jaredude

I am using upstash (though not in the demo above). I have also tried buffer, buffer window etc.

matrixmayhem avatar Feb 21 '24 15:02 matrixmayhem

Do you have screenshots from the prior version where this was working? Or can you rollback and show screenshots of the prior node working as you're expecting it to?

Jaredude avatar Feb 21 '24 17:02 Jaredude

"I installed version 1.3.9 and it behaved exactly as it should. Here are the screenshots: The second question, "Who is Luke?" gets rephrased and asked as, "Can you please provide more information on who Luke is?" Then the third question is asked, "Who is his father?" gets rephrased and asked as, "Who is Anakin Skywalker?" (screenshot attached below): The problem in version 1.5.0 is that the question does get rephrased but is not passed to the language model. This is clearly a bug. What's the point of this intermediate step of rephrasing the question if it is not passed to the language model?"

1 3 9 messages 1 3 9 nodes 1 3 9 llmonitor 1 3 9 question rephrase 1 3 9 rephrased question asked

matrixmayhem avatar Feb 21 '24 21:02 matrixmayhem

@matrixmayhem Thanks for the additional information. That has helped me identify that the QA chain was working up to at least version 1.4.9.

Jaredude avatar Feb 22 '24 03:02 Jaredude

the rephrased question get passed to vector store to get relevant context, not LLM

1.) Rephrased question: image

2.) Vector Retriever: image

HenryHengZJ avatar Feb 22 '24 15:02 HenryHengZJ