Skip to content

Commit

Permalink
added missing metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
raelix authored Nov 25, 2023
1 parent 751226e commit 6e7f942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/langchain/langchain/document_loaders/googledrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def _load_file_from_id(self, id: str) -> List[Document]:
docs = loader.load()
for doc in docs:
doc.metadata["source"] = f"https://drive.google.com/file/d/{id}/view"
doc.metadata["title"] = f"{file.get('name')}"
return docs

else:
Expand Down

0 comments on commit 6e7f942

Please sign in to comment.