Skip to content

Commit 984c771

Browse files
author
ajosh0504
committed
Updating codeblocks
1 parent 3d3e6d1 commit 984c771

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

docs/40-perform-vector-search/3-create-vector-index.mdx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,19 @@
22

33
To retrieve documents from MongoDB using vector search, you must configure a vector search index on the collection into which you ingested your data. In this lab, you will programmatically create vector search indexes using MongoDB's Python driver.
44

5-
Run the cells under the **Step 5: Create a vector search index** section in the notebook to create a vector search index on the `books` collection.
5+
Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **Step 5: Create a vector search index** section in the notebook to create a vector search index on the `books` collection.
6+
7+
The answers for code blocks in this section are as follows:
8+
9+
**CODE_BLOCK_6**
10+
11+
<details>
12+
<summary>Answer</summary>
13+
<div>
14+
15+
```python
16+
create_index(collection, ATLAS_VECTOR_SEARCH_INDEX_NAME, model)
17+
```
18+
19+
</div>
20+
</details>

docs/40-perform-vector-search/4-run-vector-search-queries.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 6:
66

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

9-
**CODE_BLOCK_6**
9+
**CODE_BLOCK_7**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -19,7 +19,7 @@ get_embedding(user_query, mode)
1919
</div>
2020
</details>
2121

22-
**CODE_BLOCK_7**
22+
**CODE_BLOCK_8**
2323

2424
<details>
2525
<summary>Answer</summary>
@@ -44,7 +44,7 @@ get_embedding(user_query, mode)
4444
</div>
4545
</details>
4646

47-
**CODE_BLOCK_8**
47+
**CODE_BLOCK_9**
4848

4949
<details>
5050
<summary>Answer</summary>

docs/50-optimizing-vector-search/2-pre-filtering.mdx

Lines changed: 4 additions & 4 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_9**
9+
**CODE_BLOCK_10**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -33,7 +33,7 @@ The answers for code blocks in this section are as follows:
3333
</div>
3434
</details>
3535

36-
**CODE_BLOCK_10**
36+
**CODE_BLOCK_11**
3737

3838
<details>
3939
<summary>Answer</summary>
@@ -46,7 +46,7 @@ The answers for code blocks in this section are as follows:
4646
</div>
4747
</details>
4848

49-
**CODE_BLOCK_11**
49+
**CODE_BLOCK_12**
5050

5151
<details>
5252
<summary>Answer</summary>
@@ -74,7 +74,7 @@ The answers for code blocks in this section are as follows:
7474
</div>
7575
</details>
7676

77-
**CODE_BLOCK_12**
77+
**CODE_BLOCK_13**
7878

7979
<details>
8080
<summary>Answer</summary>

docs/50-optimizing-vector-search/3-similarity-functions.mdx

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

99
The answers for code blocks in this section are as follows:
1010

11-
**CODE_BLOCK_13**
11+
**CODE_BLOCK_14**
1212

1313
<details>
1414
<summary>Answer</summary>

docs/50-optimizing-vector-search/4-vector-quantization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Fill in any `<CODE_BLOCK_N>` placeholders and run the cells under the **🦹‍
88

99
The answers for code blocks in this section are as follows:
1010

11-
**CODE_BLOCK_14**
11+
**CODE_BLOCK_15**
1212

1313
<details>
1414
<summary>Answer</summary>

0 commit comments

Comments
 (0)