Authors: Tianhao Gu, Ayoub El Hassouni, Pauline Jakob (group of 3) as part of the GenerativeAI and Democracy seminar at HfP / TUM.
This project retrieves news articles matching a user's query (English, German, French) and ranks them by a composite score that balances topical relevance and bias mitigation. The goal is to present users with results that are both relevant and less opinionated.
Each candidate article receives a composite score made of two main components:
Relevance (semantic similarity)
Bias (fairness & safety signal)
A tunable combination produces the final combined_score used for ranking. For example, conceptually:
combined_score = w_rel * normalize(relevance) - w_bias * normalize(bias)
w_rel and w_bias are weights that control the trade-off between relevance and bias mitigation.combined_score in descending order; higher scores appear first.This favors articles that are both relevant and measured as less biased. When relevance is similar, lower-bias articles are promoted.
Typical automated checks feeding the bias value include:
combined_score and short metadata (language, source id, snippet).w_rel / w_bias to change the emphasis on relevance vs. bias mitigation.This README focuses on article ranking and scoring, and identifies project authors.
2 commits
Python
96.6%
Dockerfile
3.4%
Authors: Tianhao Gu, Ayoub El Hassouni, Pauline Jakob (group of 3) as part of the GenerativeAI and Democracy seminar at HfP / TUM.
This project retrieves news articles matching a user's query (English, German, French) and ranks them by a composite score that balances topical relevance and bias mitigation. The goal is to present users with results that are both relevant and less opinionated.
Each candidate article receives a composite score made of two main components:
Relevance (semantic similarity)
Bias (fairness & safety signal)
A tunable combination produces the final combined_score used for ranking. For example, conceptually:
combined_score = w_rel * normalize(relevance) - w_bias * normalize(bias)
w_rel and w_bias are weights that control the trade-off between relevance and bias mitigation.combined_score in descending order; higher scores appear first.This favors articles that are both relevant and measured as less biased. When relevance is similar, lower-bias articles are promoted.
Typical automated checks feeding the bias value include:
combined_score and short metadata (language, source id, snippet).w_rel / w_bias to change the emphasis on relevance vs. bias mitigation.This README focuses on article ranking and scoring, and identifies project authors.
2 commits
Python
96.6%
Dockerfile
3.4%