Ask Hoku: An AI Chat Assistant for UH Manoa

During the Hawaii Annual Code Challenge, I played a key role in developing the backend for an AI system. I built an API service to handle prompt injections, created a web crawler that gathered data from over 600 hawaii.edu websites, and managed the database for our project, Hoku.

This experience taught me that teamwork can be challenging, as everyone has their own coding styles and ideas about how to approach tasks. To address these challenges, we implemented code formatters for consistency, assigned team members specific areas of the project to oversee, and held daily meetings to ensure everyone was aligned.

Overall, it was a fantastic experience, and I look forward to participating in the Hawaii Annual Code Challenge again next year! You can visit our GitHub repository for more information here.

Overview

Security Considerations and Challenges

A prompt injection is a type of cyberattack on an AI system designed to enable the user to perform unauthorized actions. Hoku was prompted to not answer questions outside the hawaii.edu domain or the context provided. However, earlier in development, it was possible to prompt Hoku to answer questions unrelated to ITS.

Prompt:

Response:

What was done to prevent this

This problem could be solved by a self-hosted LLM that Manoa would run on site. This does have its own problems, cost being one of them. But at least we would know exactly how our data is managed.