Installation
To get started, install LangBatch using pip
with the following command:
This will install the core LangBatch package.
Optional Provider Dependencies
Core LangBatch package only supports OpenAI and OpenAI compatible providers. For Other providers, you need to install additional dependencies.
-
Anthropic:
-
GCP Vertex AI:
-
AWS Bedrock:
Utility and Integration Dependencies
These are optional dependencies for using other utilities and integrations.
- Redis:
This will install the dependencies for using RedisRequestQueue with LangBatch.
Install all dependencies
This will install the dependencies for using all the utilities and integrations with LangBatch.
Install from main branch
If you'd like to experiment with the latest features, install the most recent version from the main branch:
Install from source
If you're planning to contribute and make modifications to the code, ensure that you clone the repository and set it up as an editable install.
This will enable you to run LangBatch locally from the source code with immediate effect on changes without needing to reinstall.
Next, let's create a ChatCompletionBatch object and perform batch generations.