Skip to main content

An integration package connecting LlamaStack and LangChain

Project description

langchain-llama-stack

This package contains the LangChain integration with Llama Stack.

Installation

pip install -U langchain-llama-stack

If your Llama Stack distribution requires credentials, use the LLAMA_STACK_API_KEY environment variable.

If your Llama Stack distribution server is not running on http://localhost:8321, use the LLAMA_STACK_BASE_URL environment variable.

Chat Models

ChatLlamaStack class exposes chat models, which are hosted at /v1/inference/chat-completion on your Llama Stack distribution server.

from langchain_llama_stack import ChatLlamaStack

llm = ChatLlamaStack(model="meta/llama-3.1-8b-instruct")
llm.invoke("Sing a ballad of LangChain.")

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_llama_stack-0.0.4.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_llama_stack-0.0.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file langchain_llama_stack-0.0.4.tar.gz.

File metadata

  • Download URL: langchain_llama_stack-0.0.4.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for langchain_llama_stack-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5d91a10481ffe2a7e3f7bf9e82e808a8931a02888ae70e5d43dd3150045a1250
MD5 fad095dbd8f0e1ca4f825251496a376e
BLAKE2b-256 05150a55f1c5f416d842bb01963b02bc62f192f5eeac59c75339e7e398ef9dfc

See more details on using hashes here.

File details

Details for the file langchain_llama_stack-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_llama_stack-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 38ac4e0cbd93ae234e4b58cbd2357853bb1c1b08016a4b41751b8cc1bab26e19
MD5 1e10a3d59bf6676ee43a790eece66aa0
BLAKE2b-256 2c83740074a885fe1531d5b723fc8cb65433ca776b31c083944e949a10ded221

See more details on using hashes here.

Supported by

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