Skip to content

Commit 86c8ea9

Browse files
jhpiedrahitaomdrxy
andauthored
integrations: update sambanova docs (#1145)
## Overview <!-- Brief description of what documentation is being added/updated --> This PR updates SambaNova chat models and embeddings to now use unified `ChatSambaNova` and `SambaNovaEmbeddings`, which were previously separated as SambaNova Cloud and SambaStudio, two different products of SambaNova with distinct APIs. Now, all SambaNova inference products are under a unified API ## Type of change **Type:** Update existing documentation / Remove outdated content ## Related issues/PRs <!-- Link to related issues, feature PRs, or discussions (if applicable) To automatically close an issue when this PR is merged, use closing keywords: - "closes #123" or "fixes #123" or "resolves #123" For regular references without auto-closing, just use: - "#123" or "See issue #123" Examples: - closes #456 (will auto-close issue #456 when PR is merged) - See #789 for context (will reference but not auto-close issue #789) --> - GitHub issue: - Feature PR: <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist <!-- Put an 'x' in all boxes that apply --> - [x] I have read the [contributing guidelines](README.md) - [x] I have tested my changes locally using `docs dev` - [x] All code examples have been tested and work correctly - [x] I have used **root relative** paths for internal links - [x] I have updated navigation in `src/docs.json` if needed - I have gotten approval from the relevant reviewers - (Internal team members only / optional) I have created a preview deployment using the [Create Preview Branch workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes <!-- Any other information that would be helpful for reviewers --> --------- Co-authored-by: Mason Daugherty <github@mdrxy.com>
1 parent d80f89b commit 86c8ea9

File tree

9 files changed

+50
-490
lines changed

9 files changed

+50
-490
lines changed

src/oss/python/integrations/chat/index.mdx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -619,21 +619,13 @@ Certain model providers offer endpoints that are compatible with OpenAI's [Chat
619619
/>
620620

621621
<Card
622-
title="SambaNovaCloud"
622+
title="SambaNova"
623623
icon="link"
624624
href="/oss/integrations/chat/sambanova"
625625
arrow="true"
626626
cta="View guide"
627627
/>
628628

629-
<Card
630-
title="SambaStudio"
631-
icon="link"
632-
href="/oss/integrations/chat/sambastudio"
633-
arrow="true"
634-
cta="View guide"
635-
/>
636-
637629
<Card
638630
title="ChatSeekrFlow"
639631
icon="link"

src/oss/python/integrations/chat/sambanova.mdx

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: ChatSambaNovaCloud
2+
title: ChatSambaNova
33
---
44

5-
This will help you get started with SambaNovaCloud [chat models](/oss/langchain/models/). For detailed documentation of all ChatSambaNovaCloud features and configurations head to the [API reference](https://docs.sambanova.ai/cloud/docs/get-started/overview).
5+
This will help you get started with SambaNova [chat models](/oss/langchain/models/). For detailed documentation of all `ChatSambaNova` features and configurations head to the [API reference](https://docs.sambanova.ai/cloud/docs/get-started/overview).
66

7-
**[SambaNova](https://sambanova.ai/)'s** [SambaNova Cloud](https://cloud.sambanova.ai/) is a platform for performing inference with open-source models
7+
**[SambaNova](https://sambanova.ai/)'s** [SambaCloud](http://cloud.sambanova.ai?utm_source=langchain&utm_medium=external&utm_campaign=cloud_signup) is a cloud platform for performing inference with open-source models
88

99
## Overview
1010

1111
### Integration details
1212

1313
| Class | Package | Local | Serializable | JS support | Downloads | Version |
1414
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
15-
| [ChatSambaNovaCloud](https://docs.sambanova.ai/cloud/docs/get-started/overview) | [langchain-sambanova](https://python.langchain.com/docs/integrations/providers/sambanova/) || || ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain_sambanova?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain_sambanova?style=flat-square&label=%20) |
15+
| [`ChatSambaNova`](https://docs.sambanova.ai/cloud/docs/get-started/overview) | [`langchain-sambanova`](/oss/integrations/providers/sambanova/) || beta || ![PyPI - Downloads](https://img.shields.io/pypi/dm/langchain_sambanova?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/langchain_sambanova?style=flat-square&label=%20) |
1616

1717
### Model features
1818

@@ -22,31 +22,27 @@ This will help you get started with SambaNovaCloud [chat models](/oss/langchain/
2222

2323
## Setup
2424

25-
To access ChatSambaNovaCloud models you will need to create a [SambaNovaCloud](https://cloud.sambanova.ai/) account, get an API key, install the `langchain_sambanova` integration package.
25+
To access SambaNova models you will need to create a [SambaCloud](http://cloud.sambanova.ai?utm_source=langchain&utm_medium=external&utm_campaign=cloud_signup) account, get an API key, install the `langchain_sambanova` integration package.
2626

2727
```bash
2828
pip install langchain-sambanova
2929
```
3030

3131
### Credentials
3232

33-
Get an API Key from [cloud.sambanova.ai](https://cloud.sambanova.ai/apis) and add it to your environment variables:
34-
35-
``` bash
36-
export SAMBANOVA_API_KEY="your-api-key-here"
37-
```
33+
Get an API Key from [cloud.sambanova.ai](http://cloud.sambanova.ai/apis?utm_source=langchain&utm_medium=external&utm_campaign=cloud_signupapis) Once you've done this set the SAMBANOVA_API_KEY environment variable:
3834

3935
```python
4036
import getpass
4137
import os
4238

4339
if not os.getenv("SAMBANOVA_API_KEY"):
4440
os.environ["SAMBANOVA_API_KEY"] = getpass.getpass(
45-
"Enter your SambaNova Cloud API key: "
41+
"Enter your SambaNova API key: "
4642
)
4743
```
4844

49-
If you want to get automated tracing of your model calls you can also set your [LangSmith](https://docs.smith.langchain.com/) API key by uncommenting below:
45+
To enable automated tracing of your model calls, set your [LangSmith](https://docs.smith.langchain.com/) API key:
5046

5147
```python
5248
os.environ["LANGSMITH_TRACING"] = "true"
@@ -55,7 +51,7 @@ os.environ["LANGSMITH_API_KEY"] = getpass.getpass("Enter your LangSmith API key:
5551

5652
### Installation
5753

58-
The LangChain **SambaNovaCloud** integration lives in the `langchain_sambanova` package:
54+
The LangChain **SambaNova** integration lives in the `langchain_sambanova` package:
5955

6056
```python
6157
pip install -qU langchain-sambanova
@@ -66,13 +62,14 @@ pip install -qU langchain-sambanova
6662
Now we can instantiate our model object and generate chat completions:
6763

6864
```python
69-
from langchain_sambanova import ChatSambaNovaCloud
65+
from langchain_sambanova import ChatSambaNova
7066

71-
llm = ChatSambaNovaCloud(
67+
llm = ChatSambaNova(
7268
model="Meta-Llama-3.3-70B-Instruct",
7369
max_tokens=1024,
7470
temperature=0.7,
7571
top_p=0.01,
72+
# other params...
7673
)
7774
```
7875

@@ -272,8 +269,8 @@ Joke(setup='Why did the cat join a band?', punchline='Because it wanted to be th
272269
## Input Image
273270

274271
```python
275-
multimodal_llm = ChatSambaNovaCloud(
276-
model="Llama-3.2-11B-Vision-Instruct",
272+
multimodal_llm = ChatSambaNova(
273+
model="Llama-4-Maverick-17B-128E-Instruct",
277274
max_tokens=1024,
278275
temperature=0.7,
279276
top_p=0.01,
@@ -309,4 +306,4 @@ The weather in this image is a serene and peaceful atmosphere, with a blue sky a
309306

310307
## API reference
311308

312-
For detailed documentation of all SambaNovaCloud features and configurations head to the API reference: [docs.sambanova.ai/cloud/docs/get-started/overview](https://docs.sambanova.ai/cloud/docs/get-started/overview)
309+
For detailed documentation of all SambaNova features and configurations head to the API reference: [docs.sambanova.ai/cloud/docs/get-started/overview](https://docs.sambanova.ai/cloud/docs/get-started/overview)

src/oss/python/integrations/chat/sambastudio.mdx

Lines changed: 0 additions & 270 deletions
This file was deleted.

0 commit comments

Comments
 (0)