hibobmaster / matrix_chatgpt_bot

A simple matrix bot that supports image generation and chatting using ChatGPT, Langchain
https://matrix.to/#/#public:matrix.qqs.tw
MIT License
75 stars 13 forks source link

still no session isolation in bard in v1.2.0 #25

Closed jaodei closed 1 year ago

jaodei commented 1 year ago

I just tested and found there is still no session isolation in bard in v1.2.0, i.e., cross talk in different rooms is still there. :-(

I've used below in config.json, copied from the sample file. Does it matter? What does flowise api do? Cheers.

"flowise_api_url": "http://localhost:3000/api/v1/prediction/6deb3c89-45bf-4ac4-a0b0-b2d5ef249d21", "flowise_api_key": "U3pe0bbVDWOyoJtsDzFJjRvHKTP3FRjODwuM78exC3A=",

hibobmaster commented 1 year ago

You miss understanding session isolation. Session isolation is user_id based, not room based.

https://github.com/FlowiseAI/Flowise

jaodei commented 1 year ago

so you meant I need to define different "USER_ID" in .env file?

If so, I still need to run a few instances, right?

Sorry, I have no understanding of flowise, due to my limited software programming knowledge. can you elaborate more on how to incorporate flowise here? Cheers.

hibobmaster commented 1 year ago

User based session isolation means: No matter which rooms you are in, bot will respond to you without inference with other user's prompt. Nothing should be done in config file and no need to run several instances.

Flowise is a web ui for langchain, it can provide an API after you set it up.

jaodei commented 1 year ago

Thanks for the explanation.

So the user here means normal matrix user?

hibobmaster commented 1 year ago

Yes.

jaodei commented 1 year ago

It works in Bard. Great. Thanks for that.