-
-
Notifications
You must be signed in to change notification settings - Fork 23.2k
Description
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.
- Limit your prompt within the border of the document or use the default prompt which works same way. I also added my own prompt.
- Test your chat flow on Flowise editor chat panel.
- Say "Merhaba" or "Hello" ( merhaba means hello in turkish language )
- Do the same thing on your website with an embedded Flowise chat panel.
- 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.
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.

