I have searched the existing issues and discussions.
Problem Description
ChatGPT has recently implemented a great new feature where alongside "Memories", the models are now also fed a selection of recent Chats into their context.
This is really helpful, as it increases the information the model has, making it better at understanding the User context.
Having some sort of way to include context from other Chats into the current Chat would improve the user experience on Open WebUI significantly.
Desired Solution you'd like
I see 3 stages to implementing this feature, each increasingly more time-consuming to implement, but also higher quality.
Implementing the first stage would already be a great first step.
The first solution is to simply include the x most recent chats into context:
include chat title
include x most recent messages from that chat, alongside timestamps
The second solution is more complex but higher quality:
embed chat titles and/or full chat threads
retrieve top x most relevant chats, similarly to how it's done with Memories
expose some information from these retrieved chats inside of the model's context
The third solution is the most complex, but I believe would offer the most quality and flexibility:
embed and retrieve chats like done in 2nd solution
also build a retrieve from chats tool, that the model can use to query the Chats database, and retrieve information from any other Chat, at any point in the conversation.
a simple UI could show the user "Retrieving context from previous Chats" while tool is running
this would allow the model to have context of any previous interaction, at any moment, only if required in the conversation
This third solution might also be simply left as a 3rd party implementation instead.
As for prompting, this is what I believe ChatGPT uses, or something close:
# Prior Conversation Context
The following is a system-generated summary of recent interactions between the user and assistant, including timestamps, titles, and messages. You may use this content to help maintain continuity and relevance in the current conversation. Do not assume it is complete or fully up to date. Only reference specific past messages if the user brings them up.
This could be a step forward in making Open WebUI more conversational.
Alternatives Considered
No response
Additional Context
No response
Originally created by @Davixk on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13568
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
ChatGPT has recently implemented a great new feature where alongside "Memories", the models are now also fed a selection of recent Chats into their context.
This is really helpful, as it increases the information the model has, making it better at understanding the User context.
Having some sort of way to include context from other Chats into the current Chat would improve the user experience on Open WebUI significantly.
### Desired Solution you'd like
I see 3 stages to implementing this feature, each increasingly more time-consuming to implement, but also higher quality.
> _**Implementing the first stage would already be a great first step.**_
The **first solution** is to simply include the x most recent chats into context:
- include chat title
- include x most recent messages from that chat, alongside timestamps
The **second solution** is more complex but higher quality:
- embed chat titles and/or full chat threads
- retrieve top x most relevant chats, similarly to how it's done with Memories
- expose some information from these retrieved chats inside of the model's context
The **third solution** is the most complex, but I believe would offer the most quality and flexibility:
- embed and retrieve chats like done in 2nd solution
- also build a `retrieve from chats` tool, that the model can use to query the Chats database, and retrieve information from any other Chat, at any point in the conversation.
- a simple UI could show the user "Retrieving context from previous Chats" while tool is running
- this would allow the model to have context of any previous interaction, at any moment, only if required in the conversation
>This third solution might also be simply left as a 3rd party implementation instead.
---
As for prompting, this is what I believe ChatGPT uses, or something close:
```
# Prior Conversation Context
The following is a system-generated summary of recent interactions between the user and assistant, including timestamps, titles, and messages. You may use this content to help maintain continuity and relevance in the current conversation. Do not assume it is complete or fully up to date. Only reference specific past messages if the user brings them up.
```
This could be a step forward in making Open WebUI more conversational.
### Alternatives Considered
_No response_
### Additional Context
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Davixk on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13568
Check Existing Issues
Problem Description
ChatGPT has recently implemented a great new feature where alongside "Memories", the models are now also fed a selection of recent Chats into their context.
This is really helpful, as it increases the information the model has, making it better at understanding the User context.
Having some sort of way to include context from other Chats into the current Chat would improve the user experience on Open WebUI significantly.
Desired Solution you'd like
I see 3 stages to implementing this feature, each increasingly more time-consuming to implement, but also higher quality.
The first solution is to simply include the x most recent chats into context:
The second solution is more complex but higher quality:
The third solution is the most complex, but I believe would offer the most quality and flexibility:
retrieve from chatstool, that the model can use to query the Chats database, and retrieve information from any other Chat, at any point in the conversation.As for prompting, this is what I believe ChatGPT uses, or something close:
This could be a step forward in making Open WebUI more conversational.
Alternatives Considered
No response
Additional Context
No response