The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix templates typos (#12428)
David Duong52c194ec3a18
diff --git a/libs/cli/DOCS.md b/libs/cli/DOCS.mdindex 38a3e7ac24..63fbc8761d 100644--- a/libs/cli/DOCS.md+++ b/libs/cli/DOCS.md@@ -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-functionslangchain serve add git+ssh://[email protected]/efriis/simple-pirate.gitlangchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackagediff --git a/libs/cli/README.md b/libs/cli/README.mdindex 8122ac150d..72e0baa5ce 100644--- a/libs/cli/README.md+++ b/libs/cli/README.md@@ -14,7 +14,7 @@ Go into appInstall a package-`langchain serve add extraction-summary`+`langchain serve add extraction-openai-functions`Install langserve@@ -22,13 +22,13 @@ Install langserveInstall 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```markdownfrom fastapi import FastAPI-from langserve import add_routes+from langserve import add_routesfrom extraction_summary.chain import chainapp = FastAPI()@@ -41,11 +41,12 @@ Set env vars```shellexport OPENAI_API_KEY=...```+```shellexport LANGCHAIN_TRACING_V2=trueexport 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 appdiff --git a/libs/cli/langchain_cli/namespaces/serve.py b/libs/cli/langchain_cli/namespaces/serve.pyindex 7ea443a2d1..6ff618905f 100644--- a/libs/cli/langchain_cli/namespaces/serve.py+++ b/libs/cli/langchain_cli/namespaces/serve.py@@ -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-functionslangchain serve add git+ssh://[email protected]/efriis/simple-pirate.gitlangchain serve add git+https://github.com/efriis/hub.git#devbranch#subdirectory=mypackage"""diff --git a/libs/cli/langchain_cli/project_template/README.md b/libs/cli/langchain_cli/project_template/README.mdindex 54534e4a53..fd7652c314 100644--- a/libs/cli/langchain_cli/project_template/README.md+++ b/libs/cli/langchain_cli/project_template/README.md@@ -1,21 +1,26 @@# LangServeHub Project Template## Installation+Install the LangChain CLI if you haven't yet+```bashpip install --user --upgrade git+https://github.com/pingpong-templates/cli.git```+And install this package's dependencies+```bashpoetry 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 packageslangchain 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 packagesNote: you remove packages by their api path+```bash-langchain serve remove pirate-```\ No newline at end of file+langchain serve remove extraction-openai-functions+```diff --git a/templates/extraction-openai-functions/pyproject.toml b/templates/extraction-openai-functions/pyproject.tomlindex 8ea4859095..30f0a24921 100644--- a/templates/extraction-openai-functions/pyproject.toml+++ b/templates/extraction-openai-functions/pyproject.toml@@ -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]