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

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_llama_stack-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 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.1.tar.gz
Algorithm Hash digest
SHA256 6b1557e8142a3cab58007ae8223f7c4905a7fe2eaac534d4073d025b561a852b
MD5 9d27683c9ec9a1a7cb7ab06836631546
BLAKE2b-256 bfd0d7b8d541e2fe80fdb34ec8c66aed8bb8abe7c1c82c0502f1418366fc5c83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_llama_stack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3a3df60fc614f5a10cce0a8ad31f8c36148dbe973a19a1c9a9a8cac9b9b89d1
MD5 3bca854bc980bbb3be926c96453da366
BLAKE2b-256 5cd174c150e6521e1961ef5a4eeccc2c5f97bd44630455dbe45585209caf1577

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