-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ajosh0504
committed
Nov 18, 2024
1 parent
e8b84ab
commit 8c803c3
Showing
29 changed files
with
102 additions
and
23 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# @global-owner1 and @global-owner2 will be requested for | ||
# review when someone opens a pull request. | ||
* @ajosh0504 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 📘 Running Jupyter Notebooks in Google Colab | ||
|
||
Jupyter Notebooks is an interactive Python environment. Cells in a Jupyter notebook are a modular unit of code or text that you can execute and view outputs for. | ||
|
||
In this lab, we will use Colaboratory (a.k.a Colab) which is a hosted Jupyter Notebook service from Google. | ||
|
||
To run a cell in Colab, hover over it and click the Run icon that appears against the cell. | ||
|
||
<Screenshot url="https://us-west-2.console.aws.amazon.com/sagemaker/jupyter" src="img/screenshots/50-agent-tools/2-jupyter-notebooks/1-run-cell.png" alt="Run a cell" /> | ||
|
||
When a cell is running, you will see a loading spinner appear against the cell. | ||
|
||
<Screenshot url="https://us-west-2.console.aws.amazon.com/sagemaker/jupyter" src="img/screenshots/50-agent-tools/2-jupyter-notebooks/2-running-cell.png" alt="A running cell" /> | ||
|
||
When a cell is finished running successfully, you will see green check mark appear against the cell. | ||
|
||
<Screenshot url="https://us-west-2.console.aws.amazon.com/sagemaker/jupyter" src="img/screenshots/50-agent-tools/2-jupyter-notebooks/3-successful-cell.png" alt="Successful cell run" /> | ||
|
||
If an error occurred while running a cell, you will see an error traceback after the cell. | ||
|
||
<Screenshot url="https://us-west-2.console.aws.amazon.com/sagemaker/jupyter" src="img/screenshots/50-agent-tools/2-jupyter-notebooks/4-error-in-cell.png" alt="Erroneous cell run" /> | ||
|
||
To fix errors, you may need to update previous cells. If you do, re-run all the cells following the one(s) you updated. | ||
|
||
To interrupt a running cell, click the Stop icon that you see against the cell while it is running. | ||
|
||
<Screenshot url="https://us-west-2.console.aws.amazon.com/sagemaker/jupyter" src="img/screenshots/50-agent-tools/2-jupyter-notebooks/5-interrupt-cell.png" alt="Interrupt cell run" /> | ||
|
||
:::warning | ||
The UI might differ slightly if you are running Jupyter Notebooks outside of Google Colab. Refer to the appropriate documentation if running the notebook using a different service. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 👐 Import data | ||
|
||
The MongoDB learning assistant has two tools- a vector search tool to retrieve information to answer questions about MongoDB, and another tool to get the content of articles in our Developer Center for summarization. | ||
|
||
Let's import the data required by these tools into two MongoDB collections. This is as simple as making a `GET` request to a serverless function that we have created for you. | ||
|
||
Run the cells under the **Step 3: Import data** section in the notebook to import the data required by our agent's tools, into MongoDB collections. | ||
|
||
To verify that the data has been imported into your MongoDB cluster, navigate to the **Overview** page in the Atlas UI. In the **Clusters section**, select the cluster you just created and click **Browse collections**. | ||
|
||
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/50-agent-tools/3-import-data/1-browse-collections.png" alt="Browse collections" /> | ||
|
||
Ensure that you see a database called _mongodb_agents_lab_, and two collections namely _chunked_articles_ and _full_articles_ under it. Note the number and format of documents in both the collections. | ||
|
||
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/50-agent-tools/3-import-data/2-chunked-collection.png" alt="Chunked collection" /> | ||
|
||
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/50-agent-tools/3-import-data/3-full-collection.png" alt="Full collection" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57.5 KB
static/img/screenshots/20-mongodb-atlas/1-create-account/4-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87.8 KB
static/img/screenshots/20-mongodb-atlas/1-create-account/5-new-project-name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.86 KB
(96%)
static/img/screenshots/20-mongodb-atlas/3-get-conn-string/1-connect-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+136 KB
(220%)
static/img/screenshots/20-mongodb-atlas/3-get-conn-string/2-connect-modal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-122 KB
static/img/screenshots/20-mongodb-atlas/3-get-conn-string/3-connect-compass.png
Binary file not shown.
Binary file added
BIN
+273 KB
static/img/screenshots/20-mongodb-atlas/3-get-conn-string/3-connect-drivers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+59.7 KB
static/img/screenshots/50-agent-tools/2-jupyter-notebooks/1-run-cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.6 KB
static/img/screenshots/50-agent-tools/2-jupyter-notebooks/2-running-cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.4 KB
static/img/screenshots/50-agent-tools/2-jupyter-notebooks/3-successful-cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.2 KB
static/img/screenshots/50-agent-tools/2-jupyter-notebooks/4-error-in-cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.6 KB
static/img/screenshots/50-agent-tools/2-jupyter-notebooks/5-interrupt-cell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+54.6 KB
static/img/screenshots/50-agent-tools/3-import-data/1-browse-collections.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+146 KB
static/img/screenshots/50-agent-tools/3-import-data/2-chunked-collection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+139 KB
static/img/screenshots/50-agent-tools/3-import-data/3-full-collection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.6 KB
...creenshots/50-agent-tools/4-create-vector-search-index/1-nav-search-indexes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65.1 KB
...c/img/screenshots/50-agent-tools/4-create-vector-search-index/2-index-ready.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.