ExplainableRecsLM ๐Ÿš€

ExplainableRecsLM is a recommendation system that not only suggests items to users, but also provides clear, human-readable explanations for every recommendation.

It is designed for transparent AI, trustworthy recommender systems, and explainable AI (XAI) research, and is ready for GitHub, Hugging Face, and Gradio Spaces.


๐Ÿ” What Problem Does It Solve?

Traditional recommendation systems act like black boxes.
ExplainableRecsLM answers the critical question:

Why was this item recommended to me?

By combining scoring with natural-language explanations, the system builds user trust and improves interpretability.


โœจ Key Features

  • ๐ŸŽฏ Userโ€“item recommendation engine
  • ๐Ÿง  Transparent, rule-based scoring
  • ๐Ÿ—ฃ๏ธ Human-readable explanations for every recommendation
  • ๐Ÿงฉ Modular, extensible design
  • ๐Ÿค— Hugging Faceโ€“ready pipeline
  • ๐ŸŽ›๏ธ Gradio web demo included
  • ๐Ÿงช Test-covered core components

๐Ÿ“‚ Project Structure

explainable-recs-lm/
โ”œโ”€โ”€ config/
โ”œโ”€โ”€ data/
โ”œโ”€โ”€ src/
โ”œโ”€โ”€ training/
โ”œโ”€โ”€ pipelines/
โ”œโ”€โ”€ scripts/
โ”œโ”€โ”€ tests/
โ”œโ”€โ”€ notebooks/
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ model_card.md
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ LICENSE

โš™๏ธ Installation

pip install -r requirements.txt

๐Ÿš€ Quick Usage

from src.inference import ExplainableRecsPipeline

pipeline = ExplainableRecsPipeline()

results = pipeline(
    "data/users.json",
    "data/items.json"
)

print(results)

๐ŸŽ›๏ธ Gradio Demo

Run locally:

python app.py

๐Ÿง  How It Works

  1. Feature Extraction
  2. Scoring
  3. Ranking
  4. Explanation Generation

๐Ÿ”ฎ Future Scope

  • ML-based ranking models
  • SHAP / attention-based explanations
  • Real-time interaction tracking
  • Personalized explanation styles
  • Domain-specific recommenders

๐Ÿค— Hugging Face Details

  • Model Name: explainable-recs-lm
  • Pipeline Tag: other
  • License: Apache-2.0

๐Ÿ“œ License

Apache License 2.0


Built for transparent and trustworthy AI recommendations.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Evaluation results