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.1a2.tar.gz (89.5 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.1a2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file langchain_llama_stack-0.2.1a2.tar.gz.

File metadata

  • Download URL: langchain_llama_stack-0.2.1a2.tar.gz
  • Upload date:
  • Size: 89.5 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.1a2.tar.gz
Algorithm Hash digest
SHA256 fa7adc2dfaa4fc5bc4fefaf97c8157ec001ab38f954a3bc8e8065f42e7cbf073
MD5 0be3fdcdc683bf13c7c54ea7e98ee770
BLAKE2b-256 6083c8703143d964b8cb6125ea3259699d157131b6bfa54e277cd9154815f6ad

See more details on using hashes here.

File details

Details for the file langchain_llama_stack-0.2.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_llama_stack-0.2.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 899c5f96d67278e6c0bb898c41021efa58d20a984093adf863d1b23506048a82
MD5 4a04ccae5017b9faf35c9334e53a9296
BLAKE2b-256 64bfd1db7d610de36d52ab8428c22f7d0fd8f1a43bd34ccfa87518b6df065de8

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