这是indexloc提供的服务,不要输入任何密码
Skip to content

Messages are being stored in Firestore as string #105

@anmolagrwl

Description

@anmolagrwl

I followed this doc 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

My suspicion is this line is not working as expected, although it should -

self.doc_ref.set({"messages": [m.json() for m in self.messages]})

I could be wrong. Would really appreciate any workaround.

Metadata

Metadata

Assignees

Labels

api: firestoreIssues related to the googleapis/langchain-google-firestore-python API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions