RepoSambaNova SystemsSambaNova Systemspublished Jan 10, 2025seen 5d

sambanova/langchain-sambanova

Python

Open original ↗

Captured source

source ↗
published Jan 10, 2025seen 5dcaptured 14hhttp 200method plain

sambanova/langchain-sambanova

Language: Python

License: MIT

Stars: 3

Forks: 0

Open issues: 0

Created: 2025-01-10T19:10:30Z

Pushed: 2026-02-03T22:09:56Z

Default branch: main

Fork: no

Archived: no

README:

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?")

Notability

notability 2.0/10

New langchain repo with only 3 stars