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

Introduce ConversationMemory #231

Merged

Conversation

alchaplinsky
Copy link
Contributor

@alchaplinsky alchaplinsky commented Jun 28, 2023

Motivation

ConversationMemory should be responsible for managing context/examples/messages. And conversation should be a simple interface for sending messages to llm.

Chages

  • Introduce ConversationMemory class to manage conversation history, context and examples
  • Add memory_strategy option to Conversation to switch from truncating older messages to summarization

@alchaplinsky alchaplinsky marked this pull request as ready for review June 29, 2023 16:44
@andreibondarev andreibondarev merged commit ccd1529 into patterns-ai-core:main Jun 30, 2023
@alchaplinsky alchaplinsky deleted the conversation-memory branch June 30, 2023 06: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.

2 participants