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
417 stars 67 forks source link

made generative explainer compantible with gpt-4 and added example notebooks #231

Closed mohsinposts closed 10 months ago

mohsinposts commented 10 months ago

Previous ChatOpenAI class was not fully defined in OpenAI tooling for generative models. It now has the functionality required to work with gpt-3.5 and gpt-4.

I added example notebooks for how to use the generative explainers with gpt-3 models which uses CompletionOpenAI class instead of ChatOpenAi.

Additionally, I created a notebook for gpt-4 as well which an explainer is used that does not require log likelihoods.

I also added an example notebook for huggingface models.