Skip to main content

CLI for interacting with LangChain

Project description

langchain-cli

Install CLI

pip install -U --pre langchain-cli

Create new langchain app

langchain serve new my-app

Go into app

cd my-app

Install a package

langchain serve add extraction-summary

(Activate virtualenv)

Install langserve

pip install "langserve[all]"

Install the langchain package

pip install -e packages/extraction-summary

Edit app/server.py to add that package to the routes

from fastapi import FastAPI
from langserve import add_routes 
from extraction_summary.chain import chain

app = FastAPI()

add_routes(app, chain)

Run the app

python app/server.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_cli-0.0.1rc4.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

langchain_cli-0.0.1rc4-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file langchain_cli-0.0.1rc4.tar.gz.

File metadata

  • Download URL: langchain_cli-0.0.1rc4.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for langchain_cli-0.0.1rc4.tar.gz
Algorithm Hash digest
SHA256 dfe046779442ddc23a20d27af7d7b057b1b7396b7510f7e4ca234d135d2e3cd8
MD5 8a23173a3f83635363ebc5d641e122f5
BLAKE2b-256 88ea1672afeb7dab3a0b731cbe0e4c1b0543cd6929ce4e93bbf1ff7b71f3312c

See more details on using hashes here.

File details

Details for the file langchain_cli-0.0.1rc4-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_cli-0.0.1rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 f4ffe4c06c6e84d5d04c82a19ddf53bb7cfc382cbc2bc36da8e415d510f995cf
MD5 cd6579545d2a7caf664a10cace54cb31
BLAKE2b-256 7e54a6270fb13191427f47dbce3ce829f3802a567c4099144c6e2dd4114f304b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page