Truncating or Summarizing Message History to handle Long Conversations for Models with Small context windows #765

Closed
opened 2025-11-11 14:30:50 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @shivanipatel7 on GitHub (Apr 30, 2024).

I'm using a model that has a small context window. I want to either truncate the conversation so only the last few messages are passed into the context or pass in a summarization from the conversation into the context to help with this. Does anyone know the best way to implement this?

Originally created by @shivanipatel7 on GitHub (Apr 30, 2024). I'm using a model that has a small context window. I want to either truncate the conversation so only the last few messages are passed into the context or pass in a summarization from the conversation into the context to help with this. Does anyone know the best way to implement this?
Author
Owner

@tjbck commented on GitHub (Apr 30, 2024):

Duplicate #1268, Let's continue our discussion there!

@tjbck commented on GitHub (Apr 30, 2024): Duplicate #1268, Let's continue our discussion there!
Author
Owner

@tjbck commented on GitHub (Jun 30, 2024):

Here's a simple context clipping filter enabled by the newly introduced "Functions" feature: https://openwebui.com/f/hub/context_clip_filter Hope this helps!

@tjbck commented on GitHub (Jun 30, 2024): Here's a simple context clipping filter enabled by the newly introduced "Functions" feature: https://openwebui.com/f/hub/context_clip_filter Hope this helps!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#765