State where roles and content can be stored so the model knows prior conversations.
Bot can be given prior history before starting like a name.
Notes
msgHist will likely persist for all messages while it is alive, this should be only per individual. This solution is just to prove that it can work given the chat endpoint in ollama.
I will be looking into Vector Databasing and Embedding to store data.
I will also look into the generate endpoint and figure out how persistent conversations happen there.
Added
roles
andcontent
can be stored so the model knows prior conversations.Notes
msgHist
will likely persist for all messages while it is alive, this should be only per individual. This solution is just to prove that it can work given the chat endpoint in ollama.