Skip to content

Commit f0f7588

Browse files
author
ajosh0504
committed
Pinning versions
1 parent 3f63b7a commit f0f7588

File tree

1 file changed

+31
-39
lines changed

1 file changed

+31
-39
lines changed

notebooks/advanced_techniques/contextual_chunk_embedding.ipynb

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"- **datasets**: Python library to get access to datasets available on Hugging Face Hub\n",
3131
"- **pdfplumber**: Python library to parse and analyze PDFs\n",
3232
"- **langchain-text-splitters**: Text chunking utilities in LangChain\n",
33-
"- **tiktoken**: Token counting and encoding library for GPT models\n",
33+
"- **tiktoken**: Token counting and encoding library\n",
3434
"- **voyageai**: Python library to interact with Voyage AI's APIs"
3535
]
3636
},
@@ -41,7 +41,7 @@
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
44-
"!pip install -qU datasets pdfplumber langchain-text-splitters voyageai"
44+
"!pip install -qU datasets==4.3.0 pdfplumber==0.11.7 langchain-text-splitters==0.3.11 voyageai==0.3.5 tiktoken==0.12.0"
4545
]
4646
},
4747
{
@@ -56,7 +56,7 @@
5656
},
5757
{
5858
"cell_type": "code",
59-
"execution_count": 8,
59+
"execution_count": 29,
6060
"id": "d413f794-23b8-4b1b-98ae-2443a53457df",
6161
"metadata": {},
6262
"outputs": [],
@@ -69,18 +69,10 @@
6969
},
7070
{
7171
"cell_type": "code",
72-
"execution_count": 9,
72+
"execution_count": 30,
7373
"id": "bf6ff564-053c-4d2b-8a38-6a0b1a17a85e",
7474
"metadata": {},
75-
"outputs": [
76-
{
77-
"name": "stdin",
78-
"output_type": "stream",
79-
"text": [
80-
"Enter your VoyageAI API key: ········\n"
81-
]
82-
}
83-
],
75+
"outputs": [],
8476
"source": [
8577
"# Set Voyage AI API Key as an environment variable\n",
8678
"os.environ[\"VOYAGE_API_KEY\"] = getpass.getpass(\"Enter your VoyageAI API key:\")\n",
@@ -98,7 +90,7 @@
9890
},
9991
{
10092
"cell_type": "code",
101-
"execution_count": 39,
93+
"execution_count": 31,
10294
"id": "3ec450d7-6d6f-42ec-ab7b-c007fd0c1c68",
10395
"metadata": {},
10496
"outputs": [],
@@ -111,7 +103,7 @@
111103
},
112104
{
113105
"cell_type": "code",
114-
"execution_count": 11,
106+
"execution_count": 32,
115107
"id": "2bdac794-1454-42d0-8c4e-fafce420042d",
116108
"metadata": {},
117109
"outputs": [],
@@ -122,7 +114,7 @@
122114
},
123115
{
124116
"cell_type": "code",
125-
"execution_count": 12,
117+
"execution_count": 33,
126118
"id": "f95f5434-9acf-491f-bca5-02b61fde9bd2",
127119
"metadata": {},
128120
"outputs": [
@@ -132,7 +124,7 @@
132124
"40"
133125
]
134126
},
135-
"execution_count": 12,
127+
"execution_count": 33,
136128
"metadata": {},
137129
"output_type": "execute_result"
138130
}
@@ -144,7 +136,7 @@
144136
},
145137
{
146138
"cell_type": "code",
147-
"execution_count": 13,
139+
"execution_count": 34,
148140
"id": "be8f15a9-573d-48d5-86a9-6c876d3a4aa1",
149141
"metadata": {},
150142
"outputs": [
@@ -154,7 +146,7 @@
154146
"'Exhibit 10.2\\nExecution Version\\nINTELLECTUAL PROPERTY AGREEMENT\\nThis INTELLECTUAL PROPERTY AGREEMENT (this “Agreement”), dated as of December 31, 2018 (the “Effective Date”) is entered into by and\\nbetween Armstrong Flooring, Inc., a Delaware corporation (“Seller”) and AFI Licensing LLC, a Delaware limited liability company (“Licensing” and\\ntogether with Seller, “Arizona”) and AHF Holding, Inc. (formerly known as Tarzan HoldCo, Inc.), a Delaware corporation (“Buyer”) and Armstrong\\nHardwood Flooring Company, a Tennessee corporation (the “Company” and together with Buyer the “Buyer Entities”) (each of Arizona on the one hand\\nand the Buyer Entities on the other hand, a “Party” and collectively, the “Parties”).\\nWHEREAS, Seller and Buyer have entered into that certain Stock Purchase Agreement, dated November 14, 2018 (the “Stock Purchase\\nAgreement”); WHEREAS, pursuant to the Stock Purchase Agreement, Seller has agreed to sell and transfer, and Buyer has agreed to purchase and\\nacquire, all of Seller’s right, title and interest in and to Armstrong Wood Products, Inc., a Delaware corporation (“AWP”) and its Subsidiaries, the\\nCompany and HomerWood Hardwood Flooring Company, a Delaware corporation (“HHFC,” and together with the Company, the “Company\\nSubsidiaries” and together with AWP, the “Company Entities” and each a “Company Entity”) by way of a purchase by Buyer and sale by Seller of the\\nShares, all upon the terms and condition set forth therein;\\nWHEREAS, Arizona owns certain Copyrights, Know-How, Patents and Trademarks which may be used in the Company Field, and in connection\\nwith the transactions contemplated by the Stock Purchase Agreement the Company desires to acquire all of Arizona’s right, title and interest in and to\\nsuch Intellectual Property used exclusively in the Company Field, and obtain a license from Arizona to use other such Intellectual Property on the terms\\nand subject to the conditions set forth herein;\\nWHEREAS, Seller is signatory to the Trademark License Agreement pursuant to which Seller obtains a license to the Arizona Licensed\\nTrademarks;\\nWHEREAS, the Company desires to obtain a sublicense to use the Arizona Licensed Trademarks in the Company Field;\\nWHEREAS, Arizona has obtained consent from all counterparties to the Trademark License Agreement to grant to the Company the sublicenses\\nto the Arizona Licensed Trademarks included in this Agreement; and\\nWHEREAS, the Company Entities own certain Copyrights and Know-How which may be used in the Arizona Field, and in connection with the\\ntransactions contemplated by the Stock Purchase Agreement, Arizona desires to obtain a license from the Company Entities to use such Intellectual\\nProperty on the terms and subject to the conditions set forth herein.\\nNOW, THEREFORE, in consideration of the foregoing and the mutual agreements, provisions and covenants contained in this Agreement, and\\nfor other good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, the Parties hereby agree as follows:\\nSource: ARMSTRONG FLOORING, INC., 8-K, 1/7/2019'"
155147
]
156148
},
157-
"execution_count": 13,
149+
"execution_count": 34,
158150
"metadata": {},
159151
"output_type": "execute_result"
160152
}
@@ -174,7 +166,7 @@
174166
},
175167
{
176168
"cell_type": "code",
177-
"execution_count": 14,
169+
"execution_count": 35,
178170
"id": "b45e326c-da92-4f2e-9cc7-dd32bd72c2e4",
179171
"metadata": {},
180172
"outputs": [],
@@ -184,7 +176,7 @@
184176
},
185177
{
186178
"cell_type": "code",
187-
"execution_count": 15,
179+
"execution_count": 36,
188180
"id": "e8e3e365-7393-47bc-90e2-4df6fad34c05",
189181
"metadata": {},
190182
"outputs": [],
@@ -197,7 +189,7 @@
197189
},
198190
{
199191
"cell_type": "code",
200-
"execution_count": 16,
192+
"execution_count": 37,
201193
"id": "ba9771e9-c8ee-4cb8-a6fc-d3a14292e0b3",
202194
"metadata": {},
203195
"outputs": [],
@@ -220,7 +212,7 @@
220212
},
221213
{
222214
"cell_type": "code",
223-
"execution_count": 17,
215+
"execution_count": 38,
224216
"id": "c35afc6b-745e-4a2e-ba8a-73f328858bef",
225217
"metadata": {},
226218
"outputs": [
@@ -232,7 +224,7 @@
232224
" 'doc_id': 0}"
233225
]
234226
},
235-
"execution_count": 17,
227+
"execution_count": 38,
236228
"metadata": {},
237229
"output_type": "execute_result"
238230
}
@@ -251,7 +243,7 @@
251243
},
252244
{
253245
"cell_type": "code",
254-
"execution_count": 15,
246+
"execution_count": 39,
255247
"id": "76c96323-c60c-42a0-883c-e3e9e0746949",
256248
"metadata": {},
257249
"outputs": [],
@@ -261,7 +253,7 @@
261253
},
262254
{
263255
"cell_type": "code",
264-
"execution_count": 16,
256+
"execution_count": 40,
265257
"id": "47073960-ce27-4331-9447-9c69c46e8bb9",
266258
"metadata": {},
267259
"outputs": [],
@@ -283,7 +275,7 @@
283275
},
284276
{
285277
"cell_type": "code",
286-
"execution_count": 17,
278+
"execution_count": 41,
287279
"id": "0ce67a4e-8474-4610-a4af-b43b4a397e05",
288280
"metadata": {},
289281
"outputs": [],
@@ -317,7 +309,7 @@
317309
},
318310
{
319311
"cell_type": "code",
320-
"execution_count": 18,
312+
"execution_count": 42,
321313
"id": "c3e29bf9-4170-4109-8c0b-c5c4d38523e7",
322314
"metadata": {},
323315
"outputs": [],
@@ -327,7 +319,7 @@
327319
},
328320
{
329321
"cell_type": "code",
330-
"execution_count": 19,
322+
"execution_count": 43,
331323
"id": "a2914983-bafb-404a-a005-c70b9eeba327",
332324
"metadata": {},
333325
"outputs": [],
@@ -413,7 +405,7 @@
413405
},
414406
{
415407
"cell_type": "code",
416-
"execution_count": 20,
408+
"execution_count": 44,
417409
"id": "766918f0-ffa3-4068-8a33-03e28f586924",
418410
"metadata": {},
419411
"outputs": [],
@@ -451,7 +443,7 @@
451443
},
452444
{
453445
"cell_type": "code",
454-
"execution_count": 21,
446+
"execution_count": 45,
455447
"id": "5e0bcbdb-53cd-495e-b39a-4c08529d6ba4",
456448
"metadata": {},
457449
"outputs": [],
@@ -461,7 +453,7 @@
461453
},
462454
{
463455
"cell_type": "code",
464-
"execution_count": 22,
456+
"execution_count": 46,
465457
"id": "4222a5e2-45cd-4f33-9bdc-cf8b6a5330c4",
466458
"metadata": {},
467459
"outputs": [
@@ -512,7 +504,7 @@
512504
},
513505
{
514506
"cell_type": "code",
515-
"execution_count": 23,
507+
"execution_count": 47,
516508
"id": "f1b618d5-8fe0-4eb0-ac54-465ced3d2000",
517509
"metadata": {},
518510
"outputs": [],
@@ -522,7 +514,7 @@
522514
},
523515
{
524516
"cell_type": "code",
525-
"execution_count": 24,
517+
"execution_count": 48,
526518
"id": "d0c2ea78-ce96-4743-9b2a-2bc3ad054a3e",
527519
"metadata": {},
528520
"outputs": [],
@@ -537,7 +529,7 @@
537529
},
538530
{
539531
"cell_type": "code",
540-
"execution_count": 25,
532+
"execution_count": 49,
541533
"id": "a3117edc-ec2b-481c-a8d7-479080d11118",
542534
"metadata": {},
543535
"outputs": [],
@@ -547,7 +539,7 @@
547539
},
548540
{
549541
"cell_type": "code",
550-
"execution_count": 26,
542+
"execution_count": 50,
551543
"id": "95d9c26f-be8c-4962-a437-8debf0cce199",
552544
"metadata": {},
553545
"outputs": [
@@ -592,9 +584,9 @@
592584
],
593585
"metadata": {
594586
"kernelspec": {
595-
"display_name": "conda_python3",
587+
"display_name": ".venv",
596588
"language": "python",
597-
"name": "conda_python3"
589+
"name": "python3"
598590
},
599591
"language_info": {
600592
"codemirror_mode": {
@@ -606,7 +598,7 @@
606598
"name": "python",
607599
"nbconvert_exporter": "python",
608600
"pygments_lexer": "ipython3",
609-
"version": "3.10.18"
601+
"version": "3.9.6"
610602
},
611603
"widgets": {
612604
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)