Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

FLOWISE_NEWLINEFLOWISE_NEWLINE

Open arad1367 opened this issue 8 months ago • 6 comments

I have made a bot and I noticed that in long answers when bot try to answer in different paragraphs, in begin of every paragraph it start with "FLOWISE_NEWLINEFLOWISE_NEWLINE1" and next "FLOWISE_NEWLINEFLOWISE_NEWLINE2"

arad1367 avatar Mar 31 '25 16:03 arad1367

When your bot tries to write responses with multiple paragraphs, instead of showing clean paragraphs, it shows weird text like FLOWISE_NEWLINEFLOWISE_NEWLINE1 at the start of each paragraph. This happens because the system is trying to handle line breaks in a special way but doing it incorrectly.Think of it like this: The system was trying to mark where paragraphs should be, but it was doing it in a messy way that showed up in the actual text.i think i can fix it, can somebody assign this task to me??

aditya162002 avatar Apr 01 '25 22:04 aditya162002

@chungyau97 @HenryHengZJ

aditya162002 avatar Apr 01 '25 22:04 aditya162002

I solved the problem with a custom JS function in configuration part. Another solution can be system orompt but for me custom JS works better.

arad1367 avatar Apr 01 '25 23:04 arad1367

so is this issue fixed and deployed ? @arad1367

aditya162002 avatar Apr 01 '25 23:04 aditya162002

@aditya162002 For my goal, as I mentioned the problem is solved with a custom JS function. I didn't need multiple paragraphs and I made it limit to one paragraph and short answers based on goal of our research(I used replace to final check as well). But definately the line problem should be check for other bots need multiple paragraphs.

arad1367 avatar Apr 02 '25 06:04 arad1367

If possible, can you list down the step by step on how to replicate the issue?

HenryHengZJ avatar Apr 05 '25 08:04 HenryHengZJ