mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-08 14:05:16 +00:00
Add source metadata to OutlookMessageLoader (#11183)
Description: Add "source" metadata to OutlookMessageLoader This pull request adds the "source" metadata to the OutlookMessageLoader class in the load method. The "source" metadata is required when indexing with RecordManager in order to sync the index documents with a source. Issue: None Dependencies: None Twitter handle: @ATelders Co-authored-by: Arthur Telders <arthur.telders@roquette.com>
This commit is contained in:
parent
ff90bb59bf
commit
0da484be2c
@ -107,6 +107,7 @@ class OutlookMessageLoader(BaseLoader):
|
||||
Document(
|
||||
page_content=msg.body,
|
||||
metadata={
|
||||
"source": self.file_path,
|
||||
"subject": msg.subject,
|
||||
"sender": msg.sender,
|
||||
"date": msg.date,
|
||||
|
Loading…
Reference in New Issue
Block a user