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.3.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

langchain_cli-0.0.3-py3-none-any.whl (96.7 kB view details)

Uploaded Python 3

File details

Details for the file langchain_cli-0.0.3.tar.gz.

File metadata

  • Download URL: langchain_cli-0.0.3.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.1

File hashes

Hashes for langchain_cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5ef7a0e1eabe62d43243704badf07d89829b486b0ee1c48c915a3057dfaab27d
MD5 b9c3175e6771d93a420d96de0147594a
BLAKE2b-256 935c2f392af829506ded268aae655e5b2eab09ec9d963d31e6e44c35d4a0e18e

See more details on using hashes here.

File details

Details for the file langchain_cli-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_cli-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 96ff5fcc1b7c253ddac49eb450cc6822dd4be27e2a1f4d810a450303d32d8dbf
MD5 1558257b69d686c55f0cd7aad3c8a0c2
BLAKE2b-256 91aa9e5fa9434b1a3becec95de0ea6b509ebf0f44b34e2e14a336e749c599292

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