"c:\\Users\\timmy_3aupohg\\anaconda3\\envs\\smog_env\\Lib\\site-packages\\sentence_transformers\\cross_encoder\\CrossEncoder.py:11: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)\n",
" from tqdm.autonotebook import tqdm, trange\n"
]
}
],
"source": [
"# Initialize embedding\n",
"model_name = \"BAAI/bge-small-en\"\n",
"model_kwargs = {\"device\": \"cuda\"} #can also be cpu\n",
"[Document(metadata={'source': 'data/How to change engine oil and filter on TOYOTA Corolla.txt'}, page_content=\"How to change engine oil\\nand filter on TOYOTA\\nCorolla Verso (AR10) –\\nreplacement guide\\nSIMILAR VIDEO TUTORIAL\\nThis video shows the replacement procedure of a similar car part on another vehicle\\nCLUB.AUTODOC.CO.UK 1–10\\nThis replacement procedure can be used for:\\nTOYOTA Corolla Verso (AR10) 1.6 (ZNR10_), TOYOTA Corolla Verso (AR10) 1.8\\n(ZNR11_), TOYOTA Corolla Verso (AR10) 1.5, TOYOTA Corolla Verso (AR10) 1.8\\nThe steps may slightly vary depending on the car design.\\nImportant!\\nThis tutorial was created based on the replacement procedure for a similar car part\\non: TOYOTA Aygo (AB10) 1\\nBuy tools\\nCLUB.AUTODOC.CO.UK 2–10\\nREPLACEMENT: ENGINE OIL AND FILTER – TOYOTA\\nCOROLLA VERSO (AR10). LIST OF THE TOOLS YOU'LL\\nNEED:\\nAll-purpose cleaning spray\\nOil filter cup socket 76/14-F\\nImpact socket №15\\nRatchet wrench\\nTorque wrench\\nOil drain pan\\nFunnel\\nFender cover\\nCARRY OUT REPLACEMENT IN THE FOLLOWING ORDER:\\n1\\nOpen the hood.\\n2\\nUse a fender protection cover to prevent damaging paintwork and plastic parts of the car.\\n3\\nUnscrew the oil filler plug.\\n4\\nLift the car using a jack or place it over an inspection pit.\\nCLUB.AUTODOC.CO.UK 3–10\\nReplace the oil filter every time when changing motor oil.\\nPlease note: all work on the car – TOYOTA Corolla Verso (AR10) – should be\\ndone with the engine switched off.\\nWear gloves to prevent contact with hot liquid.\\nThe vehicle must be on even keel, and if it is at an angle, the drain plug must be\\nat the lowest point.\\nAll work should be done with the engine stopped.\\nAUTODOC recommends:\\nReplacement: engine oil and filter – TOYOTA Corolla Verso (AR10). Tip from\\nAUTODOC experts:\\n5\\nPut a waste oil container with at least 4 l capacity under the drainage hole.\\n6\\nUnscrew the drain plug. Use a drive socket #15. Use a ratchet wrench.\\n7\\nDrain the used oil.\\nCLUB.AUTODOC.CO.UK 4–10\\nCaution! The oil may be hot.\\nWait until the oil has completely drained from the drainage hole.\\nReplacement: engine oil and filter – TOYOTA Corolla Verso (AR10). Tip from\\nAUTODOC:\\n8 Move the container under the oil filter.\\n9\\nUnscrew the oil filter. Use the 76/14-F socket.\\n10\\nPrepare a container for the old oil filter. Put the old oil filter in the container.\\n11\\nClean the oil filter seat.\\nCLUB.AUTODOC.CO.UK 5–10\\nMove up the container. The oil starts to drain out of the drainage hole\\nimmediately after you have removed the oil filter.\\nReplacement: engine oil and filter – TOYOTA Corolla Verso (AR10). Tip:\\n12\\nLubricate the rubber seal of the new filter with a little amount of fresh oil.\\n13\\nScrew the new filter into its place. Use the 76/14-F socket. Use a torque wrench. Tighten it to 23 nm torque.\\n14\\nClean the area of the oil pan drainage hole.\\n15\\nScrew in the new drainage plug and tighten it. Use a drive socket #15. Use a torque wrench. Tighten it to 27 nm\\ntorque.\\nCLUB.AUTODOC.CO.UK 6–10\\n16\\nClean the area of the oil pan drainage hole. Use all-purpose cleaning spray.\\n17\\nLower the car.\\n18\\nRemove the oil filler cap. Insert the funnel.\\n19\\nPour oil into the engine through the filler. Required amount of oil: 3.6 L.\\nCLUB.AUTODOC.CO.UK 7–10\\nUse the oil recommended by the manufacturer.\\nReplacement: engine oil and filter – TOYOTA Corolla Verso (AR10). Professionals recommend:\\n20\\nCheck the oil level using the dipstick. Top up oil if necessary.\\n21\\nTighten the oil filler cap.\\n22\\nRun the engine for a few minutes. After the oil pressure warning light goes out, stop the engine.\\n23\\nCheck the oil level 5 minutes after the stop of the engine operation using a dipstick and add oil if necessary.\\nCLUB.AUTODOC.CO.UK 8–10\\nThe oil level should be between the Min and Max marks.\\nPlease note!\\n24\\nRemove the fender protection cover.\\n25\\nClose the hood.\\nVIEW MORE TUTORIALS\\nCLUB.AUTODOC.CO.UK 9–10\\nThe oil level should b
"[Document(metadata={'source': 'data/How to change rear windshield wipers on TOYOTA Corolla.docx'}, page_content=\"How to change rear\\n\\nwindshield wipers on\\n\\nTOYOTA Corolla VI\\n\\nLiftback (E90)\\n\\n –\\n\\nreplacement guide\\n\\nHow to change rear\\n\\nwindshield wipers on\\n\\nTOYOTA Corolla VI\\n\\nLiftback (E90)\\n\\n –\\n\\nreplacement guide\\n\\n\\n\\n\\nSIMILAR VIDEO TUTORIAL\\n\\nThis video shows the replacement procedure of a similar car part on another vehicle\\n\\nThis replacement procedure can be used for:\\n\\nTOYOTA Corolla VI Liftback (E90) 1.6, TOYOTA Corolla VI Liftback (E90) 1.8 D,\\n\\nTOYOTA Corolla VI Liftback (E90) 1.3 i, TOYOTA Corolla VI Liftback (E90) 1.6 GTI\\n\\n(\\n\\nAE92_), TOYOTA Corolla VI Liftback (E90) 1.6 4WD, TOYOTA Corolla VI Liftback\\n\\n(\\n\\nE90) 1.3, TOYOTA Corolla VI Liftback (E90) 1.4, TOYOTA Corolla VI Liftback \\n\\n(E90) 1.6\\n\\ni, TOYOTA Corolla VI Liftback (E90) 1.6 EFi\\n\\nThe steps may slightly vary depending on the car design.\\n\\nImportant!\\n\\nSIMILAR VIDEO TUTORIAL\\n\\nThis video shows the replacement procedure of a similar car part on another vehicle\\n\\nThis replacement procedure can be used for:\\n\\nTOYOTA Corolla VI Liftback (E90) 1.6, TOYOTA Corolla VI Liftback (E90) 1.8 D,\\n\\nTOYOTA Corolla VI Liftback (E90) 1.3 i, TOYOTA Corolla VI Liftback (E90) 1.6 GTI\\n\\n(\\n\\nAE92_), TOYOTA Corolla VI Liftback (E90) 1.6 4WD, TOYOTA Corolla VI Liftback\\n\\n(\\n\\nE90) 1.3, TOYOTA Corolla VI Liftback (E90) 1.4, TOYOTA Corolla VI Liftback \\n\\n(E90) 1.6\\n\\ni, TOYOTA Corolla VI Liftback (E90) 1.6 EFi\\n\\nThe steps may slightly vary depending on the car design.\\n\\nImportant!\\n\\nThis tutorial was created based on the replacement procedure for a similar car part on: TOYOTA Land Cruiser Prado 120 (J120) 3.0 D-4D\\n\\n\\n\\nBuy tool\\n\\ns\\n\\nREPLACEMENT: WINDSHIELD WIPERS – TOYOTA\\n\\nCOROLLA VI LIFTBACK (E90). TOOLS YOU MIGHT NEED:\\n\\nFlat Screwdriver\\n\\nBuy tool\\n\\ns\\n\\nREPLACEMENT: WINDSHIELD WIPERS – TOYOTA\\n\\nCOROLLA VI LIFTBACK (E90). TOOLS YOU MIGHT NEED:\\n\\nFlat Screwdriver\\n\\n\\n\\nPlease note: all work on the car – TOYOTA Corolla VI Liftback (E90) – should be\\n\\ndone with the engine switched off.\\n\\nAUTODOC recommends:\\n\\nPlease note: all work on the car – TOYOTA Corolla VI Liftback (E90) – should be\\n\\ndone with the engine switched off.\\n\\nAUTODOC recommends:\\n\\nCARRY OUT REPLACEMENT IN THE FOLLOWING ORDER:\\n\\n\\n\\n1\\n\\nPrepare the new windscreen wipers.\\n\\n2\\n\\nPull the wiper arm away from the glass surface until it stops.\\n\\n3\\n\\nPress the clip. Use a flat screwdriver.\\n\\n1\\n\\nPrepare the new windscreen wipers.\\n\\n2\\n\\nPull the wiper arm away from the glass surface until it stops.\\n\\n3\\n\\nPress the clip. Use a flat screwdriver.\\n\\n\\n\\n4\\n\\nRemove the blade from the wiper arm.\\n\\n5\\n\\nInstall the new wiper blade and carefully press the wiper arm down to the glass.\\n\\nWhen replacing the wiper blade, take caution to prevent the spring-loaded wiper\\n\\narm from hitting the glass.\\n\\nDon't touch the wiper blade at the working rubber edge to prevent damage to the\\n\\ngraphite coating. \\n\\nEnsure that the blade rubber strip fits tightly to the glass along the entire length.\\n\\nReplacement: windshield wipers – TOYOTA Corolla VI Liftback (E90). Tip from\\n\\nAUTODOC experts:\\n\\nReplacement: windshield wipers – TOYOTA Corolla VI Liftback (E90).\\n\\nAUTODOC recommends:\\n\\n4\\n\\nRemove the blade from the wiper arm.\\n\\n5\\n\\nInstall the new wiper blade and carefully press the wiper arm down to the glass.\\n\\nWhen replacing the wiper blade, take caution to prevent the spring-loaded wiper\\n\\narm from hitting the glass.\\n\\nDon't touch the wiper blade at the working rubber edge to prevent damage to the\\n\\ngraphite coating. \\n\\nEnsure that the blade rubber strip fits tightly to the glass along the entire length.\\n\\nReplacement: windshield wipers – TOYOTA Corolla VI Liftback (E90). Tip from\\n\\nAUTODOC experts:\\n\\nReplacement: winds
]
}
],
"source": [
"# example with loading a docx document\n",
"document_path_2 = \"data/How to change rear windshield wipers on TOYOTA Corolla.docx\"\n",
"c:\\Users\\timmy_3aupohg\\anaconda3\\envs\\smog_env\\Lib\\site-packages\\transformers\\models\\bert\\modeling_bert.py:439: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at C:\\cb\\pytorch_1000000000000\\work\\aten\\src\\ATen\\native\\transformers\\cuda\\sdp_utils.cpp:555.)\n",
"Indicates that the system is not able to recognize white (yellow) \n",
"lines or a course\n",
"* or is temporar-\n",
"ily canceled.\n",
"*: Boundary between asphalt and \n",
"the side of the road, such as \n",
"grass, soil, or a curb\n",
"Follow-up cruising display\n",
"Displayed when the multi-informa-tion display is switched to the driv-ing support system information screen.\n",
"Indicates that steering assist of the \n",
"lane centering function is operating by monitoring the position of a pre-ceding vehicle.\n",
"When the follow-up cruising display \n",
"is displayed, if the preceding vehi-cle moves, your vehicle may move in the same way. A lways pay care-\n",
"ful attention to your surroundings and operate the steering wheel as necessary to correct the path of the vehicle and ensure safety.\n",
"■Operation conditions of each \n",
"function\n",
"●Lane departure alert function\n",
"This function oper ates when all of \n",
"the following cond itions are met.\n",
"• LTA is turned on.• Vehicle speed is approximately 32 \n",
"mph (50 km/h) or more.*1\n",
"• System recognizes white (yellow) \n",
"lane lines or a course*2. (When a \n",
"white [yellow] line or course*2 is \n",
"recognized on only one side, the system will operate only for the \n",
"recognized side.)\n",
"• Width of traffic lane is approxi-\n",
"mately 9.8 ft. (3 m) or more.\n",
"• Turn signal lever is not operated.\n",
"(Vehicles with a Blind Spot Moni-\n",
"tor: Except when another vehicle \n",
"is in the lane on the side where the turn signal was operated)\n",
"• Vehicle is not being driven around \n",
"a sharp curve.\n",
"• No system malfunctions are \n",
"detected. ( P.204)\n",
"*1:The function oper ates even if the \n",
"vehicle speed is less than \n",
"approximately 32 mph (50 km/h) when the lane centering function is operating.\n",
"*2:Boundary between asphalt and \n",
"the side of the road, such as grass, soil, or a curb\n",
"●Steering assist function\n",
"This function operates when all of the following conditions are met in addition to the operation conditions for the lane departure alert function.\n",