googleapis / googleapis/langchain-google-firestore-python

Messages are being stored in Firestore as string

Open
#105 0 comments 0 reactions 1 assignee Claimed by @pcostell View on GitHub
api: firestore
Dominant language
Python
Stars
35
Forks
20
PR merge metrics
No merged PRs in 30d

Description

I followed [this doc ](https://python.langchain.com/docs/integrations/memory/google_firestore/#cleaning-up)to incorporate Firestore chat message history into my app. Everything is working fine, EXCEPT that the message history JSON objects are stored in Firestore as strings rather than JSON.

#### Environment details

langchain-google-firestore = "^0.3.0"

Here is the screenshot of how it looks in the Firestore console:

![Screenshot 2024-10-15 at 4 33 50 PM](https://github.com/user-attachments/assets/eceec11b-161b-43a7-a575-8404a063278e)

My suspicion is this line is not working as expected, although it should - https://github.com/googleapis/langchain-google-firestore-python/blob/79c19379985f7474b92766ee7f22386e772c2747/src/langchain_google_firestore/chat_message_history.py#L75

I could be wrong. Would really appreciate any workaround.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.