Skip to content

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.

3 participants