Electify is an interactive app designed to empower voters with clear, concise summaries of political party positions. It was first developed for the 2024 European Elections. We use Retrieval-Augmented Generation (RAG) to extract relevant information from party manifestos and debates, providing users with an overview of each party's position on any given topic. Find background information on our organization page.
- Retrieve relevant information from party manifestos and debates
- Summarize parties' political positions based on user query
- Hide party names to prevent bias
- Show all retrieved sources for transparency
You can watch a walkthrough video or try the app yourself at electify.eu.
To set up Electify locally, follow the steps below:
git clone https://github.com/europarl-ai/electify-app.git
cd electify-app
Choose one of the following options:
Create .env
file in the repository's root directory containing your OpenAI API key:
OPENAI_API_KEY=<value>
Run the following commands to build and run the Docker container:
docker build -t electify .
docker run -p 8080:8080 --env-file .env electify
Navigate to http://localhost:8080
in your browser to access the app.
Install dependencies, e.g. with uv:
uv sync --frozen --no-dev
Activate the environment:
source .venv/bin/activate
Run the Streamlit app:
streamlit run App.py