Constructing Belief in LLM Solutions: Highlighting Supply Texts in PDFs | by Angela & Kezhan Shi | Dec, 2024
So, you might be constructing a RAG system or utilizing an LLM to talk with paperwork. However customers typically ask: how can we belief the solutions?
Furthermore, we often hear about hallucinations, which undermine customers’ belief.
If we construct an software however fail to point out customers the place the solutions come from, the applying would possibly turn out to be unusable in some instances.
On this article, I’ll share an method to handle this concern. By linking each reply generated by the LLM to its supply textual content within the doc, we will construct transparency and belief. This methodology not solely gives clear proof for the solutions but additionally permits customers to confirm the outcomes straight inside the PDF.
Typically, the generated reply might not be completely correct, however having the ability to find the proper supply textual content is already useful for the consumer.
Let’s take an instance of this paper from arxiv.org. We will think about this use case:
Step one on this method is to extract the textual content from the PDF in a structured format.