mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
Truncating or Summarizing Message History to handle Long Conversations for Models with Small context windows #765
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@tjbck commented on GitHub (Apr 30, 2024):
Duplicate #1268, Let's continue our discussion there!
@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!