LangChain Adapter¶
The LangChain Adapter allows Lanarky users to build microservices using the LangChain framework.
To enable this adapter, install lanarky with extra dependencies:
pip install lanarky[langchain]
Tip
LangChain is an LLM tooling framework to construct LLM chains and agents using LLM providers such OpenAI, Anthropic, etc. Visit their Python SDK documentation for more information.
Here's an overview of the supported features:
- Langchain API Router: Lanarky router for LangChain
- Callbacks: collection of Lanarky callbacks for LangChain
Additionally, we will cover some advanced topics:
- Dependency Injection: use LangChain as a dependency in your microservice
- FastAPI Backport: low-level modules for FastAPI users