Explainable AI (XAI)
You can add XAI to your programs if you are interested in implementing advanced prompt engineering with OpenAI’s state-of-the-art models that can explain outputs. ChatGPT can explain source code. It can also explain its own outputs to a certain extent.
We went through some of the main aspects of explainable AI in Chapter 14, Interpreting Black Box Transformer Models.
To go further, you can try using ChatGPT to explain ChatGPT outputs and other tools by running XAI_by_ChatGPT_for_ChatGPT.ipynb
, which is in the Bonus
directory of the GitHub repository of this book. The program runs a ChatGPT XAI analysis of a ChatGPT output and also shows how to explain outputs with SHAP.
The notebook is self-contained and can help you, the advanced reader, build XAI on top of the tools in this notebook.
Let’s add audio to our dialogue with ChatGPT.
Speech-to-text with Whisper
In this section, we will run a speech-to-text model...