interpretml / interpret-text

A library that incorporates state-of-the-art explainers for text-based machine learning models and visualizes the result with a built-in dashboard.
MIT License
409 stars 68 forks source link

Support for Generative Text Explainers with Example #227

Closed mohsinposts closed 6 months ago

mohsinposts commented 6 months ago

1) I changed the "python/interpret-text/generative/model_lib/openai_tooling.py" file by parameterizing some hard coded variables so they can be used for more general cases.

2) I added a "python/interpret-text/generative/openai_generative_explainer.ipynb" file as an example of using the generative text explainer for OpenAI's Api.

All other changes were from previous generative text explainer implementation.