Skip to content

Hallucinations in the tutorial #8247

Discussion options

You must be logged in to vote

Hello @feinmann and thank you for providing feedback on the tutorial! We could add a note to the tutorial about hallucinations @bilgeyucel @TuanaCelik
If I understand your example correctly, the retriever retrieved the correct documents and provided them in the prompt to the LLM but then the LLM hallucinated. A first countermeasure is a better model. As you already pointed out HuggingFaceH4/zephyr-7b-beta is a relatively small model and was chosen here for that reason. A second countermeasure I assume could help is to reduce the number of retrieved documents. For that you just need to change one line:

# replace
pipe.add_component("retriever", InMemoryEmbeddingRetriever(document_store=docu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@feinmann
Comment options

Answer selected by feinmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants