Skip to main content

An integration package connecting Llama Stack 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 or base_url param.

Chat Models

ChatLlamaStack class exposes chat models hosted 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.2.0.tar.gz (89.8 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.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_llama_stack-0.2.0.tar.gz
  • Upload date:
  • Size: 89.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 0b204c1a65dc2fcf64c34f32b6403eb2f49bad7e5689e6b04b09d9e352b9bdb6
MD5 6ae476cb11817ce5e7b5d19689786b8e
BLAKE2b-256 8c715c848d737edac353b40217e663203fc6f252b03712f0fd3511b1615d5a45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_llama_stack-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b99b2a910ac25816163bc4222b0d085f587ea18f3b2762b6f464529c0f6e3ac
MD5 8d8a3c25de05749d68c49d21676591b0
BLAKE2b-256 4c0e8b958d19c778b4640dce1046e2d0996239c9624fd9fd02f5d5ca6fa1418b

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