Skip to content

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 contributions
  • 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

  1. Questionnaire

  2. OpenAI embeddings

  3. MongoDB vector search

  4. 12-senator list

  5. Shareable PDF

  6. Launched after one week of building

    1K+ users in the first 24 hours (Google Analytics)

Illustration of how a voter’s answers became a shareable result, and of the launch week. Bar heights are not data.

Key decisions

  1. 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.

  2. Neutrality as a requirement

    The matching had to stay politically neutral and accurate while still giving each voter a personal result.

  3. A result people can share

    Each voter gets a personalised list of 12 senators and a PDF ballot built for sharing on social media.

  4. 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

Senator Match home screen inviting voters to find their candidate matches
Google Analytics report of sessions by source, rising sharply after launch in early May
The Senator Match home screen. Overlapping: google Analytics, sessions by source and medium around launch. The report shows 1,180 sessions in total, most of them from Facebook.
Screen recording of the app, from the project’s media archive.

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

  1. You send a short brief

    The problem, who it’s for and your timing. A few lines is enough.

  2. I read it myself

    Usually within 24 hours, with the most useful next step.

  3. We agree the next move

    A Blueprint, a scoped build, or a simpler path if that’s the better answer.