Skip to main content

๐Ÿ‘ 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.

caution

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

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_KEY environment variable in the notebook as follows:
os.environ["GOOGLE_API_KEY"] = "your-google-api-key"
caution

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:

MONGODB_URI = "your_connection_string"