98b2583efd3283fb0bad68fb72b09d79a09ca0b2
Previously load_scree_data computed L2-norms per dimension on current_parliament vectors only, giving ~11% for PC1. This was inconsistent with the compass which uses all windows + Procrustes alignment and gets PC1=24.1%. Added compute_svd_spectrum() helper to political_axis.py that reuses the same alignment pipeline. load_scree_data now delegates to it. _render_scree_plot no longer re-normalizes (inputs are already EVR percentages). Hover label updated to 'verklaarde variantie'.
stemwijzer
A small project that uses QWEN embeddings for semantic features. The codebase includes an example Ansible package under packages/@ansible/example and helper scripts for deployment.
Embeddings
- This project uses QWEN embeddings (model:
qwen/qwen3-embedding-4b) via OpenRouter-compatible APIs. - Preferred environment variable:
OPENROUTER_API_KEYwith a fallback toOPENAI_API_KEY.
Publishing and deploying the Ansible package
- Package location:
packages/@ansible/example— this contains the Ansible playbooks and packaging used by CI. - To publish the package (CI): create a git tag for the version and provide
NPM_TOKENas a secret to the CI runner so it can publish to npm. - To deploy the package (CI): set the following repository secrets in your CI pipeline:
DEPLOY_HOST(default:motief.sgeboers.nl)DEPLOY_SSH_KEY(private key for thewebappsuser)DEPLOY_USER(default:webapps)
Defaults
- DEPLOY_HOST:
motief.sgeboers.nl - DEPLOY_USER:
webapps
See docs/deployment/ansible-package-deploy.md for more detailed deploy instructions and defaults.
Languages
HTML
96.7%
Python
3.2%