Skip to main content

learning to use langchain

Project description

rag-template-1

Installation

Install the LangChain CLI if you haven't yet

pip install -U "langchain-cli[serve]"

Adding packages

# adding packages from 
# https://github.com/langchain-ai/langchain/tree/master/templates
langchain app add $PROJECT_NAME

# adding custom GitHub repo packages
langchain app add --repo $OWNER/$REPO
# or with whole git string (supports other git providers):
# langchain app add git+https://github.com/hwchase17/chain-of-verification

# with a custom api mount point (defaults to `/{package_name}`)
langchain app add $PROJECT_NAME --api_path=/my/custom/path/rag

Note: you remove packages by their api path

langchain app remove my/custom/path/rag

Setup LangSmith (Optional)

LangSmith will help us trace, monitor and debug LangChain applications. LangSmith is currently in private beta, you can sign up here. If you don't have access, you can skip this section

export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_API_KEY=<your-api-key>
export LANGCHAIN_PROJECT=<your-project>  # if not specified, defaults to "default"

Launch LangServe

langchain serve

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

local_code_qa-0.0.1.tar.gz (4.6 MB view details)

Uploaded Source

Built Distribution

local_code_qa-0.0.1-py3-none-any.whl (4.6 MB view details)

Uploaded Python 3

File details

Details for the file local_code_qa-0.0.1.tar.gz.

File metadata

  • Download URL: local_code_qa-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.13 Darwin/23.1.0

File hashes

Hashes for local_code_qa-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c872384a6536f74e789c96167925e7750c2030c63f6016841ed8ad98b27670f4
MD5 e9994429238d656811185b7cf14b8624
BLAKE2b-256 46ecc3f6430b52f4e09c04d680daa54c11b9f7b23e7f0cf77b102d3b4cb3dbb6

See more details on using hashes here.

File details

Details for the file local_code_qa-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: local_code_qa-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.13 Darwin/23.1.0

File hashes

Hashes for local_code_qa-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad824eb206033764815f12ef071eb7ac8381d4a6226bc185642f4726a9824bfc
MD5 a8693758cf3085158be3cdc675e71b25
BLAKE2b-256 ae59743c3325ad77b9cfa46e87c31a00dd5e506c1715fc55b2ff19efff6a5dcc

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