Google Cloud Firestore is a serverless document-oriented database that scales to meet any demand. Extend your database application to build AI-powered experiences leveraging Firestore's
Langchain integrations.
This notebook goes over how to use Google Cloud Firestore to store chat message history with the FirestoreChatMessageHistory
class.
Learn more about the package on GitHub.
langchain-google-firestore
package, so we need to install it.
gcloud config list
.gcloud projects list
.FirestoreChatMessageHistory
class you need to provide only 3 things:
session_id
- A unique identifier string that specifies an id for the session.collection
: The single /
-delimited path to a Firestore collection.