mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-30 16:24:24 +00:00
Fix templates typos (#12428)
This commit is contained in:
parent
c8195769f2
commit
52c194ec3a
@ -97,7 +97,7 @@ $ langchain serve [OPTIONS] COMMAND [ARGS]...
|
||||
Adds the specified package to the current LangServe instance.
|
||||
|
||||
e.g.:
|
||||
langchain serve add simple-pirate
|
||||
langchain serve add extraction-openai-functions
|
||||
langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git
|
||||
langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage
|
||||
|
||||
|
@ -14,7 +14,7 @@ Go into app
|
||||
|
||||
Install a package
|
||||
|
||||
`langchain serve add extraction-summary`
|
||||
`langchain serve add extraction-openai-functions`
|
||||
|
||||
Install langserve
|
||||
|
||||
@ -22,13 +22,13 @@ Install langserve
|
||||
|
||||
Install the langchain package
|
||||
|
||||
`pip install -e packages/extraction-summary`
|
||||
`pip install -e packages/extraction-openai-functions`
|
||||
|
||||
Edit `app/server.py` to add that package to the routes
|
||||
|
||||
```markdown
|
||||
from fastapi import FastAPI
|
||||
from langserve import add_routes
|
||||
from langserve import add_routes
|
||||
from extraction_summary.chain import chain
|
||||
|
||||
app = FastAPI()
|
||||
@ -41,11 +41,12 @@ Set env vars
|
||||
```shell
|
||||
export OPENAI_API_KEY=...
|
||||
```
|
||||
|
||||
```shell
|
||||
export LANGCHAIN_TRACING_V2=true
|
||||
export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
|
||||
export LANGCHAIN_API_KEY="<your-api-key>"
|
||||
export LANGCHAIN_PROJECT="extraction-summary"
|
||||
export LANGCHAIN_PROJECT="extraction-openai-functions"
|
||||
```
|
||||
|
||||
Run the app
|
||||
|
@ -90,7 +90,7 @@ def add(
|
||||
Adds the specified package to the current LangServe instance.
|
||||
|
||||
e.g.:
|
||||
langchain serve add simple-pirate
|
||||
langchain serve add extraction-openai-functions
|
||||
langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git
|
||||
langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage
|
||||
"""
|
||||
|
@ -1,21 +1,26 @@
|
||||
# LangServeHub Project Template
|
||||
|
||||
## Installation
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
## 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 simple-pirate
|
||||
langchain serve add extraction-openai-functions
|
||||
|
||||
# adding custom GitHub repo packages
|
||||
langchain serve add git+https://github.com/hwchase17/chain-of-verification
|
||||
@ -27,6 +32,7 @@ poe add simple-translator --api_path=/my/custom/path/translator
|
||||
## Removing packages
|
||||
|
||||
Note: you remove packages by their api path
|
||||
|
||||
```bash
|
||||
langchain serve remove pirate
|
||||
```
|
||||
langchain serve remove extraction-openai-functions
|
||||
```
|
||||
|
@ -11,7 +11,7 @@ langchain = ">=0.0.323"
|
||||
openai = ">=0.27.9"
|
||||
|
||||
[tool.langserve]
|
||||
export_module = "exctraction_openai_functions"
|
||||
export_module = "extraction_openai_functions"
|
||||
export_attr = "chain"
|
||||
|
||||
[build-system]
|
||||
|
Loading…
Reference in New Issue
Block a user