You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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>
Copy file name to clipboardExpand all lines: src/oss/python/integrations/chat/sambanova.mdx
+15-18Lines changed: 15 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
---
2
-
title: ChatSambaNovaCloud
2
+
title: ChatSambaNova
3
3
---
4
4
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).
6
6
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
8
8
9
9
## Overview
10
10
11
11
### Integration details
12
12
13
13
| Class | Package | Local | Serializable | JS support | Downloads | Version |
@@ -22,31 +22,27 @@ This will help you get started with SambaNovaCloud [chat models](/oss/langchain/
22
22
23
23
## Setup
24
24
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.
26
26
27
27
```bash
28
28
pip install langchain-sambanova
29
29
```
30
30
31
31
### Credentials
32
32
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:
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:
50
46
51
47
```python
52
48
os.environ["LANGSMITH_TRACING"] ="true"
@@ -55,7 +51,7 @@ os.environ["LANGSMITH_API_KEY"] = getpass.getpass("Enter your LangSmith API key:
55
51
56
52
### Installation
57
53
58
-
The LangChain **SambaNovaCloud** integration lives in the `langchain_sambanova` package:
54
+
The LangChain **SambaNova** integration lives in the `langchain_sambanova` package:
Now we can instantiate our model object and generate chat completions:
67
63
68
64
```python
69
-
from langchain_sambanova importChatSambaNovaCloud
65
+
from langchain_sambanova importChatSambaNova
70
66
71
-
llm =ChatSambaNovaCloud(
67
+
llm =ChatSambaNova(
72
68
model="Meta-Llama-3.3-70B-Instruct",
73
69
max_tokens=1024,
74
70
temperature=0.7,
75
71
top_p=0.01,
72
+
# other params...
76
73
)
77
74
```
78
75
@@ -272,8 +269,8 @@ Joke(setup='Why did the cat join a band?', punchline='Because it wanted to be th
272
269
## Input Image
273
270
274
271
```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",
277
274
max_tokens=1024,
278
275
temperature=0.7,
279
276
top_p=0.01,
@@ -309,4 +306,4 @@ The weather in this image is a serene and peaceful atmosphere, with a blue sky a
309
306
310
307
## API reference
311
308
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)
0 commit comments