So, you’re constructing a RAG system or utilizing an LLM to speak with paperwork. However customers usually ask: how can we belief the solutions?
Furthermore, we continuously hear about hallucinations, which undermine customers’ belief.
If we construct an utility however fail to indicate customers the place the solutions come from, the applying may develop into unusable in some instances.
On this article, I’ll share an strategy to deal with this concern. By linking each reply generated by the LLM to its supply textual content within the doc, we are able to construct transparency and belief. This technique not solely supplies clear proof for the solutions but in addition permits customers to confirm the outcomes immediately throughout the PDF.
Generally, the generated reply might not be completely correct, however with the ability to find the right supply textual content is already useful for the consumer.
Let’s take an instance of this paper from arxiv.org. We are able to think about this use case:
Step one on this strategy is to extract the textual content from the PDF in a structured format.