How to enable predictive search API for Brooklyn theme?

Mike_from_CMC
Tourist
4 0 1

I'm trying to figure out how to implement and enable the Shopify predictive search on a Brooklyn theme. I am trying to follow the instructions found at https://shopify.dev/tutorials/add-predictive-search-to-your-shopify-theme and I'm having a hard time understanding it.

I have some knowledge of basic coding with HTML & CSS but JS and API implementation is out of my depth. I would greatly appreciate it if someone could assist with implementing the predictive search API.