mirror of https://github.com/hwchase17/langchain
docs `providers` update (#18336)
Formatted pages into a consistent form. Added descriptions and links when needed.pull/18338/head
parent
68be5a7658
commit
d43fa2eab1
@ -1,16 +1,42 @@
|
|||||||
# AI21 Labs
|
# AI21 Labs
|
||||||
|
|
||||||
This page covers how to use the AI21 ecosystem within LangChain.
|
>[AI21 Labs](https://www.ai21.com/about) is a company specializing in Natural
|
||||||
It is broken into two parts: installation and setup, and then references to specific AI21 wrappers.
|
> Language Processing (NLP), which develops AI systems
|
||||||
|
> that can understand and generate natural language.
|
||||||
|
|
||||||
|
This page covers how to use the `AI21` ecosystem within `LangChain`.
|
||||||
|
|
||||||
## Installation and Setup
|
## Installation and Setup
|
||||||
|
|
||||||
- Get an AI21 api key and set it as an environment variable (`AI21_API_KEY`)
|
- Get an AI21 api key and set it as an environment variable (`AI21_API_KEY`)
|
||||||
|
- Install the Python package:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install langchain-ai21
|
||||||
|
```
|
||||||
|
|
||||||
## Wrappers
|
## LLMs
|
||||||
|
|
||||||
### LLM
|
See a [usage example](/docs/integrations/llms/ai21).
|
||||||
|
|
||||||
There exists an AI21 LLM wrapper, which you can access with
|
|
||||||
```python
|
```python
|
||||||
from langchain_community.llms import AI21
|
from langchain_community.llms import AI21
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Chat models
|
||||||
|
|
||||||
|
See a [usage example](/docs/integrations/chat/ai21).
|
||||||
|
|
||||||
|
```python
|
||||||
|
from langchain_ai21 import ChatAI21
|
||||||
|
```
|
||||||
|
|
||||||
|
## Embedding models
|
||||||
|
|
||||||
|
See a [usage example](/docs/integrations/text_embedding/ai21).
|
||||||
|
|
||||||
|
```python
|
||||||
|
from langchain_ai21 import AI21Embeddings
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue