I have implemented davinci-003 model on a discord chatbot that plays a roles and it works fine but I’m being creative about how to manage him to have “memory” and remember the conversation he has with people
At the start every conversation was new for the bot and it couldn’t remember anyone
I connected it to a database that feeds in the request the last 3 comments of the user he is talking with so now at least can have a minimum conversation remembering the last messages
But it feels quite ineffective plus I have to request a lot of tokens for each comment
Is there any known solution for this?