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.1rc3.tar.gz (91.3 kB view details)

Uploaded Source

Built Distribution

langchain_cli-0.0.1rc3-py3-none-any.whl (97.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_cli-0.0.1rc3.tar.gz
  • Upload date:
  • Size: 91.3 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.1rc3.tar.gz
Algorithm Hash digest
SHA256 fbd6a3ffe8e23c7f69bf374fc3489070a61b8be85df94465110acc891cc770b6
MD5 305cf17e0f95b24f56e83b89d4b490d7
BLAKE2b-256 c5a42edf0e2f8c05f2fdcb9fff5ba99d6fec3c3c329e6e3404f1516abb70f1ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_cli-0.0.1rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 f8e055eb82190a4aa5dbb0ff0adfcb15acca4a4daa0c620657cca22562714ea1
MD5 a0449c0d3a650b8d88aaa3cb2c332457
BLAKE2b-256 4896eca306ef378849c140cbdf8838decb6725d2d4611d95429d4dd93342a805

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