explaingit

automatic1111/llm-political-compass

Analysis updated 2026-07-18 · repo last pushed 2024-01-31

38HTMLAudience · researcherComplexity · 2/5DormantSetup · easy

TLDR

An interactive webpage showing where various open-source AI language models land on a political compass, based on how each model answered a standardized political quiz.

Mindmap

mindmap
  root((llm-political-compass))
    What it does
      Political compass quiz for AIs
      Economic and social axes
      Interactive comparison webpage
    Tech Stack
      HTML
      Quiz script
    Use Cases
      Compare model biases
      AI transparency research
      Reproduce the quiz
    Audience
      AI researchers
      AI enthusiasts
      Bias-curious users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Compare how different open-source language models score on economic and social political axes.

USE CASE 2

Research whether an AI model's training data has introduced left-, right-, libertarian-, or authoritarian-leaning bias.

USE CASE 3

Reproduce the political compass quiz on a new open-source model using the shared quiz script.

USE CASE 4

Use the results as a transparency reference before choosing which AI model to build a product on.

What is it built with?

HTML

How does it compare?

automatic1111/llm-political-compass0xsha/cve-2026-6307crixpwn/cve-2026-8389
Stars383838
LanguageHTMLHTMLHTML
Last pushed2024-01-31
MaintenanceDormant
Setup difficultyeasyhardhard
Complexity2/55/55/5
Audienceresearcherdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

The comparison webpage needs no setup, running the quiz on a new model requires the separate quiz script.

In plain English

This project is a web page that shows how different open-source language models (AI chatbots) score on a political compass quiz. Instead of ranking them as simply "left" or "right," the compass places them on two axes, one measuring economic views and another measuring social values, to give a more nuanced picture of their political leanings. The creator ran each AI model through a standardized political compass quiz (using a separate script they built) and collected the results. Those results are now displayed on an interactive webpage where you can see how various models cluster and compare. It's similar to taking a political quiz yourself, except here the "test-taker" is an AI, and you're seeing the aggregate results for many different models side by side. This is useful for researchers, AI enthusiasts, or anyone curious about the political biases that might be baked into different AI models. Since these models learn from internet text, they can absorb political viewpoints from their training data. By visualizing where models land on a compass, you can see if some are more left-leaning, right-leaning, libertarian, or authoritarian, and compare how different open-source models differ from each other. This kind of transparency is important as AI becomes more integrated into everyday tools, since political bias in an AI can subtly influence the advice or information it gives. The project itself is straightforward: a webpage showing the results. If you want to run the quiz yourself on a model, the creator has shared the quiz script they used, so others can reproduce the experiment or test new models.

Copy-paste prompts

Prompt 1
Explain how this project scores AI language models on a political compass and what the two axes represent.
Prompt 2
Show me how to use the quiz script from this repo to test a new open-source language model's political leanings.
Prompt 3
Which open-source models in this compass lean most left, right, libertarian, or authoritarian, based on the results shown?
Prompt 4
Why might a language model absorb political bias from its training data, and how does this project try to visualize that?

Frequently asked questions

What is llm-political-compass?

An interactive webpage showing where various open-source AI language models land on a political compass, based on how each model answered a standardized political quiz.

What language is llm-political-compass written in?

Mainly HTML. The stack also includes HTML.

Is llm-political-compass actively maintained?

Dormant — no commits in 2+ years (last push 2024-01-31).

How hard is llm-political-compass to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is llm-political-compass for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.