ahncs commited on
Commit
c0d07a0
·
1 Parent(s): 1057395

test first run

Browse files
Files changed (1) hide show
  1. testenvironment.ipynb +39 -51
testenvironment.ipynb CHANGED
@@ -119,24 +119,24 @@
119
  },
120
  {
121
  "cell_type": "code",
122
- "execution_count": 24,
123
  "metadata": {},
124
  "outputs": [
125
  {
126
  "name": "stdout",
127
  "output_type": "stream",
128
  "text": [
129
- "2024-07-18 14:50:04 - HTTP Request: POST https://api.openai.com/v1/embeddings \"HTTP/1.1 200 OK\"\n"
130
  ]
131
  }
132
  ],
133
  "source": [
134
- "retrieved_documents = retriever.invoke(\"How do I specify advanced alarm settings?\")"
135
  ]
136
  },
137
  {
138
  "cell_type": "code",
139
- "execution_count": 25,
140
  "metadata": {},
141
  "outputs": [
142
  {
@@ -178,6 +178,23 @@
178
  "3.\n",
179
  "Specify settings.\n",
180
  "24 Advanced settings' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 27, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': 'd2315a8070da40b6a7732e0886169c9a', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  "page_content='Specify the time that an adult no breath detected\n",
182
  "condition must be active in an Oridion CO2\n",
183
  "configuration before audio and visual signals occur.\n",
@@ -205,26 +222,18 @@
205
  "a.\n",
206
  "Touch the Settings tab.\n",
207
  "26 Advanced settings' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 29, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': '7a61d18dcf9940d48dd0becdd2473c85', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n",
208
- "page_content='Admin mode), enabling nurse administrators, biomedical engineers, and/or service engineers to\n",
 
 
 
209
  "configure specific features. The Advanced tab also presents read-only information about the\n",
210
  "monitor.\n",
211
- "The password to enter Advanced settings is configurable and can also be set to expire. See the\n",
212
- "\"Password\" topic at the end of this section for more details.\n",
213
  "NOTE You cannot enter Advanced settings if sensors or physiological alarms are\n",
214
  "active or if vital sign measurements are displayed.\n",
215
- "Access the Service tabs\n",
216
- "NOTE You cannot access the Service tabs if sensors or physiological alarms are\n",
217
- "active or if vital sign measurements are displayed.\n",
218
- "1.\n",
219
- "From the Home tab, touch the Settings tab.\n",
220
- "2.\n",
221
- "Touch the Advanced tab.\n",
222
- "3.\n",
223
- "Touch Enter password.\n",
224
- "48 Advanced settings' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 51, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': '8e4aa373a6e547deac9c12c2a02c6b21', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n",
225
- "page_content='•\n",
226
- "In Advanced settings, the left pane on the Network > Radio tab includes only Enable radio\n",
227
- "and Enable radio network alarms options (no Enable dynamic frequency option).\n",
228
  "1.\n",
229
  "Access the Advanced settings.\n",
230
  "a.\n",
@@ -235,33 +244,12 @@
235
  "Touch Enter password.\n",
236
  "d.\n",
237
  "Enter your password and touch OK.\n",
238
- "The General tab appears.\n",
239
  "2.\n",
240
- "Touch the Network tab.\n",
241
  "3.\n",
242
- "Touch the Radio tab.\n",
243
- "4.\n",
244
- "Specify settings.\n",
245
- "Setting\n",
246
- "Action/Description\n",
247
- "Enable radio\n",
248
- "Enable the radio for device communications. When\n",
249
- "disabled, the radio is not available.\n",
250
- "Enable radio network alarms\n",
251
- "Activate radio network alarms when an alarm\n",
252
- "condition occurs. When disabled, radio network\n",
253
- "alarms are not available.\n",
254
- "SSID\n",
255
- "Touch \n",
256
- " and enter the service set identifier\n",
257
- "(SSID). SSIDs that are longer than 16 characters may\n",
258
- "be truncated in the user view. Enter a maximum of\n",
259
- "32 characters.\n",
260
- "Radio band\n",
261
- "Select the radio band.\n",
262
- "Authentication type\n",
263
- "Select an authentication scheme. Then specify any\n",
264
- "additional settings that appear.' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 47, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': '21f61f7963c84a2a8af1f35a1e02452e', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n"
265
  ]
266
  }
267
  ],
