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
In the Explorer menu, navigate to `genai-devday-notebooks` > `notebooks` > `ai-agents-lab.ipynb` This is the Jupyter Notebook you will be using throughout this lab.
17
+
In the Explorer menu, navigate to `genai-devday-notebooks` > `labs` > `ai-agents-lab.ipynb` This is the Jupyter Notebook you will be using throughout this lab.
18
18
19
19
<Screenshoturl="https://play.instruqt.com"src="img/screenshots/20-dev-env/1-dev-env-setup/instruqt/2-nav-notebook.png"alt="Navigate to the notebook" />
20
20
@@ -29,7 +29,7 @@ import Screenshot from "@site/src/components/Screenshot";
Give the codespace a few seconds to restart. When files appear in the Explorer tab, click on the file named `ai-agents-lab.ipynb` under `notebooks`. This is the Jupyter Notebook you will be using throughout this lab.
32
+
Give the codespace a few seconds to restart. When files appear in the Explorer tab, click on the file named `ai-agents-lab.ipynb` under `labs`. This is the Jupyter Notebook you will be using throughout this lab.
33
33
34
34
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/codespaces/2-nav-notebook.png"alt="Navigate to the notebook" />
35
35
</TabItem>
@@ -89,7 +89,7 @@ You will also see the default databases in the cluster appear under **Connection
89
89
90
90
You will be filling code in a Jupyter Notebook during this lab, so let's get set up with that next!
91
91
92
-
Within the sandbox, click on the files icon in the left navigation bar of the IDE. In the Explorer menu, navigate to `genai-devday-notebooks` > `notebooks` > `ai-agents-lab.ipynb` to open the Jupyter Notebook for this lab.
92
+
Within the sandbox, click on the files icon in the left navigation bar of the IDE. In the Explorer menu, navigate to `genai-devday-notebooks` > `labs` > `ai-agents-lab.ipynb` to open the Jupyter Notebook for this lab.
93
93
94
94
<Screenshoturl="https://play.instruqt.com"src="img/screenshots/20-dev-env/1-dev-env-setup/instruqt/2-nav-notebook.png"alt="Navigate to the notebook" />
95
95
@@ -143,7 +143,7 @@ You will also see the default databases in the cluster appear under **Connection
143
143
144
144
You will be filling code in a Jupyter Notebook during this lab, so let's get set up with that next!
145
145
146
-
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-agents-lab.ipynb` to open the Jupyter Notebook for this lab.
146
+
Within the codespace, click on the files icon in the left navigation bar of the IDE. In the Explorer menu, under `labs`, click on the file named `ai-agents-lab.ipynb` to open the Jupyter Notebook for this lab.
147
147
148
148
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/1-dev-env-setup/codespaces/2-nav-notebook.png"alt="Navigate to the notebook" />
149
149
@@ -161,10 +161,10 @@ To run the lab locally, follow the steps below:
Select the LLM provider recommended by your instructor, and run the cells under the **Step 1: Setup prerequisites** section in the notebook.
3
+
Set the passkey and LLM provider provided by your instructor, and run the cells under the **Step 1: Setup prerequisites** section in the notebook.
4
4
5
-
:::info
5
+
### Expired passkey OR don't have a passkey
6
6
7
-
Additional steps **if you are running the lab locally**:
7
+
Passkeys are provided to you at MongoDB Developer Days to easily get API keys for LLM and embedding APIs that are used in the workshop. These passkeys are valid for 3 days after the workshop.
8
8
9
-
* Spin up a MongoDB Atlas cluster and obtain its connection string:
9
+
Once the passkey expires, or if you weren't at a MongoDB Developer Day recently, you will need to obtain the following API keys for the workshop:
10
10
11
-
* Register for a [free MongoDB Atlas account](https://www.mongodb.com/cloud/atlas/register) if you don't already have one
12
-
*[Create a new database cluster](https://www.mongodb.com/docs/guides/atlas/cluster)
13
-
*[Obtain the connection string](https://www.mongodb.com/docs/guides/atlas/connection-string) for your database cluster
14
-
15
-
* Set the `MONGODB_URI` variable to the connection string for your cluster as follows:
11
+
**Voyage AI**
12
+
* Follow the steps here to [obtain a Voyage AI API key](https://docs.voyageai.com/docs/api-key-and-installation#authentication-with-api-keys).
13
+
* Set the `VOYAGE_API_KEY` environment variable in the notebook as follows:
Copy file name to clipboardExpand all lines: docs/40-agent-tools/1-lecture-notes.mdx
-13Lines changed: 0 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,5 @@
1
1
# 📘 Lecture notes
2
2
3
-
## About the data
4
-
5
-
In this lab, we are using a serverless function to import the data required by the agent's tools, into MongoDB. If you want to do this on your own, these datasets are available on Hugging Face:
6
-
7
-
*[mongodb-docs](https://huggingface.co/datasets/MongoDB/mongodb-docs): Markdown versions of a small subset of MongoDB's technical documentation. This dataset is imported into a collection called `full_docs`.
8
-
9
-
*[mongodb-docs-embedded](https://huggingface.co/datasets/MongoDB/mongodb-docs-embedded): Chunked and embedded versions of the articles in the `mongodb-docs` dataset. This dataset is imported into a collection called `chunked_docs`.
10
-
11
-
To learn more about chunking and embedding, here are some resources from our Developer Center:
12
-
13
-
*[How to Choose the Right Chunking Strategy for Your LLM Application](https://www.mongodb.com/developer/products/atlas/choosing-chunking-strategy-rag/?utm_campaign=devrel&utm_medium=ai-agents-devday-workshop&utm_term=apoorva.joshi)
14
-
*[How to Choose the Best Embedding Model for Your LLM Application](https://www.mongodb.com/developer/products/atlas/choose-embedding-model-rag/?utm_campaign=devrel&utm_medium=ai-agents-devday-workshop&utm_term=apoorva.joshi)
15
-
16
3
## Tool calling
17
4
18
5
Tool calling, interchangeably called function calling allows an LLM to use external tools such as APIs, databases, specialized machine learning models etc.
Copy file name to clipboardExpand all lines: docs/40-agent-tools/2-create-vector-search-index.mdx
+1-16Lines changed: 1 addition & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,4 @@
2
2
3
3
To retrieve documents using vector search, you must configure a vector search index on the collection you want to perform vector search against.
4
4
5
-
Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 3: Create a vector search index** section in the notebook to create a vector search index.
6
-
7
-
The answers for code blocks in this section are as follows:
8
-
9
-
**CODE_BLOCK_1**
10
-
11
-
<details>
12
-
<summary>Answer</summary>
13
-
<div>
14
-
15
-
```python
16
-
create_index(vs_collection, VS_INDEX_NAME, model)
17
-
```
18
-
19
-
</div>
20
-
</details>
5
+
Run the cells under the **Step 3: Create a vector search index** section in the notebook to create a vector search index.
Copy file name to clipboardExpand all lines: docs/50-create-agent/1-lecture-notes.mdx
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,7 @@ To learn more about these concepts, refer to the [LangGraph docs](https://langch
17
17
18
18
## Using different LLM providers with LangChain
19
19
20
-
LangChain supports different LLM providers for you to build AI applications with. Unless you are using open-source models, you typically need to obtain API keys to use the chat completion APIs offered by different LLM providers.
21
-
22
-
For this lab, we have created a serverless function that creates LLM objects for Amazon, Google and Microsoft models that you can use with LangChain and LangGraph without having to obtain API keys. However, if you would like to do this on your own, here are some resources:
20
+
LangChain supports different LLM providers for you to build AI applications with. For this lab, we have created a utility function that generates LangChain LLM objects based on your chosen provider (Amazon, Google or Microsoft). However, if you would like to do this on your own, here are some resources:
23
21
24
22
*[Using Amazon Bedrock LLMs with LangChain](https://python.langchain.com/docs/integrations/llms/bedrock/)
0 commit comments