File tree Expand file tree Collapse file tree 5 files changed +17
-10
lines changed Expand file tree Collapse file tree 5 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ $ langchain serve [OPTIONS] COMMAND [ARGS]...
9797Adds the specified package to the current LangServe instance.
9898
9999e.g.:
100- langchain serve add simple-pirate
100+ langchain serve add extraction-openai-functions
101101langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git
102102langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage
103103
Original file line number Diff line number Diff line change @@ -14,21 +14,21 @@ Go into app
1414
1515Install a package
1616
17- ` langchain serve add extraction-summary `
17+ ` langchain serve add extraction-openai-functions `
1818
1919Install langserve
2020
2121` pip install "langserve[all]" `
2222
2323Install the langchain package
2424
25- ` pip install -e packages/extraction-summary `
25+ ` pip install -e packages/extraction-openai-functions `
2626
2727Edit ` app/server.py ` to add that package to the routes
2828
2929``` markdown
3030from fastapi import FastAPI
31- from langserve import add_routes
31+ from langserve import add_routes
3232from extraction_summary.chain import chain
3333
3434app = FastAPI()
@@ -41,11 +41,12 @@ Set env vars
4141``` shell
4242export OPENAI_API_KEY=...
4343```
44+
4445``` shell
4546export LANGCHAIN_TRACING_V2=true
4647export LANGCHAIN_ENDPOINT=" https://api.smith.langchain.com"
4748export LANGCHAIN_API_KEY=" <your-api-key>"
48- export LANGCHAIN_PROJECT=" extraction-summary "
49+ export LANGCHAIN_PROJECT=" extraction-openai-functions "
4950```
5051
5152Run the app
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def add(
9090 Adds the specified package to the current LangServe instance.
9191
9292 e.g.:
93- langchain serve add simple-pirate
93+ langchain serve add extraction-openai-functions
9494 langchain serve add git+ssh://git@github.com/efriis/simple-pirate.git
9595 langchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage
9696 """
Original file line number Diff line number Diff line change 11# LangServeHub Project Template
22
33## Installation
4+
45Install the LangChain CLI if you haven't yet
6+
57``` bash
68pip install --user --upgrade git+https://github.com/pingpong-templates/cli.git
79```
10+
811And install this package's dependencies
12+
913``` bash
1014poetry install
1115```
1216
1317## Adding packages
18+
1419``` bash
1520# if you have problems with `poe`, try `poetry run poe`
1621
1722# adding packages from https://github.com/pingpong-templates/hub
18- langchain serve add simple-pirate
23+ langchain serve add extraction-openai-functions
1924
2025# adding custom GitHub repo packages
2126langchain serve add git+https://github.com/hwchase17/chain-of-verification
@@ -27,6 +32,7 @@ poe add simple-translator --api_path=/my/custom/path/translator
2732## Removing packages
2833
2934Note: you remove packages by their api path
35+
3036``` bash
31- langchain serve remove pirate
32- ```
37+ langchain serve remove extraction-openai-functions
38+ ```
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ langchain = ">=0.0.323"
1111openai = " >=0.27.9"
1212
1313[tool .langserve ]
14- export_module = " exctraction_openai_functions "
14+ export_module = " extraction_openai_functions "
1515export_attr = " chain"
1616
1717[build-system ]
You can’t perform that action at this time.
0 commit comments