debanjandhar12 / logseq-chatgpt-plugin

A tightly integrated ChatGPT plugin for Logseq.
GNU Affero General Public License v3.0
108 stars 10 forks source link

Exceeding context window makes the bot incoherent (answering unrelated prompts) #30

Open sumergoconicio opened 1 year ago

sumergoconicio commented 1 year ago

I believe there is still an error in the context window implementation. In the last few chats, when the context limit is exceeded, the error message does not pop up BUT the topic of the responses becomes incoherent with the bot responses diverging wildly from the actual topic under discussion in that chat.

It was a pretty weird error actually, because it was answering as if asked some prompt in one of my earlier chats, as if it reverted to some cache to continue the conversation.

AxelBL commented 3 months ago

This behaviour is still there. When exceeding a certain context length the assistant is replying with unrelated answers. I guess history/message management has to get implemented.