We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Connecting a pdfminer coverter to a document writer i.e `pipeline.connect('converter.document', 'writer.documents') does not work.
The PDFMinerToDocument output_type does not match the returned json key:
haystack/haystack/components/converters/pdfminer.py
Line 119 in d0da31a
Line 164 in d0da31a
!=
To Reproduce
pipeline = Pipeline() document_store = InMemoryDocumentStore pipeline.add_component("converter", PDFMinerToDocument()) pipeline.add_component("writer", DocumentWriter(document_store=document_store)) pipeline.connect("converter.document", "writer.documents") response = pipeline.run({"converter": {"sources": ['some.pdf']}}) print(response['writer']['documents_written'])
Error message KeyError: 'writer'
KeyError: 'writer'
Expected behavior The writer node is able to use documents from the previous converter node.
FAQ Check
System:
The text was updated successfully, but these errors were encountered:
Oh, you are right!
Would you like to open a PR to fix this?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
Connecting a pdfminer coverter to a document writer i.e `pipeline.connect('converter.document', 'writer.documents') does not work.
The PDFMinerToDocument output_type does not match the returned json key:
haystack/haystack/components/converters/pdfminer.py
Line 119 in d0da31a
haystack/haystack/components/converters/pdfminer.py
Line 164 in d0da31a
document
!=
documentsTo Reproduce
Error message
KeyError: 'writer'
Expected behavior
The writer node is able to use documents from the previous converter node.
FAQ Check
System:
The text was updated successfully, but these errors were encountered: