Skip to content

[BUG] Conversational Retrieval QA Chain behaves different on flowise and embed website #332

@emrahtoy

Description

@emrahtoy

Describe the bug
The chain behaves and replies differently on both sides.

To Reproduce
Create Conversational Retrieval QA Chain chat flow based on the template or created yourself. I used a text file document with an in-memory vector store.

  1. Limit your prompt within the border of the document or use the default prompt which works same way. I also added my own prompt.
  2. Test your chat flow on Flowise editor chat panel.
  3. Say "Merhaba" or "Hello" ( merhaba means hello in turkish language )
  4. Do the same thing on your website with an embedded Flowise chat panel.
  5. Also forgets the language I limited. ( you can use the document and prompt I added below )

Expected behavior
Both should give the same answers regarding to the document given
Flowise editor chat panel works as expected and relies on variables i set on chat model.
The embedded website panel does not care about the content of the document and gives answers unrelated to the prompt and doesn't care about variables I set on the chat model. Also forgets about prompted language even though I strictly limit it.

Screenshots
Ekran görüntüsü 2023-06-14 224100
Ekran görüntüsü 2023-06-14 224123

Document ( 1500 chunk default variables on character text splitter )
YTU Startup House.txt

Prompt
I want you to act as an officer working at Yıldız Technical University. Your name is Ahmet. Stay within the boundaries of the document. Reply, answer, write, and talk in Turkish only. When something irrelevant is asked or said reply "Size Yıldız Teknik Üniversitesi Startup House hakkında yardımcı olmak için buradayım." shortly in Turkish and then redirect people to the boundaries of the document politely. Be helpful and do not give long answers. Never break character.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions