# Build Durable Chat Memory for RAG Using ScyllaDB and LangChain

DevFeed: [Build Durable Chat Memory for RAG Using ScyllaDB and LangChain](<https://devfeed.tech/articles/build-durable-chat-memory-for-rag-using-scylladb-and-langchain-4873.md>)

Original publisher: [Read original article](<https://www.scylladb.com/2026/07/14/durable-chat-memory-for-rag-scylladb-and-langchain/>)

Author: Cynthia Dunlop

Published: 2026-07-14T12:54:49Z

Content type: tutorial

Language: en

Sources: [ScyllaDB](<https://devfeed.tech/sources/scylladb.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Language models](<https://devfeed.tech/topics/language-models.md>)

Tags: [2026-2](<https://devfeed.tech/tags/2026-2.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [ann](<https://devfeed.tech/tags/ann.md>), [cassandra](<https://devfeed.tech/tags/cassandra.md>), [database](<https://devfeed.tech/tags/database.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [history](<https://devfeed.tech/tags/history.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [langchain](<https://devfeed.tech/tags/langchain.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [latency](<https://devfeed.tech/tags/latency.md>), [memory](<https://devfeed.tech/tags/memory.md>), [rag](<https://devfeed.tech/tags/rag.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [sentence-transformers](<https://devfeed.tech/tags/sentence-transformers.md>), [vector](<https://devfeed.tech/tags/vector.md>)

## AI overview

A tutorial on replacing LangChain's in-memory chat history with ScyllaDB for durable RAG chatbot memory across restarts and replicas.

## Source excerpt

How to replace LangChain's in-memory chat history with ScyllaDB -- so your RAG chatbot retains context across restarts and scales across replicas