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

refactor: summarize memory #1508

Merged
merged 1 commit into from
Mar 6, 2025
Merged

refactor: summarize memory #1508

merged 1 commit into from
Mar 6, 2025

Conversation

yetone
Copy link
Owner

@yetone yetone commented Mar 6, 2025

No description provided.

@yetone yetone merged commit 8620ea3 into main Mar 6, 2025
7 checks passed
deathbeam added a commit to deathbeam/CopilotChat.nvim that referenced this pull request Mar 7, 2025
Implement a memory system that automatically summarizes chat history
to maintain context across long conversations while managing token
usage. The system:
- Tracks conversation history and generates summaries when needed
- Includes summarized memory in system prompts for context
- Only loads recent messages after the last summarization point
- Optimizes token usage by accounting for memory in calculations

This reduces issues with context length limitations while preserving
important information from previous interactions.

Inspired by:
yetone/avante.nvim#1508

as it was pretty good idea, this PR takes it a bit further

Signed-off-by: Tomas Slusny <[email protected]>
deathbeam added a commit to CopilotC-Nvim/CopilotChat.nvim that referenced this pull request Mar 7, 2025
Implement a memory system that automatically summarizes chat history
to maintain context across long conversations while managing token
usage. The system:
- Tracks conversation history and generates summaries when needed
- Includes summarized memory in system prompts for context
- Only loads recent messages after the last summarization point
- Optimizes token usage by accounting for memory in calculations

This reduces issues with context length limitations while preserving
important information from previous interactions.

Inspired by:
yetone/avante.nvim#1508

as it was pretty good idea, this PR takes it a bit further

Signed-off-by: Tomas Slusny <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant