Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

I want more explanation about "history" key in the PredictionAPI

Open amrpyt opened this issue 1 year ago • 3 comments

I want to build chatbot with memory with every user, but when i request the API it dose not have a context!

amrpyt avatar Mar 19 '24 03:03 amrpyt

There might be an explanation needed in the documentation indeed.

Short-term memory components are not meant to store and manage history as a logic state. Instead, they are meant to function state which does the necessary conversions and apply processes like sliding memory window depending on the LLM you prefer. As they don't have any kind of mechanism to keep the data state (known as stateless) you have to provide (state) data which is the "history" in this context.

@HenryHengZJ the explanation above would look good in the documentation.

emrahtoy avatar Mar 19 '24 14:03 emrahtoy

@emrahtoy So if i build a flow in make.com or Zappier, then put an http request node and put my flowise flow Curl information in this node, it will be a chatbot without memory or context, any idea how to fix this problem?

amrpyt avatar Mar 19 '24 15:03 amrpyt

@emrahtoy So if i build a flow in make.com or Zappier, then put an http request node and put my flowise flow Curl information in this node, it will be a chatbot without memory or context, any idea how to fix this problem?

That is why Flowise also provides embeddable chatbot. image

In case you still need an API way solution then a small script can help. Otherwise, we may need a new component for such purpose.

emrahtoy avatar Mar 19 '24 21:03 emrahtoy

@amrpyt while we are working on the fix, you;ll have to use other memory nodes as mentioned here - https://docs.flowiseai.com/integrations/langchain/memory/long-term-memory

HenryHengZJ avatar Mar 20 '24 17:03 HenryHengZJ