Calculating a Hallucination Score with the OpenAIChatGenerator
In this cookbook we will show how to calculate a hallucination risk based on the research paper LLMs are Bayesian, in Expectation, not in Realization and this GitHub repo, https://github.com/leochlon/hallbayes. In this notebook, we’ll use the OpenAIChatGenerator from haystack-experimental.
Haystack by deepset5 min read