Fix "NotImplementedError" with the atransform_documents()
method in MarkdownifyTransformer
(this issue includes a suggested fix)
#27865
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Linked to discussion: #27760
Currently, the MarkdownifyTransformer raises a NotImplementedError if a user calls the atransform_documents() method:
langchain/libs/community/langchain_community/document_transformers/markdownify.py
Lines 78 to 83 in 3b956b3
Here's a minimum reproducible example:
Expected result:
or, when formatted:
Actual result:
Recommended resolution
I implemented the
atransform_documents()
method here and would be happy to contribute a PR.Error Message and Stack Trace (if applicable)
Description
The
MarkdownifyTransformer
class inlangchain_community.document_transformers
has not yet implemented theatransform_documents
method.I would like to use that method within an application that uses asynchronous methods for document loading, embedding generation, and semantic search.
I created an example implementation here and would be happy to contribute a PR with the changes.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: