Prerequisites
- A SambaCloud account
- A SambaNova API key
- Python 3.9 or higher
- A running Milvus instance (local or cloud). See the Milvus quickstart guide to set one up.
Installation and setup
1
Create a virtual environment
macOS/Linux:Windows:
2
Install dependencies
3
Set your SambaNova API key
Example use cases
- Build Retrieval-Augmented Generation (RAG) systems
- Store and query embeddings efficiently
- Combine SambaNova LLMs with Milvus for scalable knowledge retrieval
Example notebooks
You can explore example notebooks to learn how to build RAG systems with SambaCloud and Milvus:- OpenAI Client guide: Build RAG with Milvus and SambaCloud
- LangChain Connector guide: RAG with Milvus and SambaCloud using LangChain
Troubleshooting
ModuleNotFoundError: No module named 'pymilvus'
ModuleNotFoundError: No module named 'pymilvus'
Install dependencies with the virtual environment active:
pip install pymilvus.Connection error to Milvus
Connection error to Milvus
Ensure Milvus is running and accessible. See the Milvus quickstart guide for setup instructions.

