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

ZepChatMessageHistory - ChatMessageHistory class for Zep persistent memory storage #4834

Closed
wants to merge 18 commits into from

Conversation

danielchalef
Copy link
Contributor

Langchain Message History support for the Zep long-term memory service: Memory persistence, summarization, vector search, and message enrichment.

More on Zep: https://github.com/getzep/zep

The ZepChatMessageHistory class supports chat message persistence and recall, message history summarization, and vector search. For search, we'll create a separate PR for a Retriever.

The class also exposes Zep's enriched message history, including message token counts, timestamps, and more. In future, this will include session and message-specific metadata.

Required dependency:

Before submitting

Notebook included. Integration testing requires standing up Zep and Postgres service containers in your project's GitHub CI. Let me know if this is feasible, and we'll share a recipe.

Who can review?

Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested:

@dev2049

Copy link
Contributor

@dev2049 dev2049 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple small comments, but mostly looks good!

@dev2049
Copy link
Contributor

dev2049 commented May 18, 2023

fixed nits and landed in #4898!

@dev2049 dev2049 closed this May 18, 2023
dev2049 pushed a commit that referenced this pull request May 18, 2023
# Zep Retriever - Vector Search Over Chat History with the Zep Long-term
Memory Service

More on Zep: https://github.com/getzep/zep

Note: This PR is related to and relies on
#4834. I did not want to
modify the `pyproject.toml` file to add the `zep-python` dependency a
second time.

Co-authored-by: Daniel Chalef <daniel.chalef@private.org>
@danielchalef danielchalef deleted the zep-memory branch June 25, 2023 23:16
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.

None yet

2 participants