VisitingHawaiiBot

r/VisitingHawaii gets the same questions asked constantly, and the answers are usually already sitting in a thread from six months ago. VisitingHawaiiBot watches for new posts and replies with links to the older discussions that actually cover the same ground.

Rather than matching on keywords, it runs every post through OpenAI's embeddings API and searches for nearest neighbours in the resulting vector space, so it can tell that "where should we stay on the north shore" and "Haleiwa vs Turtle Bay" are the same question. Vectors are cached to a CSV dataset, so only genuinely new posts cost an API call.

Python, OpenAI embeddings, Reddit API

Source & setup instructions available on Github.