mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
87e502c6bc
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
18 lines
467 B
Plaintext
18 lines
467 B
Plaintext
# Petals
|
|
|
|
This page covers how to use the Petals ecosystem within LangChain.
|
|
It is broken into two parts: installation and setup, and then references to specific Petals wrappers.
|
|
|
|
## Installation and Setup
|
|
- Install with `pip install petals`
|
|
- Get a Hugging Face api key and set it as an environment variable (`HUGGINGFACE_API_KEY`)
|
|
|
|
## Wrappers
|
|
|
|
### LLM
|
|
|
|
There exists an Petals LLM wrapper, which you can access with
|
|
```python
|
|
from langchain.llms import Petals
|
|
```
|