You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Document(page_content='Pet animals come in all shapes and sizes, each suited to different lifestyles and home environments. Dogs and cats are the most common, known for their companionship and unique personalities. Small mammals like hamsters, guinea pigs, and rabbits are often chosen for their low maintenance needs. Birds offer beauty and song, and reptiles like turtles and lizards can make intriguing pets. Even fish, with their calming presence, can be wonderful pets.', metadata={'source': '/content/pets/Different Types of Pet Animals.txt'})"
206
214
]
207
215
},
216
+
"execution_count": 13,
208
217
"metadata": {},
209
-
"execution_count": 13
218
+
"output_type": "execute_result"
210
219
}
220
+
],
221
+
"source": [
222
+
"matching_docs[0]"
211
223
]
212
224
},
213
225
{
@@ -222,8 +234,8 @@
222
234
},
223
235
"outputs": [
224
236
{
225
-
"output_type": "stream",
226
237
"name": "stdout",
238
+
"output_type": "stream",
227
239
"text": [
228
240
"Pet animals come in all shapes and sizes, each suited to different lifestyles and home environments. Dogs and cats are the most common, known for their companionship and unique personalities. Small mammals like hamsters, guinea pigs, and rabbits are often chosen for their low maintenance needs. Birds offer beauty and song, and reptiles like turtles and lizards can make intriguing pets. Even fish, with their calming presence, can be wonderful pets.\n"
229
241
]
@@ -245,7 +257,6 @@
245
257
},
246
258
"outputs": [
247
259
{
248
-
"output_type": "execute_result",
249
260
"data": {
250
261
"text/plain": [
251
262
"[(Document(page_content='Pet animals come in all shapes and sizes, each suited to different lifestyles and home environments. Dogs and cats are the most common, known for their companionship and unique personalities. Small mammals like hamsters, guinea pigs, and rabbits are often chosen for their low maintenance needs. Birds offer beauty and song, and reptiles like turtles and lizards can make intriguing pets. Even fish, with their calming presence, can be wonderful pets.', metadata={'source': '/content/pets/Different Types of Pet Animals.txt'}),\n",
@@ -254,8 +265,9 @@
254
265
" 1.039680004119873)]"
255
266
]
256
267
},
268
+
"execution_count": 14,
257
269
"metadata": {},
258
-
"execution_count": 14
270
+
"output_type": "execute_result"
259
271
}
260
272
],
261
273
"source": [
@@ -264,6 +276,7 @@
264
276
]
265
277
},
266
278
{
279
+
"attachments": {},
267
280
"cell_type": "markdown",
268
281
"metadata": {
269
282
"id": "RarKpNFRxeqE"
@@ -321,15 +334,15 @@
321
334
},
322
335
"outputs": [
323
336
{
324
-
"output_type": "execute_result",
325
337
"data": {
326
338
"text/plain": [
327
339
"(Document(page_content='Pet animals come in all shapes and sizes, each suited to different lifestyles and home environments. Dogs and cats are the most common, known for their companionship and unique personalities. Small mammals like hamsters, guinea pigs, and rabbits are often chosen for their low maintenance needs. Birds offer beauty and song, and reptiles like turtles and lizards can make intriguing pets. Even fish, with their calming presence, can be wonderful pets.', metadata={'source': '/content/pets/Different Types of Pet Animals.txt'}),\n",
328
340
" 0.7325009703636169)"
329
341
]
330
342
},
343
+
"execution_count": 18,
331
344
"metadata": {},
332
-
"execution_count": 18
345
+
"output_type": "execute_result"
333
346
}
334
347
],
335
348
"source": [
@@ -338,6 +351,7 @@
338
351
]
339
352
},
340
353
{
354
+
"attachments": {},
341
355
"cell_type": "markdown",
342
356
"metadata": {
343
357
"id": "O0PLEMthiKlZ"
@@ -372,6 +386,7 @@
372
386
]
373
387
},
374
388
{
389
+
"attachments": {},
375
390
"cell_type": "markdown",
376
391
"metadata": {
377
392
"id": "TQs4TYrehkfH"
@@ -381,6 +396,7 @@
381
396
]
382
397
},
383
398
{
399
+
"attachments": {},
384
400
"cell_type": "markdown",
385
401
"metadata": {
386
402
"id": "lvAgR_85d468"
@@ -417,8 +433,8 @@
417
433
},
418
434
"outputs": [
419
435
{
420
-
"output_type": "stream",
421
436
"name": "stdout",
437
+
"output_type": "stream",
422
438
"text": [
423
439
"\n",
424
440
"\n",
@@ -445,17 +461,17 @@
445
461
]
446
462
},
447
463
{
448
-
"output_type": "execute_result",
449
464
"data": {
450
-
"text/plain": [
451
-
"\"Owning a pet can provide emotional support, reduce stress and anxiety, and can even help their owners lead healthier lives. Pets are known to offer companionship, loyalty, and comfort, and many people consider their pets as part of the family. The bond between pets and their owners can be especially important in times of personal or societal stress, providing comfort and consistency. Overall, owning a pet can have a positive impact on one's mental health and well-being.\""
"\"Owning a pet can provide emotional support, reduce stress and anxiety, and can even help their owners lead healthier lives. Pets are known to offer companionship, loyalty, and comfort, and many people consider their pets as part of the family. The bond between pets and their owners can be especially important in times of personal or societal stress, providing comfort and consistency. Overall, owning a pet can have a positive impact on one's mental health and well-being.\""
"'Owning a pet can provide emotional support and reduce stress. Pets can also offer comfort and consistency in times of personal or societal stress. Additionally, many people consider their pets as part of the family, which can create a strong bond between pets and their owners.'"
"'Owning a pet can provide emotional support and reduce stress. Pets can also offer comfort and consistency in times of personal or societal stress. Additionally, many people consider their pets as part of the family, which can create a strong bond between pets and their owners.'"
0 commit comments