๐ Setup prerequisites
If you're at a MongoDB Developer Day, at the beginning of each lab, set the passkey provided by your workshop instructor, and run the cells under the Step 1: Setup prerequisites section in the lab notebook.
This will get you set up with all the API keys required to run the labs.
Expired passkey OR don't have a passkeyโ
The passkeys are valid for 3 days after the Developer Day. Once the passkey expires, or if you weren't at a MongoDB Developer Day recently, you will need to obtain your own API keys based on the labs you are working on:
Voyage AIโ
Required by: All labs
- Follow the steps here to obtain a Voyage AI API key.
- Set the
VOYAGE_API_KEYenvironment variable in the notebook as follows:
os.environ["VOYAGE_API_KEY"] = "your-voyageai-api-key"
Geminiโ
Required by: The A to Z of Building AI Agents
- Set the LLM_PROVIDER variable in Step 1 to "google"
- Obtain a Gemini API key from here.
- Set the
GOOGLE_API_KEYenvironment variable in the notebook as follows:
os.environ["GOOGLE_API_KEY"] = "your-google-api-key"
If you are running the labs locallyโ
If you aren't using Instruqt or GitHub Codespaces to run the labs and are instead running them locally, you will need to do the following additional steps for all labs:
-
Spin up a free MongoDB Atlas cluster and obtain its connection string:
- Register for a free MongoDB Atlas account if you don't already have one
- Create a new database cluster
- Obtain the connection string for your database cluster
-
Set the
MONGODB_URIvariable in the notebook as follows:
MONGODB_URI = "your_connection_string"