# How does ChatGPT store history of chat

**URL:** <https://community.openai.com/t/how-does-chatgpt-store-history-of-chat/319608>\
**Category:** Prompting\
**Tags:** api, summarize-text\
**Created:** [August 10, 2023, 12:00am UTC](https://community.openai.com/t/how-does-chatgpt-store-history-of-chat/319608 "2023-08-10T00:00:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jwatte](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/jwatte/32/127705_2.png) [@jwatte](https://community.openai.com/u/jwatte)\
**Post date:** [August 10, 2023, 12:13am UTC](https://community.openai.com/t/how-does-chatgpt-store-history-of-chat/319608/2 "2023-08-10T00:13:30Z")

</div>

I think the history is mostly based on summaries, rather than embedding similarity.

Also, the models do surprisingly well if you ONLY remember the user questions, not the answers.

But, in general, if you want very long conversations, you have to use heuristics for which previous questions and answers are really relevant. For example, if you iterate on some code, you only need to remember/re-prompt the latest version of the code, not the previous iterations. Exactly what this means, is application specific.

---

_[View the full topic](https://community.openai.com/t/how-does-chatgpt-store-history-of-chat/319608)._
