The SambaNova Weave integration setup is detailed in the weave integration repository.
Prerequisites
- A SambaCloud account and API key
- Weights & Biases account and API key
- Python 3.10 or later
- Jupyter (to run the example notebook)
Setup
1
Install required packages
2
Set your API keys
SAMBANOVA_URL is required by the notebook’s OpenAI SDK connector. Without it,
the OpenAI client falls back to its own default endpoint and your SambaNova key
is rejected.3
Download and run the example notebook
Download the Weave@SambaNova notebook and launch it with Jupyter:The notebook demonstrates three connectors:
- SambaNova LangChain chat object
- LiteLLM
- OpenAI SDK
Troubleshooting
SAMBANOVA_API_KEY not set or authentication error
SAMBANOVA_API_KEY not set or authentication error
- Verify the key is exported:
echo "${SAMBANOVA_API_KEY:0:10}..." - Regenerate your key in the SambaCloud portal
- Re-export and restart your terminal or notebook kernel
WANDB_API_KEY not set or W&B authentication error
WANDB_API_KEY not set or W&B authentication error
- Verify the key is exported:
echo "${WANDB_API_KEY:0:10}..." - Retrieve your key from the W&B settings page
- Re-export and restart your terminal or notebook kernel
Jupyter not found
Jupyter not found
- Install Jupyter:
pip install jupyter - Or run the notebook with:
pip install jupyterlab && jupyter lab

