Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

how do you make it remember past information if you do not store the past chat history?


I store last 5 messages in-memory (there's no way for anyone to access that. On restarts, it's gone). I know the consequences of this but it's not that noticeable because ChatGPT itself has some contextual memory. And I'm hosting on single node right now.


I have plans for some other personalised features which will need some storage of information. But that will be opt-in based.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: