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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file langchain_cli-0.0.1rc2.tar.gz
.
File metadata
- Download URL: langchain_cli-0.0.1rc2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57b24b118bc99eb2285f66dcf412349ad1e16a0983096dc68e997a4f4f66a73a |
|
MD5 | 00a73817b0ec59047dd2283328f09b74 |
|
BLAKE2b-256 | a22343c387d17cfc6fc72527b0d6356fb8f6c467aaaa496cc176af35a1dc0a64 |
File details
Details for the file langchain_cli-0.0.1rc2-py3-none-any.whl
.
File metadata
- Download URL: langchain_cli-0.0.1rc2-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a873c2e4df636bd635b4e670d47b8a225cb5536845c6772d9736427482da74e |
|
MD5 | 0d32c18f2089ab61dc777c95a0b4cb32 |
|
BLAKE2b-256 | 9297fcf85321fe26929aa1e6cf51a28fa6bfb8c8a5fe6df6f898421648702b26 |