Inspiration
Parent's past experiences with leaking sensitive data in AI prompts.
What it does
Turns sensitive data in prompts to placeholders when sending to AI, then returns back and replaces placeholders with real information.
How we built it
We originally started off separate, with Videsh and Harshit as one team, and Yusuf by himself. The second day, we happened to talk to each other and found out we were making similar projects so we teamed up and merged both our projects. We built it by fine tuning a Glimer model in order to classify sensitive text (Yusuf), and using Regex for even more accuracy (Videsh and Harshit).
Challenges we ran into
Existing models/regex would either be too sensitive and overreact information, or be not sensitive enough and not redact PII from prompts. We fixed this by looking at a dataset of prompts and flagging them all manually, then making a fine-tuned model. Additionally, there was always a lot of friction for the user using the AI so we made it almost frictionless in a way that it feels just like ChatGPT or Claude in the frontend.
Accomplishments that we're proud of
- The fine tuned model. It took us a long time to iterate on it, and we slowly but surely improved the original model to be much more accurate in its judgement. It was trained on Videsh's 5070.
- The UI, it took us a while to get to that level of polish and simplicity.
- Edge cases. For example, when a user asked about a public figure, such as Thomas Jefferson, the reverse proxy would flag Thomas Jefferson as a name and send as PERSON_1. Of course, this is not something sensitive but rather something public. We fixed this with the machine learning model. ## What we learned We learned about machine learning, frontend design, AI privacy, and how to make frictionless designs where the backend can be complex but the frontend feels very intuitive and simple to use. ## What's next for Fragmos
- Generalizing to more than just AI usage. This way, people are saved from accidentally pasting sensitive API keys or passwords etc. into random chats.
- More accurate detection. Right now we're at about 95-100% accuracy in redactions/routing. With more iterations in fine tuning, we can reach near 100% accuracy.
Built With
- next.js
- python