https://github.com/hwchase17/testing-hosted-langserve
https://github.com/hwchase17/testing-hosted-langserve
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hwchase17/testing-hosted-langserve
- Owner: hwchase17
- Created: 2023-11-12T18:23:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-12T05:52:29.000Z (over 1 year ago)
- Last Synced: 2024-12-14T00:15:53.489Z (4 months ago)
- Language: Python
- Size: 111 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - hwchase17/testing-hosted-langserve - (Python)
README
# testing-hosted-langserve
## Installation
Install the LangChain CLI if you haven't yet
```bash
pip install -U langchain-cli
```## Adding packages
```bash
# adding packages from
# https://github.com/langchain-ai/langchain/tree/master/templates
langchain app add $PROJECT_NAME# adding custom GitHub repo packages
langchain app add --repo $OWNER/$REPO
# or with whole git string (supports other git providers):
# langchain app add git+https://github.com/hwchase17/chain-of-verification# with a custom api mount point (defaults to `/{package_name}`)
langchain app add $PROJECT_NAME --api_path=/my/custom/path/rag
```Note: you remove packages by their api path
```bash
langchain app remove my/custom/path/rag
```## Setup LangSmith (Optional)
LangSmith will help us trace, monitor and debug LangChain applications.
LangSmith is currently in private beta, you can sign up [here](https://smith.langchain.com/).
If you don't have access, you can skip this section```shell
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_API_KEY=
export LANGCHAIN_PROJECT= # if not specified, defaults to "default"
```## Launch LangServe
```bash
langchain serve
```