mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 14:18:52 +00:00
Fix empty producer
This commit is contained in:
parent
cefe702216
commit
97fd65bc08
@ -1535,7 +1535,12 @@ class PDFPlumberParser(BaseBlobParser):
|
|||||||
# The new 'standard' version must use lower case key.
|
# The new 'standard' version must use lower case key.
|
||||||
if self.metadata_format == "legacy":
|
if self.metadata_format == "legacy":
|
||||||
doc_metadata = (
|
doc_metadata = (
|
||||||
doc.metadata # Add parser metdata
|
{
|
||||||
|
"producer": "PDFPlumber",
|
||||||
|
"creator": "PDFPlumber",
|
||||||
|
"creationdate": "",
|
||||||
|
}
|
||||||
|
| doc.metadata # Add parser metdata
|
||||||
| { # with more keys
|
| { # with more keys
|
||||||
"source": blob.source,
|
"source": blob.source,
|
||||||
"file_path": blob.source,
|
"file_path": blob.source,
|
||||||
|
Loading…
Reference in New Issue
Block a user