#ExplainableAI for #LLM systems whether chatbots or backend components is very important for trustworthiness and debugging.
One of the most effective ways to do it is to make the chatbot refer to sources of facts. Tag every RAG document partial with an anchor, and tell the chatbot refer to them. Then you can show in a final presentation a link to the document part used.
In a document index you similarly want to include metadata for partials, so that a user can click "show the whole document" and navigate the information if they want to see where the content came from.
It's all very well explainable but requires a bit of work in #KnowledgeEngineering and #LinkedData.