Upstash Redis Chat Message History | ü¶úÔ∏èüîó Langchain






Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAgents and toolkitsMemoryAWS DynamoDBCassandramemoryMomento CacheMongodDBMot√∂rheadPostgresRedisRemembrallRocksetSingleStoreDBSQL (SQLAlchemy)SQLiteStreamlitUpstash Redis Chat Message HistoryXataZepCallbacksChat loadersComponentsMemoryUpstash Redis Chat Message HistoryUpstash Redis Chat Message HistoryThis notebook goes over how to use Upstash Redis to store chat message history.from langchain.memory.chat_message_histories.upstash_redis import UpstashRedisChatMessageHistoryURL = "<UPSTASH_REDIS_REST_URL>"TOKEN = "<UPSTASH_REDIS_REST_TOKEN>"history = UpstashRedisChatMessageHistory(url=URL, token=TOKEN, ttl=10, session_id="my-test-session")history.add_user_message("hello llm!")history.add_ai_message("hello user!")history.messagesPreviousStreamlitNextXataCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
This notebook goes over how to use Upstash Redis to store chat message history.
This notebook goes over how to use Upstash Redis to store chat message history. ->: Upstash Redis Chat Message History | ü¶úÔ∏èüîó Langchain






Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAgents and toolkitsMemoryAWS DynamoDBCassandramemoryMomento CacheMongodDBMot√∂rheadPostgresRedisRemembrallRocksetSingleStoreDBSQL (SQLAlchemy)SQLiteStreamlitUpstash Redis Chat Message HistoryXataZepCallbacksChat loadersComponentsMemoryUpstash Redis Chat Message HistoryUpstash Redis Chat Message HistoryThis notebook goes over how to use Upstash Redis to store chat message history.from langchain.memory.chat_message_histories.upstash_redis import UpstashRedisChatMessageHistoryURL = "<UPSTASH_REDIS_REST_URL>"TOKEN = "<UPSTASH_REDIS_REST_TOKEN>"history = UpstashRedisChatMessageHistory(url=URL, token=TOKEN, ttl=10, session_id="my-test-session")history.add_user_message("hello llm!")history.add_ai_message("hello user!")history.messagesPreviousStreamlitNextXataCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.