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.2.tar.gz (7.7 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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_llama_stack-0.0.2.tar.gz
  • Upload date:
  • Size: 7.7 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.2.tar.gz
Algorithm Hash digest
SHA256 99373172d4522f3b0896d22c5532b6c3efddc6fe51052f225d7620a1ac56cdd1
MD5 f29f66e25edf8a354066cf125f9c1998
BLAKE2b-256 0cc69118b74a7312166bf9e2ef1ff049de36fb589b7bfc984d2f8564091b3ebe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_llama_stack-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 52c6469ff868725a98be3cac2d2a3687b4d4d7eeb4dfe40f9b46eff19fa9de5d
MD5 6db01ee43882601ee21a75a7cb33f65c
BLAKE2b-256 0e53059faea827e14962f456ec2c3c6b2c338935c24690710e0048f86ee74c8d

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