@@ -289,20 +277,20 @@
289
  },
290
  {
291
  "cell_type": "code",
292
- "execution_count": 28,
293
  "metadata": {},
294
  "outputs": [
295
  {
296
  "name": "stdout",
297
  "output_type": "stream",
298
  "text": [
299
- "2024-07-18 14:52:25 - HTTP Request: POST https://api.openai.com/v1/embeddings \"HTTP/1.1 200 OK\"\n",
300
- "2024-07-18 14:52:27 - HTTP Request: POST https://api.openai.com/v1/chat/completions \"HTTP/1.1 200 OK\"\n"
301
  ]
302
  }
303
  ],
304
  "source": [
305
- "question = \"How do I specify advanced alarm settings?\"\n",
306
  "\n",
307
  "result = retrieval_augmented_chain.invoke({\"question\" : question})\n"
308
  ]
@@ -319,14 +307,14 @@
319
  },
320
  {
321
  "cell_type": "code",
322
- "execution_count": 29,
323
  "metadata": {},
324
  "outputs": [
325
  {
326
  "name": "stdout",
327
  "output_type": "stream",
328
  "text": [
329
- "content='To specify advanced alarm settings, follow these steps:\\n\\n1. Access the Advanced settings:\\n a. Touch the Settings tab.\\n b. Touch the Advanced tab.\\n c. Touch Enter password.\\n d. Enter your password and touch OK. The General tab appears.\\n2. Touch the Alarms tab.\\n3. Specify settings.' response_metadata={'token_usage': {'completion_tokens': 68, 'prompt_tokens': 2027, 'total_tokens': 2095}, 'model_name': 'gpt-4o-2024-05-13', 'system_fingerprint': 'fp_c4e5b6fa31', 'finish_reason': 'stop', 'logprobs': None} id='run-e022a522-caec-4748-b093-24ca2b030a81-0' usage_metadata={'input_tokens': 2027, 'output_tokens': 68, 'total_tokens': 2095}\n"
330
  ]
331
  }
332
  ],
 
119
  },
120
  {
121
  "cell_type": "code",
122
+ "execution_count": 30,
123
  "metadata": {},
124
  "outputs": [
125
  {
126
  "name": "stdout",
127
  "output_type": "stream",
128
  "text": [
129
+ "2024-07-18 14:56:09 - HTTP Request: POST https://api.openai.com/v1/embeddings \"HTTP/1.1 200 OK\"\n"
130
  ]
131
  }
132
  ],
133
  "source": [
134
+ "retrieved_documents = retriever.invoke(\"How do I specify advanced alarm settings? Give me the page number as well.\")"
135
  ]
136
  },
