├── .env.template ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── SECURITY.md ├── SUPPORT.md ├── docs ├── examples │ ├── 01-create-test-dataset-azure-ai-search.ipynb │ ├── 01-create-test-dataset.ipynb │ ├── 02-genaishap-featurizer.ipynb │ ├── 03-genaishap-explainers.ipynb │ ├── 10-environment.yml │ ├── 11-genaishap-create-image-dataset.ipynb │ ├── 12-analyse-results-featurizer.ipynb │ ├── 13-analyse-results-shap.ipynb │ ├── PaulGrahamEssayDataset.txt │ ├── common.py │ ├── data │ │ ├── rag_dataset.json │ │ ├── slm-labels.csv │ │ └── source_files │ │ │ ├── 2022 Microsoft Environmental Sustainability Report.pdf │ │ │ ├── 2022-sustainability-report.pdf │ │ │ ├── 2022_Apple_ESG_Report.pdf │ │ │ ├── Meta-2021-Sustainability-Report.pdf │ │ │ ├── Netflix_2022-ESG-Report-FINAL.pdf │ │ │ └── google-2022-environmental-report.pdf │ ├── test-dataset-azure.json │ ├── test-dataset.json │ └── test-features.json └── img │ ├── featurizer_example.png │ ├── input_example.png │ ├── logo_black_bg.jpeg │ ├── logo_white_bg.jpeg │ ├── out_of_range_example.png │ ├── shap_summary_plot_example.png │ └── waterfall_example.png ├── pyproject.toml ├── requirements.txt └── src └── genaishap ├── __init__.py ├── _utils.py ├── explainer.py ├── featurize.py └── prompts.py /.env.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/.env.template -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.9 2 | WORKDIR /workspace 3 | 4 | EXPOSE 8888 5 | 6 | CMD ["make", "run-in-container"] 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/SECURITY.md -------------------------------------------------------------------------------- /SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/SUPPORT.md -------------------------------------------------------------------------------- /docs/examples/01-create-test-dataset-azure-ai-search.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/01-create-test-dataset-azure-ai-search.ipynb -------------------------------------------------------------------------------- /docs/examples/01-create-test-dataset.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/01-create-test-dataset.ipynb -------------------------------------------------------------------------------- /docs/examples/02-genaishap-featurizer.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/02-genaishap-featurizer.ipynb -------------------------------------------------------------------------------- /docs/examples/03-genaishap-explainers.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/03-genaishap-explainers.ipynb -------------------------------------------------------------------------------- /docs/examples/10-environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/10-environment.yml -------------------------------------------------------------------------------- /docs/examples/11-genaishap-create-image-dataset.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/11-genaishap-create-image-dataset.ipynb -------------------------------------------------------------------------------- /docs/examples/12-analyse-results-featurizer.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/12-analyse-results-featurizer.ipynb -------------------------------------------------------------------------------- /docs/examples/13-analyse-results-shap.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/13-analyse-results-shap.ipynb -------------------------------------------------------------------------------- /docs/examples/PaulGrahamEssayDataset.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/PaulGrahamEssayDataset.txt -------------------------------------------------------------------------------- /docs/examples/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/common.py -------------------------------------------------------------------------------- /docs/examples/data/rag_dataset.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/rag_dataset.json -------------------------------------------------------------------------------- /docs/examples/data/slm-labels.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/slm-labels.csv -------------------------------------------------------------------------------- /docs/examples/data/source_files/2022 Microsoft Environmental Sustainability Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/source_files/2022 Microsoft Environmental Sustainability Report.pdf -------------------------------------------------------------------------------- /docs/examples/data/source_files/2022-sustainability-report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/source_files/2022-sustainability-report.pdf -------------------------------------------------------------------------------- /docs/examples/data/source_files/2022_Apple_ESG_Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/source_files/2022_Apple_ESG_Report.pdf -------------------------------------------------------------------------------- /docs/examples/data/source_files/Meta-2021-Sustainability-Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/source_files/Meta-2021-Sustainability-Report.pdf -------------------------------------------------------------------------------- /docs/examples/data/source_files/Netflix_2022-ESG-Report-FINAL.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/source_files/Netflix_2022-ESG-Report-FINAL.pdf -------------------------------------------------------------------------------- /docs/examples/data/source_files/google-2022-environmental-report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/data/source_files/google-2022-environmental-report.pdf -------------------------------------------------------------------------------- /docs/examples/test-dataset-azure.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/test-dataset-azure.json -------------------------------------------------------------------------------- /docs/examples/test-dataset.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/test-dataset.json -------------------------------------------------------------------------------- /docs/examples/test-features.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/examples/test-features.json -------------------------------------------------------------------------------- /docs/img/featurizer_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/img/featurizer_example.png -------------------------------------------------------------------------------- /docs/img/input_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/img/input_example.png -------------------------------------------------------------------------------- /docs/img/logo_black_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/img/logo_black_bg.jpeg -------------------------------------------------------------------------------- /docs/img/logo_white_bg.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/img/logo_white_bg.jpeg -------------------------------------------------------------------------------- /docs/img/out_of_range_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/img/out_of_range_example.png -------------------------------------------------------------------------------- /docs/img/shap_summary_plot_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/img/shap_summary_plot_example.png -------------------------------------------------------------------------------- /docs/img/waterfall_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/docs/img/waterfall_example.png -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/genaishap/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/src/genaishap/__init__.py -------------------------------------------------------------------------------- /src/genaishap/_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/src/genaishap/_utils.py -------------------------------------------------------------------------------- /src/genaishap/explainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/src/genaishap/explainer.py -------------------------------------------------------------------------------- /src/genaishap/featurize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/src/genaishap/featurize.py -------------------------------------------------------------------------------- /src/genaishap/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/dstoolkit-genai-shap/HEAD/src/genaishap/prompts.py --------------------------------------------------------------------------------