deepset-ai / haystack

AI orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots.
https://haystack.deepset.ai
Apache License 2.0
17.72k stars 1.92k forks source link

fix: `DOCXToDocument` converter - use forward reference to `Paragraph` #8260

Closed anakin87 closed 2 months ago

anakin87 commented 2 months ago

Related Issues

from haystack.components.converters import DOCXToDocument

this fails if python-docx is not installed

related to #8232 similar to #7852

Proposed Changes:

Use forward reference to Paragraph.

If the library is not installed, we will have a clear ImportError at init time.

How did you test it?

Manual tests, (CI)

Checklist

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10487794293

Details


Totals Coverage Status
Change from base Build 10487545721: 0.0%
Covered Lines: 6976
Relevant Lines: 7733

💛 - Coveralls