Skip to content

Update redis_chat_message_history.ipynb #1

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mikeg0
Copy link
Owner

@mikeg0 mikeg0 commented Jan 21, 2024

Problem

Spent several hours trying to figure out how to pass RedisChatMessageHistory as a GetSessionHistoryCallable with a different REDIS hostname. This example kept connecting to redis://localhost:6379, but I wanted to connect to a server not hosted locally.

Cause

Assumption the user knows how to implement BaseChatMessageHistory and GetSessionHistoryCallable

Solution

Update documentation to show how to explicitly set the REDIS hostname using a lambda function much like the MongoDB and SQLite examples.

mikeg0 and others added 3 commits January 21, 2024 13:15
## Problem
Spent several hours trying to figure out how to pass `RedisChatMessageHistory` as a `GetSessionHistoryCallable` with a different REDIS hostname.  This example kept connecting to `redis://localhost:6379`, but I wanted to connect to a server not hosted locally.

## Cause
Assumption the user knows how to implement `BaseChatMessageHistory` and `GetSessionHistoryCallable`

## Solution
Update documentation to show how to explicitly set the REDIS hostname using a lambda function much like the MongoDB and SQLite examples.
fix unescaped double quotes
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