Skip to content

NeumTry/electiongpt-frontend

Repository files navigation

ElectionGPT - Powered by Neum AI

image

Live Here

App that allows users to talk to presidential candidates for the US 2024 election. Leverage Neum AI as its backend to collect data from various data sources.

Candidates included:

  • Ryan Binkley - Republican
  • Doug Burgum - Republican
  • Chris Christie - Republican
  • Ron DeSantis - Republican
  • Larry Elder - Republican
  • Nikki Haley - Republican
  • Asa Hutchinson - Republican
  • Perry Johnson - Republican
  • Mike Pence - Republican
  • Vivek Ramaswamy - Republican
  • Tim Scott - Republican
  • Donald Trump - Republican
  • Joe Biden - Democratic
  • Marianne Williamson - Democratic
  • Robert F Kennedy - Independent

Data sources included:

  • Wikipedia
  • Ballotpedia
  • Candidate Websites
  • Published government plans
  • Tweets
  • Interview transcripts

Enable data pipelines with Neum AI

Note: You will need API Keys for APIFY and OpenAI to access the data. In addition, you will need a WCS (Weaviate Cloud Service) cluster that can be created for free.

  1. Sign up at Neum.AI
  2. Get your API Key under Dashboard > Settings
  3. Create Pipelines using this sample configuration. We will add additional configuration soon.

Run frontend

  1. Sign up at OpenAI's Developer Platform.
  2. Go to OpenAI's dashboard and create an API KEY.
  3. Set the required OpenAI environment variable as the token value as shown the example env file but in a new file called .env.local
  4. pnpm install to install the required dependencies.
  5. pnpm dev to launch the development server.