Ask Hoku: An AI Chat Assistant for UH Manoa

AskHoku

During the Hawaii Annual Code Challenge, I contributed by working on the backend of the AI system. I implemented an API service for prompt injections, created a web crawler to scrape over 600 hawaii.edu websites and managed the database for Hoku. From the HACC, I learned that working on a team can be difficult. We all have our own code styles and opinions on what and how things should be implemented. To help reduce these problems, we installed formatters to make code style consistent, assigned each person to have authority over some sections of the project and had daily meetups so that everyone was on the same page. This experience was great and I hope to particiapte in the Hawaii Annual Code Challenge 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.