Skip to content

Commit

Permalink
Adding lecture notes section
Browse files Browse the repository at this point in the history
  • Loading branch information
ajosh0504 committed Jun 12, 2024
1 parent 24eed7f commit 67d4db6
Show file tree
Hide file tree
Showing 41 changed files with 18 additions and 18 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Creating a MongoDB Atlas account is free and does not require a credit card.

You will be greeted by a form similar to the one below.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/1-create-account/1-form.png" alt="Account creation form" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/1-create-account/1-form.png" alt="Account creation form" />

:::info
If you are doing this lab at an event, you should use the same email address you used to register for the event.
Expand All @@ -29,7 +29,7 @@ Complete the form and click the **Create Your Atlas Account** button.

You will receive an email from MongoDB asking you to verify your email address. Click the link in the email to verify your email address.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/1-create-account/2-verify-email.png" alt="Verify your email address" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/1-create-account/2-verify-email.png" alt="Verify your email address" />

:::caution
If you haven't received the email within two minutes, check your spam folder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Now that you have a MongoDB Atlas account, you can create your first cluster for

Once logged in, from the overview page, click on the green button that says **+ Create**.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/2-create-cluster/1-overview.png" alt="Overview screenshot" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/2-create-cluster/1-overview.png" alt="Overview screenshot" />

:::note
If you just created your account, you will automatically be redirected to the cluster creation page and can skip this step.
Expand All @@ -21,7 +21,7 @@ On the cluster creation page, choose the cloud provider and region where your da
1. Select your favorite cloud provider and the region closest to you.
1. Finally, click on the green button that says **Create Deployment**.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/2-create-cluster/2-deploy-database.png" alt="Create cluster screenshot" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/2-create-cluster/2-deploy-database.png" alt="Create cluster screenshot" />

Once you're done with the hardest part of the process (the captcha), you will be redirected to the security quickstart.

Expand Down Expand Up @@ -57,4 +57,4 @@ If you don't see a button to **Allow Access from Anywhere**, you should close th

That's all! You have a new database cluster. If everything goes well, you should see your newly created cluster on the **Database** tab under the **Deployment** section.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/2-create-cluster/3-database-deployment.png" alt="Screenshot of the database deployment screen" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/2-create-cluster/3-database-deployment.png" alt="Screenshot of the database deployment screen" />
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ In order to ingest data into your cluster later in the lab, you will need to get

In the Atlas UI, navigate to the **Overview** page. In the **Clusters section**, select the cluster you just created and click **Connect**.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/3-get-conn-string/1-connect-button.png" alt="Screenshot of the connect button" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/3-get-conn-string/1-connect-button.png" alt="Screenshot of the connect button" />

A modal will display several ways to connect to your database.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/3-get-conn-string/2-connect-modal.png" alt="Screenshot of the connect modal" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/3-get-conn-string/2-connect-modal.png" alt="Screenshot of the connect modal" />

Select **Compass**. While we won't be using Compass to import the data, it's an easy way to see your connection string.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/10-mongodb-atlas/3-get-conn-string/3-connect-compass.png" alt="Screenshot of the connection string" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/20-mongodb-atlas/3-get-conn-string/3-connect-compass.png" alt="Screenshot of the connection string" />

Look for your connection string. It should look something like:

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ The easiest way to use this model is via the Fireworks API. But first, you will

Start by navigating to the [Fireworks AI homepage](https://fireworks.ai/) and click the purple **Get Started Free** button to create an account.

<Screenshot url="https://fireworks.ai/" src="img/screenshots/20-fireworks-ai/1-create-account/1-homepage.png" alt="Get started" />
<Screenshot url="https://fireworks.ai/" src="img/screenshots/30-fireworks-ai/1-create-account/1-homepage.png" alt="Get started" />

Click **Login With Google** and authenticate with your Google account. This will provision a new Fireworks account and API Key for you.

<Screenshot url="https://fireworks.ai/" src="img/screenshots/20-fireworks-ai/1-create-account/2-google-login.png" alt="Login" />
<Screenshot url="https://fireworks.ai/" src="img/screenshots/30-fireworks-ai/1-create-account/2-google-login.png" alt="Login" />
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ If you already have a Fireworks account and want to create a new API key, follow

Upon logging in, click the **API Keys** tab.

<Screenshot url="https://fireworks.ai/" src="img/screenshots/20-fireworks-ai/2-create-api-key/1-api-key.png" alt="Select API keys" />
<Screenshot url="https://fireworks.ai/" src="img/screenshots/30-fireworks-ai/2-create-api-key/1-api-key.png" alt="Select API keys" />

Click the purple **Create API Key** button. In the modal that appears, enter a name and click **Create Key** to create an API key.

<Screenshot url="https://fireworks.ai/" src="img/screenshots/20-fireworks-ai/2-create-api-key/2-create-api-key.png" alt="Create API key" />
<Screenshot url="https://fireworks.ai/" src="img/screenshots/30-fireworks-ai/2-create-api-key/2-create-api-key.png" alt="Create API key" />

Click the copy button next to your API key to copy it to your clipboard. Paste the API key somewhere safe.

<Screenshot url="https://fireworks.ai/" src="img/screenshots/20-fireworks-ai/2-create-api-key/3-copy-api-key.png" alt="Copy API key" />
<Screenshot url="https://fireworks.ai/" src="img/screenshots/30-fireworks-ai/2-create-api-key/3-copy-api-key.png" alt="Copy API key" />
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You will be working in a Jupyter Notebook throughout this lab. The easiest and r

Navigate to the notebook on [GitHub](https://github.com/mongodb-developer/ai-agents-lab-notebooks/blob/main/notebook_template.ipynb) and click the **Open in Colab** badge at the top of the notebook to open it in Google Colab.

<Screenshot url="https://github.com/mongodb-developer/ai-agents-lab-notebooks" src="img/screenshots/30-dev-env/1-open-colab.png" alt="Open in Colab" />
<Screenshot url="https://github.com/mongodb-developer/ai-agents-lab-notebooks" src="img/screenshots/40-dev-env/1-open-colab.png" alt="Open in Colab" />

That's it! You're ready for the lab!

Expand Down Expand Up @@ -42,4 +42,4 @@ jupyter notebook

* In the browser tab that pops up, open the notebook named `notebook_template.ipynb`.

<Screenshot url="localhost:8888/tree" src="img/screenshots/30-dev-env/2-jupyter-notebook.png" alt="Jupyter Notebook" />
<Screenshot url="localhost:8888/tree" src="img/screenshots/40-dev-env/2-jupyter-notebook.png" alt="Jupyter Notebook" />
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ To retrieve documents from the knowledge base using vector search, you must conf

To do this, open the **Database Deployments** page in the Atlas UI and select **Create Index** in the lower right corner under Atlas Search.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/40-agent-tools/1-create-index.png" alt="Select create index" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/50-agent-tools/1-create-index.png" alt="Select create index" />

Click the **Create Search Index** button.

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/40-agent-tools/2-create-search-index.png" alt="Create search index" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/50-agent-tools/2-create-search-index.png" alt="Create search index" />

Click **JSON Editor** under Atlas Vector Search to create your index

<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/40-agent-tools/3-json-editor.png" alt="The 'Create Index' page with the 'JSON Editor' tab highlighted" />
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/50-agent-tools/3-json-editor.png" alt="The 'Create Index' page with the 'JSON Editor' tab highlighted" />


Select the `mongodb_agents_lab` database and the `knowledge` collection, change the index name to `vector_index`, and add the following index definition in the JSON editor:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 67d4db6

Please sign in to comment.