Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Fix various "bad" prompt-templates that potentially lead to odd results (qa-with-sources, qa) #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Ajackster
Copy link

I was loading qa-with-sources prompt templates from LangChainHub when I noticed I was getting odd answers. I tracked it down and it looks like some prompt templates were added in incorrectly and included an entire answer rather than just the template.

This PR replaces the corrupted prompt templates with what seemed like the proper template.

Support in testing or letting me know the easiest way to test this would be appreciated. From my brief overview of how prompt template loading works - I assume this should fix some issues but I have not actually tested it.

Issues reported in the langchain repository that could potentially be related:
Hallucinating Question about Michael Jackson #2510
RuntimeError: Failed to tokenize (LlamaCpp and QAWithSourcesChain) #2645
Issue with VectorDBQAWithSourcesChain and chain_type="stuff" #1326

@LuciferUchiha
Copy link

@hwchase17 Is there a reason why this hasn't been merged yet?

@moarshy
Copy link

moarshy commented May 16, 2023

We just noticed we are getting the Micheal Jackson hallucination with LangChain version 0.0.129. Was wondering if this would fix and when this will be merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants