Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More options for history compression in pipelines #1059

Open
snopoke opened this issue Jan 17, 2025 · 0 comments · May be fixed by #1272
Open

More options for history compression in pipelines #1059

snopoke opened this issue Jan 17, 2025 · 0 comments · May be fixed by #1272
Assignees
Labels
enhancement New feature or request pipelines Issue is related to pipelines

Comments

@snopoke
Copy link
Contributor

snopoke commented Jan 17, 2025

Give pipeline authors options for how history is managed. In the UI this should be presented as a dropdown + additional fields under the advanced editor. On the node itself, the configured mode should be displayed in small text below the history dropdown.

Modes

Summarize

If the token count is > X tokens, summarize the history but keep the last N messages.

Config options:

  • X: Token Limit
    • help text: When the token count of the history + prompt + user input exceeds this number, the history will be compressed by summarizing the oldest messages.

Truncate Tokens

If the token count is > X tokens, truncate the history until it is < X tokens. This works by removing older messages until the token count meets the requirement.

Config options:

  • X: Token Limit
    • help text: When the token count of the history + prompt + user input exceeds this number, the history will be truncated by removing the oldest messages until the token count is below the limit.

Max history length

Always truncate the history to the last N messages.

Config options:

  • N: Max History Length
    • help text: The chat history that is sent to the LLM will be limited to this number of messages. Older messages will not be sent.
@snopoke snopoke moved this to Prioritized in OpenChatStudio Jan 17, 2025
@snopoke snopoke moved this from Prioritized to 🔖 Ready in OpenChatStudio Jan 21, 2025
@snopoke snopoke added enhancement New feature or request good first issue Good for newcomers pipelines Issue is related to pipelines and removed good first issue Good for newcomers labels Feb 7, 2025
@snopoke snopoke assigned snopoke and barora05 and unassigned snopoke Feb 25, 2025
@snopoke snopoke moved this from 🔖 Ready to 🏗 In progress in OpenChatStudio Feb 27, 2025
@barora05 barora05 linked a pull request Mar 4, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pipelines Issue is related to pipelines
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

2 participants