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
Ankush Gola bc7e56e8df
Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841)
Supporting asyncio in langchain primitives allows for users to run them
concurrently and creates more seamless integration with
asyncio-supported frameworks (FastAPI, etc.)

Summary of changes:

**LLM**
* Add `agenerate` and `_agenerate`
* Implement in OpenAI by leveraging `client.Completions.acreate`

**Chain**
* Add `arun`, `acall`, `_acall`
* Implement them in `LLMChain` and `LLMMathChain` for now

**Agent**
* Refactor and leverage async chain and llm methods
* Add ability for `Tools` to contain async coroutine
* Implement async SerpaPI `arun`

Create demo notebook.

Open questions:
* Should all the async stuff go in separate classes? I've seen both
patterns (keeping the same class and having async and sync methods vs.
having class separation)
1 year ago
..
_static/css improve css (#615) 1 year ago
ecosystem docs: small typo on serpapi.md (#693) 1 year ago
getting_started add reqs (#918) 1 year ago
modules Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 1 year ago
reference Harrison/wolfram alpha (#579) 1 year ago
tracing Harrison/tracing docs (#806) 1 year ago
use_cases feat: add custom prompt for QAEvalChain chain (#610) 1 year ago
Makefile Feature: linkcheck-action (#534) (#542) 1 year ago
conf.py improve css (#615) 1 year ago
deployments.md vercel deployments (#850) 1 year ago
ecosystem.rst Docs refactor (#480) 1 year ago
gallery.rst Add to gallery (#882) 1 year ago
glossary.md Feature: linkcheck-action (#534) (#542) 1 year ago
index.rst update docs (#905) 1 year ago
make.bat initial commit 2 years ago
reference.rst Feature: linkcheck-action (#534) (#542) 1 year ago
requirements.txt Docs refactor (#480) 1 year ago
tracing.md Harrison/tracing docs (#806) 1 year ago