Senator Match
A web tool that matched Philippine voters with 2025 Senate candidates based on the issues they care about.
- Role
- Co-founder & CTO
- Organisation
- Datos Pilipinas
- When
- 2025 Senatorial Elections (one-week build)
- Status
- Completed
Results at a glance
- users in 24 hours
- 1K+
- Reached immediately after launch.
- Source: Google Analytics
- build to launch
- 1week
- Including matching, result generation, and deployment.
- Source: Project timeline
- before the election
- 4days
- Went live four days before the 2025 Philippine election.
- Source: Project record
The problem
Voters needed a fast way to compare senatorial candidates against their priorities, with very little time left before the 2025 Philippine election.
Creating a voter assistance tool for the 2025 Philippine Senatorial Elections with only limited candidate data sources. Had to build, deploy, and reach users within a tight timeline before elections. The challenge was creating a system that could match voters with candidates based on their preferences while maintaining neutrality and accuracy.
What David did
As co-founder and CTO of Datos Pilipinas, David built the questionnaire, the retrieval-assisted matching, result generation and production deployment. He also handled the public response, both positive and negative, on a politically sensitive topic.
- Built web application using NextJS and FastAPI with MongoDB vector search
- Implemented RAG-based approach using OpenAI embeddings and LangChain
- Created interactive questionnaire system that matches voter preferences to candidates
- Developed PDF result generation for social media sharing
- Deployed complete system in 1 week, going live 4 days before elections
Show 3 more contributionsShow fewer
- Achieved 1,000+ users within 24 hours of launch
- Maintained political neutrality while providing personalized recommendations
- Handled both positive and negative feedback on sensitive political topic
How it fits together
Questionnaire
OpenAI embeddings
MongoDB vector search
12-senator list
Shareable PDF
Launched after one week of building
1K+ users in the first 24 hours (Google Analytics)
Key decisions
Matching by meaning, not keywords
Voter answers and candidate information are turned into embeddings (numbers that capture meaning) with OpenAI and LangChain, then compared using MongoDB vector search. This retrieval-based approach is often called RAG.
Neutrality as a requirement
The matching had to stay politically neutral and accurate while still giving each voter a personal result.
A result people can share
Each voter gets a personalised list of 12 senators and a PDF ballot built for sharing on social media.
A stack chosen for a one-week window
Next.js and FastAPI, deployed on AWS Lambda with MongoDB, so the whole system could ship within a week.
Summarised from the published project record and case study.
What happened
The product launched four days before the election and reached more than one thousand users during its first day live.
The numbers and their sources are listed at the top of this page.
Screens and photos


Tools and links
Built with
- Next.js
- FastAPI
- OpenAI
- LangChain
- AWS Lambda
- RAG
- MongoDB
- Vector Search
- Python
- TypeScript
Have a project like Senator Match?
The guided planner will start from this project and suggest related work.
What happens next
You send a short brief
The problem, who it’s for and your timing. A few lines is enough.
I read it myself
Usually within 24 hours, with the most useful next step.
We agree the next move
A Blueprint, a scoped build, or a simpler path if that’s the better answer.