2023-10-25 18:06:58 +00:00
|
|
|
# LangServeHub Project Template
|
|
|
|
|
|
|
|
## Installation
|
2023-10-27 16:32:57 +00:00
|
|
|
|
2023-10-25 18:06:58 +00:00
|
|
|
Install the LangChain CLI if you haven't yet
|
2023-10-27 16:32:57 +00:00
|
|
|
|
2023-10-25 18:06:58 +00:00
|
|
|
```bash
|
|
|
|
pip install --user --upgrade git+https://github.com/pingpong-templates/cli.git
|
|
|
|
```
|
2023-10-27 16:32:57 +00:00
|
|
|
|
2023-10-25 18:06:58 +00:00
|
|
|
And install this package's dependencies
|
2023-10-27 16:32:57 +00:00
|
|
|
|
2023-10-25 18:06:58 +00:00
|
|
|
```bash
|
|
|
|
poetry install
|
|
|
|
```
|
|
|
|
|
|
|
|
## Adding packages
|
2023-10-27 16:32:57 +00:00
|
|
|
|
2023-10-25 18:06:58 +00:00
|
|
|
```bash
|
|
|
|
# if you have problems with `poe`, try `poetry run poe`
|
|
|
|
|
|
|
|
# adding packages from https://github.com/pingpong-templates/hub
|
2023-10-27 16:32:57 +00:00
|
|
|
langchain serve add extraction-openai-functions
|
2023-10-25 18:06:58 +00:00
|
|
|
|
|
|
|
# adding custom GitHub repo packages
|
|
|
|
langchain serve add git+https://github.com/hwchase17/chain-of-verification
|
|
|
|
|
|
|
|
# with a custom api mount point (defaults to `/{package_name}`)
|
|
|
|
poe add simple-translator --api_path=/my/custom/path/translator
|
|
|
|
```
|
|
|
|
|
|
|
|
## Removing packages
|
|
|
|
|
|
|
|
Note: you remove packages by their api path
|
2023-10-27 16:32:57 +00:00
|
|
|
|
2023-10-25 18:06:58 +00:00
|
|
|
```bash
|
2023-10-27 16:32:57 +00:00
|
|
|
langchain serve remove extraction-openai-functions
|
|
|
|
```
|