Skip to content

Commit cc8b36b

Browse files
author
ajosh0504
committed
Updating code blocks, screenshots
1 parent 17b10a3 commit cc8b36b

File tree

12 files changed

+34
-23
lines changed

12 files changed

+34
-23
lines changed

docs/20-getting-started/3-setup-pre-reqs.mdx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The answers for code blocks in this section are as follows:
1010
<summary>Answer</summary>
1111
<div>
1212
```python
13-
mongodb_client[DB_NAME][VS_COLLECTION_NAME]
13+
mongodb_client[DB_NAME]
1414
```
1515
</div>
1616
</details>
@@ -21,7 +21,18 @@ mongodb_client[DB_NAME][VS_COLLECTION_NAME]
2121
<summary>Answer</summary>
2222
<div>
2323
```python
24-
mongodb_client[DB_NAME][FULL_COLLECTION_NAME]
24+
db[VS_COLLECTION_NAME]
25+
```
26+
</div>
27+
</details>
28+
29+
**CODE_BLOCK_3**
30+
31+
<details>
32+
<summary>Answer</summary>
33+
<div>
34+
```python
35+
db[FULL_COLLECTION_NAME]
2536
```
2637
</div>
2738
</details>

docs/30-agent-tools/2-import-data.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To verify that the data has been imported into your MongoDB cluster, navigate to
1616

1717
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/30-agent-tools/2-import-data/1-browse-collections.png" alt="Browse collections" />
1818

19-
Ensure that you see a database called _mongodb_genai_devday_, and two collections namely _chunked_docs_ and _full_docs_ under it. Note the number and format of documents in both the collections.
19+
Ensure that you see a database called _mongodb_genai_devday_, and two collections namely _mongodb-docs_ and _mongodb-docs-embedded_ under it. Note the number and format of documents in both the collections.
2020

2121
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/30-agent-tools/2-import-data/2-chunked-collection.png" alt="Chunked collection" />
2222

docs/30-agent-tools/3-create-vector-search-index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 3:
66

77
The answers for code blocks in this section are as follows:
88

9-
**CODE_BLOCK_3**
9+
**CODE_BLOCK_4**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -21,7 +21,7 @@ To verify that the index was created, navigate to the **Overview** page in the A
2121

2222
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/30-agent-tools/3-create-vector-search-index/1-browse-collections.png" alt="Browse collections" />
2323

24-
Navigate to **Search Indexes** for the _chunked_docs_ collection in the _mongodb_genai_devday_ database.
24+
Navigate to **Search Indexes** for the _mongodb-docs-embedded_ collection in the _mongodb_genai_devday_ database.
2525

2626
<Screenshot url="https://cloud.mongodb.com" src="img/screenshots/30-agent-tools/3-create-vector-search-index/2-nav-search-indexes.png" alt="Navigate to search indexes" />
2727

docs/30-agent-tools/4-create-agent-tools.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 4:
1212

1313
The answers for code blocks in this section are as follows:
1414

15-
**CODE_BLOCK_4**
15+
**CODE_BLOCK_5**
1616

1717
<details>
1818
<summary>Answer</summary>
@@ -23,7 +23,7 @@ embedding_model.encode(text)
2323
</div>
2424
</details>
2525

26-
**CODE_BLOCK_5**
26+
**CODE_BLOCK_6**
2727

2828
<details>
2929
<summary>Answer</summary>
@@ -34,7 +34,7 @@ get_embedding(user_query)
3434
</div>
3535
</details>
3636

37-
**CODE_BLOCK_6**
37+
**CODE_BLOCK_7**
3838

3939
<details>
4040
<summary>Answer</summary>
@@ -62,7 +62,7 @@ get_embedding(user_query)
6262
</div>
6363
</details>
6464

65-
**CODE_BLOCK_7**
65+
**CODE_BLOCK_8**
6666

6767
<details>
6868
<summary>Answer</summary>
@@ -73,7 +73,7 @@ vs_collection.aggregate(pipeline)
7373
</div>
7474
</details>
7575

76-
**CODE_BLOCK_8**
76+
**CODE_BLOCK_9**
7777

7878
<details>
7979
<summary>Answer</summary>
@@ -84,7 +84,7 @@ vs_collection.aggregate(pipeline)
8484
</div>
8585
</details>
8686

87-
**CODE_BLOCK_9**
87+
**CODE_BLOCK_10**
8888

8989
<details>
9090
<summary>Answer</summary>
@@ -95,7 +95,7 @@ vs_collection.aggregate(pipeline)
9595
</div>
9696
</details>
9797

98-
**CODE_BLOCK_10**
98+
**CODE_BLOCK_11**
9999

100100
<details>
101101
<summary>Answer</summary>

docs/40-create-agent/3-instantiate-llm.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 6:
66

77
The answers for code blocks in this section are as follows:
88

9-
**CODE_BLOCK_11**
9+
**CODE_BLOCK_12**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -17,7 +17,7 @@ llm.bind_tools(tools)
1717
</div>
1818
</details>
1919

20-
**CODE_BLOCK_12**
20+
**CODE_BLOCK_13**
2121

2222
<details>
2323
<summary>Answer</summary>

docs/40-create-agent/4-define-graph-nodes.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 7:
66

77
The answers for code blocks in this section are as follows:
88

9-
**CODE_BLOCK_13**
9+
**CODE_BLOCK_14**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -17,7 +17,7 @@ state["messages"]
1717
</div>
1818
</details>
1919

20-
**CODE_BLOCK_14**
20+
**CODE_BLOCK_15**
2121

2222
<details>
2323
<summary>Answer</summary>
@@ -28,7 +28,7 @@ llm_with_tools.invoke(messages)
2828
</div>
2929
</details>
3030

31-
**CODE_BLOCK_15**
31+
**CODE_BLOCK_16**
3232

3333
<details>
3434
<summary>Answer</summary>

docs/40-create-agent/6-build-and-execute-graph.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 9:
66

77
The answers for code blocks in this section are as follows:
88

9-
**CODE_BLOCK_16**
9+
**CODE_BLOCK_17**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -17,7 +17,7 @@ graph.add_node("agent", agent)
1717
</div>
1818
</details>
1919

20-
**CODE_BLOCK_17**
20+
**CODE_BLOCK_18**
2121

2222
<details>
2323
<summary>Answer</summary>
@@ -28,7 +28,7 @@ graph.add_node("tools", tool_node)
2828
</div>
2929
</details>
3030

31-
**CODE_BLOCK_18**
31+
**CODE_BLOCK_19**
3232

3333
<details>
3434
<summary>Answer</summary>
@@ -39,7 +39,7 @@ graph.add_edge(START, "agent")
3939
</div>
4040
</details>
4141

42-
**CODE_BLOCK_19**
42+
**CODE_BLOCK_20**
4343

4444
<details>
4545
<summary>Answer</summary>
@@ -50,7 +50,7 @@ graph.add_edge("tools", "agent")
5050
</div>
5151
</details>
5252

53-
**CODE_BLOCK_20**
53+
**CODE_BLOCK_21**
5454

5555
<details>
5656
<summary>Answer</summary>

docs/50-adding-memory/2-adding-memory.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 11:
66

77
The answers for code blocks in this section are as follows:
88

9-
**CODE_BLOCK_21**
9+
**CODE_BLOCK_22**
1010

1111
<details>
1212
<summary>Answer</summary>
Loading
Loading

0 commit comments

Comments
 (0)