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
+29-8Lines changed: 29 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ import Screenshot from "@site/src/components/Screenshot";
7
7
8
8
Navigate to [this](https://github.com/codespaces/new/mongodb-developer/genai-devday-notebooks?quickstart=1) link. Click the **Resume this codespace** button to resume the code space you created previously.
Give the codespace a few seconds to restart. When files appear under the Explorer, click the file named `ai-agents-lab.ipynb`. This is the Jupyter Notebook you will be using throughout this lab.
13
13
14
-
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/30-dev-env/1-dev-env-setup/3-nav-notebook.png"alt="Navigate to the notebook" />
14
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/2-nav-notebook.png"alt="Navigate to the notebook" />
15
15
</details>
16
16
17
17
:::tip
@@ -24,26 +24,47 @@ You will be working in a Jupyter Notebook in a GitHub Codespace throughout this
24
24
25
25
Navigate to [this](https://github.com/codespaces/new/mongodb-developer/genai-devday-notebooks?quickstart=1) link. You will be prompted to sign into GitHub if you haven't already. Once signed in, click the **Create new codespace** button to create a new codespace.
26
26
27
-
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/30-dev-env/1-dev-env-setup/2-create-codespace.png"alt="Start a codespace" />
27
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/3-create-codespace.png"alt="Start a codespace" />
28
28
29
29
Let it run for a few seconds as it prepares your environment. It will clone the repository, prepare the container, and run the installation scripts. Once the environment is built, you should see a list of files appear under the Explorer.
30
30
31
31
In the left navigation bar of the IDE, click on the file named `ai-agents-lab.ipynb` to open the Jupyter Notebook for this lab.
32
32
33
-
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/30-dev-env/1-dev-env-setup/3-nav-notebook.png"alt="Navigate to the notebook" />
33
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/2-nav-notebook.png"alt="Navigate to the notebook" />
34
34
35
35
Next, select the Python interpreter by clicking **Select Kernel** at the top right of the IDE.
If the connection was successful, you should see the cluster and its default databases under Connections. Any additional databases and collections created during the lab will appear here as well.
The documentation agent has two tools- a vector search tool to retrieve information from documentation to answer questions, and another tool to get the content from specific documentation pages for summarization.
4
+
5
+
Let's import the data required by these tools into two MongoDB collections.
6
+
7
+
Run the cells under the **Step 2: Import data into MongoDB** section in the notebook to import the data required by the agent's tools, into MongoDB collections.
8
+
9
+
<details>
10
+
<summary>🦹 Visually verify that the data has been imported into the local MongoDB cluster </summary>
11
+
12
+
Click the leaf icon in the left navigation bar of the IDE.
13
+
14
+
Ensure that you see a database called _mongodb_genai_devday_agents_, and two collections named _mongodb_docs_ and _mongodb_docs_embeddings_ under it.
0 commit comments