137
  {
138
  "cell_type": "code",
139
+ "execution_count": 31,
140
  "metadata": {},
141
  "outputs": [
142
  {
 
178
  "3.\n",
179
  "Specify settings.\n",
180
  "24 Advanced settings' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 27, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': 'd2315a8070da40b6a7732e0886169c9a', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n",
181
+ "page_content='Admin mode), enabling nurse administrators, biomedical engineers, and/or service engineers to\n",
182
+ "configure specific features. The Advanced tab also presents read-only information about the\n",
183
+ "monitor.\n",
184
+ "The password to enter Advanced settings is configurable and can also be set to expire. See the\n",
185
+ "\"Password\" topic at the end of this section for more details.\n",
186
+ "NOTE You cannot enter Advanced settings if sensors or physiological alarms are\n",
187
+ "active or if vital sign measurements are displayed.\n",
188
+ "Access the Service tabs\n",
189
+ "NOTE You cannot access the Service tabs if sensors or physiological alarms are\n",
190
+ "active or if vital sign measurements are displayed.\n",
191
+ "1.\n",
192
+ "From the Home tab, touch the Settings tab.\n",
193
+ "2.\n",
194
+ "Touch the Advanced tab.\n",
195
+ "3.\n",
196
+ "Touch Enter password.\n",
197
+ "48 Advanced settings' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 51, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': '8e4aa373a6e547deac9c12c2a02c6b21', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n",
198
  "page_content='Specify the time that an adult no breath detected\n",
199
  "condition must be active in an Oridion CO2\n",
200
  "configuration before audio and visual signals occur.\n",
 
222
  "a.\n",
223
  "Touch the Settings tab.\n",
224
  "26 Advanced settings' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 29, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': '7a61d18dcf9940d48dd0becdd2473c85', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n",
225
+ "page_content='Advanced settings\n",
226
+ " \n",
227
+ "The Advanced tab provides password-protected access to the monitor's Advanced settings (or\n",
228
+ "Admin mode), enabling nurse administrators, biomedical engineers, and/or service engineers to\n",
229
  "configure specific features. The Advanced tab also presents read-only information about the\n",
230
  "monitor.\n",
 
 
231
  "NOTE You cannot enter Advanced settings if sensors or physiological alarms are\n",
232
  "active or if vital sign measurements are displayed.\n",
233
+ "NOTE If you lose your Advanced settings password, review the instructions to\n",
234
+ "reset passwords.\n",
235
+ "General\n",
236
+ "Specify the language\n",
 
 
 
 
 
 
 
 
 
237
  "1.\n",
238
  "Access the Advanced settings.\n",
239
  "a.\n",
 
244
  "Touch Enter password.\n",
245
  "d.\n",
246
  "Enter your password and touch OK.\n",
247
+ "The General tab appears, displaying the Language tab.\n",
248
  "2.\n",
249
+ "Select a language.\n",
250
  "3.\n",
251
+ "Do one of the following:\n",
252
+ "23' metadata={'source': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'file_path': 'https://www.hillrom.com/content/dam/hillrom-aem/us/en/sap-documents/LIT/80026/80026025LITPDF.pdf', 'page': 26, 'total_pages': 349, 'format': 'PDF 1.6', 'title': 'Service manual - Welch Allyn Connex Vital Signs Monitor 6000 Series™', 'author': 'Welch Allyn Inc.', 'subject': '', 'keywords': '', 'creator': 'AH Formatter V5.1 MR2 (5,1,2010,0409) for Windows', 'producer': 'Antenna House PDF Output Library 2.6.0 (Windows)', 'creationDate': \"D:20230214101552-06'00'\", 'modDate': \"D:20230214143156-05'00'\", 'trapped': '', 'encryption': 'Standard V4 R4 128-bit RC4', '_id': '41aaf205fc6d497a904b7d6ee35bd792', '_collection_name': 'WelchAllynConnex6000VSMServiceManual'}\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  ]
254
  }
255
  ],
 
277
  },
278
  {
279
  "cell_type": "code",
280
+ "execution_count": 32,
281
  "metadata": {},
282
  "outputs": [
283
  {
284
  "name": "stdout",
285
  "output_type": "stream",
286
  "text": [
287
+ "2024-07-18 14:56:30 - HTTP Request: POST https://api.openai.com/v1/embeddings \"HTTP/1.1 200 OK\"\n",
288
+ "2024-07-18 14:56:32 - HTTP Request: POST https://api.openai.com/v1/chat/completions \"HTTP/1.1 200 OK\"\n"
289
  ]
290
  }
291
  ],
292
  "source": [
293
+ "question = \"How do I specify advanced alarm settings? Give me the page number as well.\"\n",
294
  "\n",
295
  "result = retrieval_augmented_chain.invoke({\"question\" : question})\n"
296
  ]
 
307
  },
308
  {
309
  "cell_type": "code",
310
+ "execution_count": 33,
311
  "metadata": {},
312
  "outputs": [
313
  {
314
  "name": "stdout",
315
  "output_type": "stream",
316
  "text": [
317
+ "content='To specify advanced alarm settings, follow these steps:\\n\\n1. Access the Advanced settings.\\n a. Touch the Settings tab.\\n b. Touch the Advanced tab.\\n c. Touch Enter password.\\n d. Enter your password and touch OK. The General tab appears.\\n2. Touch the Alarms tab.\\n3. Specify settings.\\n\\nThis information is found on page 27.' response_metadata={'token_usage': {'completion_tokens': 77, 'prompt_tokens': 1975, 'total_tokens': 2052}, 'model_name': 'gpt-4o-2024-05-13', 'system_fingerprint': 'fp_c4e5b6fa31', 'finish_reason': 'stop', 'logprobs': None} id='run-4edacd5f-184d-4934-8416-eeda26cd08d3-0' usage_metadata={'input_tokens': 1975, 'output_tokens': 77, 'total_tokens': 2052}\n"
318
  ]
319
  }
320
  ],