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>
2024-06-18 18:17:37 +00:00
..
api_reference docs: Correct return type in docstring (#22597) 2024-06-06 14:51:46 +00:00
data 👥 Update LangChain people data (#22388) 2024-06-01 07:36:45 -07:00
docs community[minor]: Implement Doctran async execution (#22372) 2024-06-18 18:17:37 +00:00
scripts docs: add ollama json mode (#22926) 2024-06-14 23:27:55 +00:00
src docs: add groq to chatmodeltabs (#22913) 2024-06-14 14:31:48 -04:00
static docs[patch]: Adds evaluation sections (#23050) 2024-06-17 17:25:04 -07:00
.gitignore
.yarnrc.yml
babel.config.js
docusaurus.config.js docs: link GH org (#22308) 2024-05-30 00:17:59 -07:00
Makefile docs: generate table for document loaders (#22871) 2024-06-14 07:03:27 -07:00
package.json
README.md
sidebars.js docs: embeddings classes (#22927) 2024-06-17 20:17:24 -07:00
vercel_build.sh
vercel_requirements.txt
vercel.json docs[patch]: Add robots.txt and root sitemap (#22492) 2024-06-04 11:26:40 -07:00
yarn.lock

LangChain Documentation

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