Skip to main content
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?")

Metadata

Release files for langchain-sambanova 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-sambanova 1.1.1
File Size Uploaded
langchain_sambanova-1.1.1.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-sambanova 1.1.1
File Interpreter ABI Platform
langchain_sambanova-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 39.8 kB

Release files / langchain_sambanova-1.1.1.tar.gz

Download URL langchain_sambanova-1.1.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1801b9b1c945de7b6e97e3b98082d5e3bf133e27aebc6fa801d0b115ac8fad93
BLAKE2b-256 checksum
How to use checksums
9019da39f00b0c884a909eba3f03c96b76995ae94dc9b6cbec12a8e761f071bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2026.

Transparency log

Release files / langchain_sambanova-1.1.1-py3-none-any.whl

Download URL langchain_sambanova-1.1.1-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f6143388b679c4eb84e13bb49eb43f5f951903dffc919a04034541e86c4611b
BLAKE2b-256 checksum
How to use checksums
3d7a8096a4d43fe17888ba3a53b191c8326ed70f73d1335027d130985656f1d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page