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
- Feature Extraction
- Scoring
- Ranking
- 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.
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support