Skip to main content

An integration package connecting SambaNova and LangChain

Project description

SambaNova logo

langchain-sambanova

This package contains the LangChain integration with SambaNova

Installation

pip install -U langchain-sambanova

And you should configure credentials by setting the following environment variables:

If you are a SambaCloud user:

export SAMBANOVA_API_KEY="your-sambacloud-api-key-here"

You can obtain a free SambaCloud API key here

If you are a SambaStack user:

export SAMBANOVA_API_BASE="your-sambastack-api-base-url-here"
export SAMBANOVA_API_KEY="your-sambastack-api-key-here"

Chat Models

SambaNova

ChatSambaNova class exposes chat models from SambaNova unified interface for SambaCloud and SambaStack.

from langchain_sambanova import ChatSambaNova

llm = ChatSambaNova(
    model = "Llama-4-Maverick-17B-128E-Instruct",
    temperature = 0.7
)
llm.invoke("Tell me a joke about artificial intelligence.")

Embeddings

SambaNova

SambaNovaEmbeddings class exposes embeddings from SambaNova unified interface for SambaCloud and SambaStack.

from langchain_sambanova import SambaNovaEmbeddings

embeddings = SambaNovaEmbeddings(
    model="E5-Mistral-7B-Instruct"
)
embeddings.embed_query("What is the meaning of life?")

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_sambanova-1.1.0.tar.gz (19.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_sambanova-1.1.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file langchain_sambanova-1.1.0.tar.gz.

File metadata

  • Download URL: langchain_sambanova-1.1.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_sambanova-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2fef29ceea3683e0d09fdb432fa37e88ef46aa47102a49bd473bf8b81fd4e21a
MD5 4a1ee5a9fae7a36e7d9f5c3a798f2a40
BLAKE2b-256 8bdd017a9e4a3932b621a9929574444159e1f2b628863a389de715b157b5b527

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_sambanova-1.1.0.tar.gz:

Publisher: release.yml on sambanova/langchain-sambanova

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_sambanova-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_sambanova-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55fe9c1a9ea640fa42346e313319dfb57fa8d38d3822d3f9c43c708312bebee9
MD5 865edecd001f2edf442232a38a24f7cd
BLAKE2b-256 8ecdd2d89036b6e7fec1caf13dafd0958ea2dc2a9c6ea1309f5cdda28e1037b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_sambanova-1.1.0-py3-none-any.whl:

Publisher: release.yml on sambanova/langchain-sambanova

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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