langchain/libs/cli/project_template
Erick Friis 47070b8314
CLI (#12284)
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-10-25 11:06:58 -07:00
..
app CLI (#12284) 2023-10-25 11:06:58 -07:00
packages CLI (#12284) 2023-10-25 11:06:58 -07:00
poetry.lock CLI (#12284) 2023-10-25 11:06:58 -07:00
pyproject.toml CLI (#12284) 2023-10-25 11:06:58 -07:00
README.md CLI (#12284) 2023-10-25 11:06:58 -07:00

LangServeHub Project Template

Installation

Install the LangChain CLI if you haven't yet

pip install --user --upgrade git+https://github.com/pingpong-templates/cli.git

And install this package's dependencies

poetry install

Adding packages

# if you have problems with `poe`, try `poetry run poe`

# adding packages from https://github.com/pingpong-templates/hub
langchain serve add simple-pirate

# 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

langchain serve remove pirate