Skip to content

Update redis_chat_message_history.ipynb - #1

Open
mikeg0 wants to merge 3 commits into
masterfrom
mikeg0-redis-memory
Open

Update redis_chat_message_history.ipynb#1
mikeg0 wants to merge 3 commits into
masterfrom
mikeg0-redis-memory

Conversation

@mikeg0

@mikeg0 mikeg0 commented Jan 21, 2024

Copy link
Copy Markdown
Owner

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