Magento
The Klevu Template JS is included with the Klevu Magento Extension (as of the extension version 2.5.0)
The recommended way to getup and running using Klevus Magento Search Module is installing via composer.
You can find detailed installation steps on the Klevu Knowledgebase article for installing the Klevu Magento Extension
The integration will place a number of Klevu modules into the Magento vendor/klevu directory.
The Klevu Smart Category Merchandising add-on is available to install via composer.
Setup instructions are detailed on the Knowledgebase article for Integrating Smart Category Merchandising on Magento 2
Klevu Smart Recommendations integration options are covered in the Knowledgebase guide: Smart Recommendations Integration Guide for Magento
Navigate to Magento Admin > Stores > Configuration > Klevu Search > Developer Settings where you will find the following setting:

- Change this value to JSv2 as required for the current store.
- Select Klevu JS Theme for Search (and Category pages if applicable).
- Flush the Magento cache.
The Klevu Template JS will now be active for the store.
There are a number of ways to implement the Klevu Template customization overrides depending on your current Magento Theme structure and preferences.
Please see Custom Overrides for the prerequisite details on preparing for Klevu JS overriding.
Never make changes to the Klevu extension files directly as this will break the upgrade path when updates are released.
Klevu engineers have provided an example module intended to facilitate overriding the Template JS components for search query and display. You can find this publicly available on gihub.
Please see our Knolwedgebase article for integration with Magento V1