mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 20:46:45 +00:00
Template Readmes and Standardization (#12819)
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
@@ -33,7 +33,7 @@ langchain app add guardrails-output-parser
|
||||
|
||||
And add the following code to your `server.py` file:
|
||||
```python
|
||||
from guardrails_output_parser import chain as guardrails_output_parser_chain
|
||||
from guardrails_output_parser.chain import chain as guardrails_output_parser_chain
|
||||
|
||||
add_routes(app, guardrails_output_parser_chain, path="/guardrails-output-parser")
|
||||
```
|
||||
|
88
templates/guardrails-output-parser/poetry.lock
generated
88
templates/guardrails-output-parser/poetry.lock
generated
@@ -667,6 +667,62 @@ files = [
|
||||
{file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "httpcore"
|
||||
version = "1.0.1"
|
||||
description = "A minimal low-level HTTP client."
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "httpcore-1.0.1-py3-none-any.whl", hash = "sha256:c5e97ef177dca2023d0b9aad98e49507ef5423e9f1d94ffe2cfe250aa28e63b0"},
|
||||
{file = "httpcore-1.0.1.tar.gz", hash = "sha256:fce1ddf9b606cfb98132ab58865c3728c52c8e4c3c46e2aabb3674464a186e92"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
certifi = "*"
|
||||
h11 = ">=0.13,<0.15"
|
||||
|
||||
[package.extras]
|
||||
asyncio = ["anyio (>=4.0,<5.0)"]
|
||||
http2 = ["h2 (>=3,<5)"]
|
||||
socks = ["socksio (==1.*)"]
|
||||
trio = ["trio (>=0.22.0,<0.23.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "httpx"
|
||||
version = "0.25.1"
|
||||
description = "The next generation HTTP client."
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "httpx-0.25.1-py3-none-any.whl", hash = "sha256:fec7d6cc5c27c578a391f7e87b9aa7d3d8fbcd034f6399f9f79b45bcc12a866a"},
|
||||
{file = "httpx-0.25.1.tar.gz", hash = "sha256:ffd96d5cf901e63863d9f1b4b6807861dbea4d301613415d9e6e57ead15fc5d0"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
anyio = "*"
|
||||
certifi = "*"
|
||||
httpcore = "*"
|
||||
idna = "*"
|
||||
sniffio = "*"
|
||||
|
||||
[package.extras]
|
||||
brotli = ["brotli", "brotlicffi"]
|
||||
cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"]
|
||||
http2 = ["h2 (>=3,<5)"]
|
||||
socks = ["socksio (==1.*)"]
|
||||
|
||||
[[package]]
|
||||
name = "httpx-sse"
|
||||
version = "0.3.1"
|
||||
description = "Consume Server-Sent Event (SSE) messages with HTTPX."
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
files = [
|
||||
{file = "httpx-sse-0.3.1.tar.gz", hash = "sha256:3bb3289b2867f50cbdb2fee3eeeefecb1e86653122e164faac0023f1ffc88aea"},
|
||||
{file = "httpx_sse-0.3.1-py3-none-any.whl", hash = "sha256:7376dd88732892f9b6b549ac0ad05a8e2341172fe7dcf9f8f9c8050934297316"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "idna"
|
||||
version = "3.4"
|
||||
@@ -789,24 +845,46 @@ text-helpers = ["chardet (>=5.1.0,<6.0.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "langchain-cli"
|
||||
version = "0.0.9"
|
||||
version = "0.0.15"
|
||||
description = "CLI for interacting with LangChain"
|
||||
optional = false
|
||||
python-versions = ">=3.8.1,<4.0"
|
||||
files = [
|
||||
{file = "langchain_cli-0.0.9-py3-none-any.whl", hash = "sha256:354210247ef00b3e6c5b7cb84590726cc6a33fb5591b297d692afbd7129106fa"},
|
||||
{file = "langchain_cli-0.0.9.tar.gz", hash = "sha256:699545a8011b25f31c07d31428e4b71f775ccbbf3c243d9249183b5b7d77d8a9"},
|
||||
{file = "langchain_cli-0.0.15-py3-none-any.whl", hash = "sha256:88102d2bb9d7c9cc99a1da13302a7f95d60cb37b2dab264b808aa6e3887b046f"},
|
||||
{file = "langchain_cli-0.0.15.tar.gz", hash = "sha256:b7ff1a8338922aadbc3b1a141ea92c0a33aaaa72124dfbfd12049fe9a4a95cec"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
fastapi = ">=0.104.0,<0.105.0"
|
||||
gitpython = ">=3.1.40,<4.0.0"
|
||||
langserve = {version = ">=0.0.16", extras = ["all"]}
|
||||
tomli = ">=2.0.1,<3.0.0"
|
||||
typer = {version = ">=0.9.0,<0.10.0", extras = ["all"]}
|
||||
uvicorn = ">=0.23.2,<0.24.0"
|
||||
|
||||
[[package]]
|
||||
name = "langserve"
|
||||
version = "0.0.22"
|
||||
description = ""
|
||||
optional = false
|
||||
python-versions = ">=3.8.1,<4.0.0"
|
||||
files = [
|
||||
{file = "langserve-0.0.22-py3-none-any.whl", hash = "sha256:908239209959fc23202a09113b42c0e5838d046404a4e725602fe56af96bf340"},
|
||||
{file = "langserve-0.0.22.tar.gz", hash = "sha256:14a33986668c8d36aa2e58dc66307c021eaac18019d2b99e7fae30f6937650d1"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
fastapi = {version = ">=0.90.1", optional = true, markers = "extra == \"server\" or extra == \"all\""}
|
||||
httpx = ">=0.23.0"
|
||||
httpx-sse = {version = ">=0.3.1", optional = true, markers = "extra == \"client\" or extra == \"all\""}
|
||||
langchain = ">=0.0.322"
|
||||
pydantic = ">=1,<2"
|
||||
sse-starlette = {version = ">=1.3.0,<2.0.0", optional = true, markers = "extra == \"server\" or extra == \"all\""}
|
||||
|
||||
[package.extras]
|
||||
serve = ["langserve[all] (>=0.0.16)"]
|
||||
all = ["fastapi (>=0.90.1)", "httpx-sse (>=0.3.1)", "sse-starlette (>=1.3.0,<2.0.0)"]
|
||||
client = ["httpx-sse (>=0.3.1)"]
|
||||
server = ["fastapi (>=0.90.1)", "sse-starlette (>=1.3.0,<2.0.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "langsmith"
|
||||
@@ -2070,4 +2148,4 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = ">=3.8.1,<4.0"
|
||||
content-hash = "f5dd382a115fe8418c3a4b848c1544a54b20dc06f50d6be8de663f0835b9bb07"
|
||||
content-hash = "4ef618c14e9647fe96bbe5224865b1bd9b338c2ab567940cbf5b87119027e280"
|
||||
|
@@ -13,7 +13,7 @@ guardrails-ai = "^0.2.4"
|
||||
alt-profanity-check = "^1.3.1"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
langchain-cli = ">=0.0.4"
|
||||
langchain-cli = ">=0.0.15"
|
||||
fastapi = "^0.104.0"
|
||||
sse-starlette = "^1.6.5"
|
||||
|
||||
|
Reference in New Issue
Block a user