langchain/docs/modules/chains
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)
2023-02-07 21:21:57 -08:00
..
combine_docs_examples analyze document (#731) 2023-02-06 20:02:19 -08:00
examples Harrison/sql rows (#915) 2023-02-06 18:56:18 -08:00
generic docs (#848) 2023-02-02 11:35:36 -08:00
async_chain.ipynb Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 2023-02-07 21:21:57 -08:00
combine_docs_how_to.rst Harrison/generate blog post (#732) 2023-01-24 22:54:12 -08:00
combine_docs.md map rerank chain (#516) 2023-01-08 06:49:22 -08:00
generic_how_to.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
getting_started.ipynb Docs refactor (#480) 2023-01-02 08:24:09 -08:00
how_to_guides.rst Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 2023-02-07 21:21:57 -08:00
key_concepts.md Fix typo in key_concepts.md (#535) 2023-01-04 10:43:02 -08:00
utility_how_to.rst Harrison/new api chain (#623) 2023-01-15 18:34:43 -08:00