
Solo project · Retrieval-augmented AI
PrivacyPH
An assistant for the Philippine Data Privacy Act, its implementing rules, and 20 active NPC issuances. It cites individual sections and declines questions beyond its sources.
- 93.9% retrieval accuracy across 39 questions
- 78/78 citations verified
- 100% of out-of-scope test questions declined
View case study
Problem
Small businesses needed answers traceable to the exact provisions of the Data Privacy Act and a clear response when available sources didn’t cover a question.
Approach
- Indexed 22 active documents as 468 sections. Parsed 20 by section marker and two by heading.
- Excluded three superseded issuances from retrieval while retaining their status for queries about whether rules were in force.
- Benchmarked hybrid search and dropped it after accuracy fell from 93.9% to 87.9%.
- Implemented a Gemini-to-Groq fallback, with source text available if both models fail.
- Directed the design, ran the benchmarks, and verified the results while using an AI coding assistant.
Results
All 78 benchmark citations resolved to real sections in the source PDFs. A script with a negative control verified the citations. The project was completed in November 2026 with 47 unit tests.




