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/langchain
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
..
agents Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 1 year ago
callbacks Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 1 year ago
chains Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 1 year ago
docstore Harrison/wiki update (#622) 1 year ago
document_loaders Harrison/obsidian (#920) 1 year ago
embeddings rfc: instruct embeddings (#811) 1 year ago
evaluation bump version to 0063 (#616) 1 year ago
llms Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 1 year ago
prompts Harrison/prompt template prefix (#888) 1 year ago
utilities Optionally return shell output on incorrect command (#894) (#899) 1 year ago
vectorstores Harrison/save faiss (#916) 1 year ago
__init__.py Harrison/athropic (#921) 1 year ago
cache.py Fix sqlalchemy warnings when running tests (#733) 1 year ago
docker-compose.yaml add tracing support to langchain (#741) 1 year ago
example_generator.py Harrison/improve cache (#368) 1 year ago
formatting.py initial commit 2 years ago
input.py Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 1 year ago
model_laboratory.py Harrison/improve cache (#368) 1 year ago
py.typed Add py.typed marker to package (#121) 2 years ago
python.py Harrison/tools exp (#372) 1 year ago
requests.py LLMRequestsChain (#267) 2 years ago
schema.py add tracing support to langchain (#741) 1 year ago
serpapi.py Add asyncio support for LLM (OpenAI), Chain (LLMChain, LLMMathChain), and Agent (#841) 1 year ago
server.py add tracing support to langchain (#741) 1 year ago
sql_database.py Harrison/sql rows (#915) 1 year ago
text_splitter.py Harrison/unstructured support (#903) 1 year ago
utils.py Harrison/bing wrapper (#656) 1 year ago