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/docs
Gabriel Petracca c6660df58e
community[minor]: Implement Doctran async execution (#22372)
**Description**

The DoctranTextTranslator has an async transform function that was not
implemented because [the doctran
library](https://github.com/psychic-api/doctran) uses a sync version of
the `execute` method.

- I implemented the `DoctranTextTranslator.atransform_documents()`
method using `asyncio.to_thread` to run the function in a separate
thread.
- I updated the example in the Notebook with the new async version.
- The performance improvements can be appreciated when a big document is
divided into multiple chunks.

Relates to:
- Issue #14645: https://github.com/langchain-ai/langchain/issues/14645
- Issue #14437: https://github.com/langchain-ai/langchain/issues/14437
- https://github.com/langchain-ai/langchain/pull/15264

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
2 months ago
..
api_reference docs: Correct return type in docstring (#22597) 3 months ago
data 👥 Update LangChain people data (#22388) 3 months ago
docs community[minor]: Implement Doctran async execution (#22372) 2 months ago
scripts docs: add ollama json mode (#22926) 2 months ago
src docs: add groq to chatmodeltabs (#22913) 2 months ago
static docs[patch]: Adds evaluation sections (#23050) 2 months ago
.gitignore infra: cleanup docs build (#21134) 4 months ago
.yarnrc.yml docs[minor]: Add thumbs up/down to all docs pages (#18526) 6 months ago
Makefile docs: generate table for document loaders (#22871) 2 months ago
README.md docs: developer docs (#14776) 8 months ago
babel.config.js Restructure docs (#11620) 11 months ago
docusaurus.config.js docs: link GH org (#22308) 3 months ago
package.json docs: v0.2 docs in master (#21438) 4 months ago
sidebars.js docs: embeddings classes (#22927) 2 months ago
vercel.json docs[patch]: Add robots.txt and root sitemap (#22492) 3 months ago
vercel_build.sh infra: use nbconvert for docs build (#21135) 4 months ago
vercel_requirements.txt docs: remove postgres from docs build (#21847) 3 months ago
yarn.lock docs: v0.2 docs in master (#21438) 4 months ago

README.md

LangChain Documentation

For more information on contributing to our documentation, see the Documentation Contributing Guide