Skip to content

Commit faec378

Browse files
author
ajosh0504
committed
Adjusting code block numbers
1 parent c4b9b17 commit faec378

File tree

7 files changed

+24
-35
lines changed

7 files changed

+24
-35
lines changed

docs/50-prepare-the-data/5-ingest-data.mdx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,13 @@ The answers for code blocks in this section are as follows:
1414
<summary>Answer</summary>
1515
<div>
1616
```python
17-
MongoClient(MONGODB_URI)
17+
mongodb_client[DB_NAME][COLLECTION_NAME]
1818
```
1919
</div>
2020
</details>
2121

2222
**CODE_BLOCK_12**
2323

24-
<details>
25-
<summary>Answer</summary>
26-
<div>
27-
```python
28-
mongo_client[DB_NAME][COLLECTION_NAME]
29-
```
30-
</div>
31-
</details>
32-
33-
**CODE_BLOCK_13**
34-
3524
<details>
3625
<summary>Answer</summary>
3726
<div>
@@ -41,7 +30,7 @@ collection.delete_many({})
4130
</div>
4231
</details>
4332

44-
**CODE_BLOCK_14**
33+
**CODE_BLOCK_13**
4534

4635
<details>
4736
<summary>Answer</summary>

docs/60-perform-semantic-search/3-vector-search.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 8:
66

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

9-
**CODE_BLOCK_15**
9+
**CODE_BLOCK_14**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -17,7 +17,7 @@ get_embedding(user_query)
1717
</div>
1818
</details>
1919

20-
**CODE_BLOCK_16**
20+
**CODE_BLOCK_15**
2121

2222
<details>
2323
<summary>Answer</summary>
@@ -45,7 +45,7 @@ get_embedding(user_query)
4545
</div>
4646
</details>
4747

48-
**CODE_BLOCK_17**
48+
**CODE_BLOCK_16**
4949

5050
<details>
5151
<summary>Answer</summary>

docs/60-perform-semantic-search/4-pre-filtering.mdx

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

1111
The answers for code blocks in this section are as follows:
1212

13-
**CODE_BLOCK_18**
13+
**CODE_BLOCK_17**
1414

1515
<details>
1616
<summary>Answer</summary>
@@ -34,7 +34,7 @@ The answers for code blocks in this section are as follows:
3434
</div>
3535
</details>
3636

37-
**CODE_BLOCK_19**
37+
**CODE_BLOCK_18**
3838

3939
<details>
4040
<summary>Answer</summary>
@@ -63,7 +63,7 @@ The answers for code blocks in this section are as follows:
6363
</div>
6464
</details>
6565

66-
**CODE_BLOCK_20**
66+
**CODE_BLOCK_19**
6767

6868
<details>
6969
<summary>Answer</summary>
@@ -91,7 +91,7 @@ The answers for code blocks in this section are as follows:
9191
</div>
9292
</details>
9393

94-
**CODE_BLOCK_21**
94+
**CODE_BLOCK_20**
9595

9696
<details>
9797
<summary>Answer</summary>

docs/70-build-rag-app/1-build-rag-app.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 9:
66

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

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

1111
<details>
1212
<summary>Answer</summary>
@@ -17,7 +17,7 @@ vector_search(user_query)
1717
</div>
1818
</details>
1919

20-
**CODE_BLOCK_23**
20+
**CODE_BLOCK_22**
2121

2222
<details>
2323
<summary>Answer</summary>
@@ -28,7 +28,7 @@ vector_search(user_query)
2828
</div>
2929
</details>
3030

31-
**CODE_BLOCK_24**
31+
**CODE_BLOCK_23**
3232

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

docs/70-build-rag-app/2-add-reranking.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 **🦹‍
66

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

9-
**CODE_BLOCK_25**
9+
**CODE_BLOCK_24**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -19,7 +19,7 @@ rerank_model.rank(
1919
</div>
2020
</details>
2121

22-
**CODE_BLOCK_26**
22+
**CODE_BLOCK_25**
2323

2424
<details>
2525
<summary>Answer</summary>

docs/70-build-rag-app/3-stream-responses.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 **🦹‍
66

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

9-
**CODE_BLOCK_27**
9+
**CODE_BLOCK_26**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -27,7 +27,7 @@ fw_client.chat.completions.create(
2727
</div>
2828
</details>
2929

30-
**CODE_BLOCK_28**
30+
**CODE_BLOCK_27**
3131

3232
<details>
3333
<summary>Answer</summary>

docs/80-add-memory/2-add-memory.mdx

Lines changed: 8 additions & 8 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 10:
66

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

9-
**CODE_BLOCK_29**
9+
**CODE_BLOCK_28**
1010

1111
<details>
1212
<summary>Answer</summary>
@@ -17,7 +17,7 @@ history_collection.create_index("session_id")
1717
</div>
1818
</details>
1919

20-
**CODE_BLOCK_30**
20+
**CODE_BLOCK_29**
2121

2222
<details>
2323
<summary>Answer</summary>
@@ -33,7 +33,7 @@ history_collection.create_index("session_id")
3333
</div>
3434
</details>
3535

36-
**CODE_BLOCK_31**
36+
**CODE_BLOCK_30**
3737

3838
<details>
3939
<summary>Answer</summary>
@@ -44,7 +44,7 @@ history_collection.insert_one(message)
4444
</div>
4545
</details>
4646

47-
**CODE_BLOCK_32**
47+
**CODE_BLOCK_31**
4848

4949
<details>
5050
<summary>Answer</summary>
@@ -55,7 +55,7 @@ history_collection.find({"session_id": session_id}).sort("timestamp", 1)
5555
</div>
5656
</details>
5757

58-
**CODE_BLOCK_33**
58+
**CODE_BLOCK_32**
5959

6060
<details>
6161
<summary>Answer</summary>
@@ -66,7 +66,7 @@ history_collection.find({"session_id": session_id}).sort("timestamp", 1)
6666
</div>
6767
</details>
6868

69-
**CODE_BLOCK_34**
69+
**CODE_BLOCK_33**
7070

7171
<details>
7272
<summary>Answer</summary>
@@ -78,7 +78,7 @@ messages.extend(message_history)
7878
</div>
7979
</details>
8080

81-
**CODE_BLOCK_35**
81+
**CODE_BLOCK_34**
8282

8383
<details>
8484
<summary>Answer</summary>
@@ -90,7 +90,7 @@ messages.append(user_message)
9090
</div>
9191
</details>
9292

93-
**CODE_BLOCK_36**
93+
**CODE_BLOCK_35**
9494

9595
<details>
9696
<summary>Answer</summary>

0 commit comments

Comments
 (0)