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
Copy file name to clipboardExpand all lines: docs/20-dev-env/1-dev-env-setup.mdx
+11-19Lines changed: 11 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -32,45 +32,37 @@ Let it run for a few seconds as it prepares a Docker container with all the requ
32
32
33
33
Once the environment is built, you will be prompted to connect to the MongoDB cluster via MongoDB's VSCode extension. This will allow you to visualize the data that we will import into the cluster later in the lab, directly from the VSCode IDE.
34
34
35
-
To connect to the cluster, click the **Connect** button.
35
+
To connect to the cluster, click the leaf icon in the left navigation bar of the IDE.
In the modal that appears at the top of the screen, copy and paste the following string, and hit **Enter**on your keyboard:
39
+
Under **Connections**, click the _mongodb:27017_ connection. This should automatically establish a connection to the local MongoDB cluster running on port 27017.
40
40
41
-
<div>
42
-
```
43
-
mongodb://admin:mongodb@mongodb:27017/
44
-
```
45
-
</div>
41
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/5-connect-cluster.png"alt="Connect to the cluster" />
If the connection was successful, you should see the message **Connected to: mongodb:27017** with a green indicator.
48
44
49
-
If the connection was successful, you should see **Connected to: mongodb:27017** with a green indicator.
45
+
You will also see the default databases in the cluster appear under **Connections**. Any additional databases we create during the lab will also appear here.
You can view the default and any additional collections we create on the cluster during the lab by clicking the leaf icon in the left navigation bar of the IDE.
You will be filling code in a Jupyter Notebook during this lab, so let's get set up with that next!
60
52
61
53
Within the codespace, click on the files icon in the left navigation bar of the IDE. In the Explorer menu, under `notebooks`, click on the file named `ai-rag-lab.ipynb` to open the Jupyter Notebook for this lab.
62
54
63
-
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/8-nav-notebook.png"alt="Navigate to the notebook" />
55
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/7-nav-notebook.png"alt="Navigate to the notebook" />
64
56
65
57
Next, select the Python interpreter by clicking **Select Kernel** at the top right of the IDE.
First, let's download the dataset for the lab. We'll use a subset of MongoDB's technical documentation as the source data for the documentation chatbot.
4
+
5
+
Run all the cells under the **Step 2: Load the dataset** section in the notebook to load the dataset from a local file.
0 commit comments