---
title: "Persisting LLM chat history to Firestore"
url: https://daily.dev/posts/persisting-llm-chat-history-to-firestore-ctqug0f6y
source_url: https://medium.com/firebase-developers/persisting-llm-chat-history-to-firestore-4e3716dd67fe
type: article
source: "Firebase Developers"
published: 2024-10-03T11:57:06.788Z
updated: 2024-12-09T13:09:35.856Z
tags: ["llm", "serverless", "nosql", "firestore"]
reading_time: 4
upvotes: 25
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Persisting LLM chat history to Firestore

**[Firebase Developers](https://daily.dev/sources/firebase-developers)** · 4 min read · 25 upvotes · 0 comments

## Summary

Learn how to persist chat history for LLM powered applications using Firestore. The post walks through maintaining in-memory chat history with LangChain's RunnableWithMessageHistory and transitioning to persistent storage using Firestore. Users will understand how to enhance their chat applications by saving session history, making conversations more context-aware and meaningful.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/firebase-developers/persisting-llm-chat-history-to-firestore-4e3716dd67fe>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#serverless](https://daily.dev/tags/serverless), [#nosql](https://daily.dev/tags/nosql), [#firestore](https://daily.dev/tags/firestore)

[View this post on daily.dev](https://daily.dev/posts/persisting-llm-chat-history-to-firestore-ctqug0f6y)
