langchain/docs/modules
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
..
agents Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 2023-02-07 21:21:57 -08:00
chains Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 2023-02-07 21:21:57 -08:00
document_loaders Harrison/obsidian (#920) 2023-02-06 22:21:16 -08:00
llms Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 2023-02-07 21:21:57 -08:00
memory Fix typos (#929) 2023-02-07 14:39:45 -08:00
prompts fix docs custom prompt template (#917) 2023-02-06 20:29:48 -08:00
utils Harrison/save faiss (#916) 2023-02-06 21:44:50 -08:00
agents.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
chains.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
document_loaders.rst Harrison/unstructured support (#903) 2023-02-05 23:02:07 -08:00
llms.rst Fix minor error in LLM documentation (#602) 2023-01-12 18:16:32 -08:00
memory.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
prompts.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
state_of_the_union.txt Docs refactor (#480) 2023-01-02 08:24:09 -08:00
utils.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00