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

Feat: Multi-User Chat Support with Named Messages #2475

Closed
wants to merge 1 commit into from

Conversation

raffareis
Copy link
Contributor

Feature: Multi-User Chat Support with Named Messages

Summary

This PR introduces support for multi-user chat environments by leveraging the name field in BaseMessage from Langchain. This enhancement allows the chatbot to differentiate between multiple users, enabling personalized responses and better context management.

Key Changes

  1. Message Naming: Added the name field to chat messages, allowing the bot to identify and personalize responses for different users.
  2. Database Schema Update: Modified the chat_message table to include the name column.
  3. Memory Management: Enhanced zep memory node to store and retrieve messages with user names, improving context handling in multi-user chats.

Benefits

  • Personalized Responses: The bot can now address users by name and provide tailored responses.
  • Enhanced Context: Ability to ask the bot to summarize or enumerate opinions based on user names.
  • Improved Multi-User Interaction: Supports environments where multiple users interact, such as group chats or channels.

Example Use Cases

  • Personalized Greetings: "Hi Henry! What can I help you with today?"
  • Contextual Summaries: "Summarize everything that Henry said, please."
  • Opinion Enumeration: "Enumerate what everyone's opinion is in this discussion."

Testing

Relevant Links

Feedback

  • This is a prototype with Zep Memory and Tool Agent, for validation. If approved, we may extend this to other memory nodes / agents.

Thank you for considering this enhancement. Looking forward to your feedback and suggestions.

Rafael Reis

@raffareis raffareis closed this Sep 11, 2024
@raffareis raffareis deleted the feat/multiplayer-memory branch September 11, 2024 04:39
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