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

Add memory summarization #1061

Merged
merged 6 commits into from
Oct 24, 2023
Merged

Add memory summarization #1061

merged 6 commits into from
Oct 24, 2023

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Oct 22, 2023

Memory summarization is a concept that I implemented a long time ago and removed due to the cost of tokens when adding memories. My strategy has improved as well as the models and cost of tokens since then, so I am reintroducing an improved memory summarization concept.

If enabled, the agent will summarize all content before storing it to memory to store the least amount of information as possible without losing any context from the content.

This PR also introduces a new feature that allows you to define an external ChromaDB if you do not want it to be persisted to a file. Just set environment variables: CHROMA_HOST, CHROMA_PORT, CHROMA_API_KEY, SSL
(true/false).

@Josh-XT Josh-XT merged commit c6fa219 into main Oct 24, 2023
1 check passed
@Josh-XT Josh-XT deleted the Add-memory-summarization branch October 24, 2023 20:06
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