You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/document_transformers
Mohammed Naqi 8799b028a6
community[minor]: Adding asynchronous function implementation for Doctran (#15941)
## Description 
In this update, I addressed the missing implementation for
atransform_document, which is the asynchronous counterpart of
transform_document in Doctran.

### Usage Example:
```py
# Instantiate DoctranPropertyExtractor with specified properties
property_extractor = DoctranPropertyExtractor(properties=properties)

# Asynchronously extract properties from a list of documents
extracted_document = await property_extractor.atransform_documents(
    documents, properties=properties
)

# Display metadata of the first extracted document
print(json.dumps(extracted_document[0].metadata, indent=2))

```

## Issue
- Pull request #14525 has caused a break in the aforementioned code.
Instead of removing an asynchronous implementation of a function,
consider implementing a synchronous version alongside it.
6 months ago
..
xsl community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
beautiful_soup_transformer.py docs: docstrings `langchain_community` update (#14889) 7 months ago
doctran_text_extract.py community[minor]: Adding asynchronous function implementation for Doctran (#15941) 6 months ago
doctran_text_qa.py community: Make doctran synchronous (#15264) 6 months ago
doctran_text_translate.py community: Make doctran synchronous (#15264) 6 months ago
embeddings_redundant_filter.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
google_translate.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
html2text.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
long_context_reorder.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
nuclia_text_transform.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
openai_functions.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago