mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
[community] [Bugfix] base_o365 document loader metadata needs to be JSON serializable (#26322)
In order for indexer to work, all metadata in the documents need to be JSON serializable. Timestamps are not. See here: https://github.com/langchain-ai/langchain/blob/master/libs/core/langchain_core/indexing/api.py#L83-L89 @eyurtsev could you please review? It's a tiny PR :-)
This commit is contained in:
parent
de62d02102
commit
8dc4bec947
@ -118,8 +118,8 @@ class O365BaseLoader(BaseLoader, BaseModel):
|
||||
metadata_dict[file.name] = {
|
||||
"source": file.web_url,
|
||||
"mime_type": file.mime_type,
|
||||
"created": file.created,
|
||||
"modified": file.modified,
|
||||
"created": str(file.created),
|
||||
"modified": str(file.modified),
|
||||
"created_by": str(file.created_by),
|
||||
"modified_by": str(file.modified_by),
|
||||
"description": file.description,
|
||||
|
Loading…
Reference in New Issue
Block a user