-
Notifications
You must be signed in to change notification settings - Fork 3
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 15, 2024
1 parent
5757436
commit df350d9
Showing
26 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
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,25 @@ | ||
# 📘 Running code in Jupyter Notebooks | ||
|
||
Jupyter Notebooks are 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. | ||
|
||
To run a cell, highlight it and click the Run icon in the toolbar at the top. | ||
|
||
<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 * in the square brackets ([ ]) 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 a number appear in the [ ] with no 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/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 in the toolbar at the top. | ||
|
||
<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" /> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Link from "@site/src/components/Link"; | ||
import Screenshot from "@site/src/components/Screenshot"; | ||
|
||
# 👐 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 AWS Lambda 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/4-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/4-import-data/2-chunked-collection.png" alt="Chunked collection" /> | ||
|
||
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/50-agent-tools/4-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.
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 modified
BIN
+152 KB
(220%)
static/img/screenshots/20-mongodb-atlas/3-get-conn-string/3-connect-compass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
-24.3 KB
(72%)
static/img/screenshots/30-aws/3-sagemaker-studio/1-nav-sagemaker.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
-27.2 KB
(60%)
static/img/screenshots/30-aws/3-sagemaker-studio/6-clone-repo.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
+2.76 KB
(100%)
static/img/screenshots/30-aws/3-sagemaker-studio/7-open-template.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
+24.9 KB
static/img/screenshots/30-aws/3-sagemaker-studio/8-select-notebook-env.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
+34.2 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
+11 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
+9.79 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
+32.7 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
+34.5 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/4-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/4-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/4-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/5-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/5-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.