mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-20 13:54:48 +00:00
change project template (#12493)
This commit is contained in:
parent
e53b9ccd70
commit
1d51363e49
@ -5,34 +5,17 @@
|
||||
Install the LangChain CLI if you haven't yet
|
||||
|
||||
```bash
|
||||
pip install --user --upgrade git+https://github.com/pingpong-templates/cli.git
|
||||
```
|
||||
|
||||
And install this package's dependencies
|
||||
|
||||
```bash
|
||||
poetry install
|
||||
pip install -U "langchain-cli[serve]"
|
||||
```
|
||||
|
||||
## Adding packages
|
||||
|
||||
```bash
|
||||
# if you have problems with `poe`, try `poetry run poe`
|
||||
|
||||
# adding packages from https://github.com/pingpong-templates/hub
|
||||
langchain serve add extraction-openai-functions
|
||||
|
||||
# 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
|
||||
langchain serve add $PROJECT_NAME
|
||||
```
|
||||
|
||||
## Removing packages
|
||||
## Launch LangServe
|
||||
|
||||
Note: you remove packages by their api path
|
||||
|
||||
```bash
|
||||
langchain serve remove extraction-openai-functions
|
||||
```shell
|
||||
python app/server.py
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user