New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConversationChain default prompt leads the model to converse with itself #6138
Comments
I have the same issue. langchain==0.0.205 |
Did you solve it? |
Just stopped using the conversation chain |
That's interesting, as I am also considering the same course of action. Did you ultimately end up using the regular llm chain? |
Nope! I realized that chains are adding unnecessary complexity. So just stuck with a vanilla LLM |
I am also having the same issue. Doing a bit of digging, it looks like the default prompt - or any prompts created following the guidance here - end up being converted to a single To verify this, I used the OpenAI API directly and confirmed that this causes the model to converse with itself.
|
I think the problem is with the prompt and run.. It might help if you change the default prompt for the chain and use predict. method. You can also try notebook from https://github.com/highplainscomputing/Child-Protection-Bot/blob/main/Child_Protection_Bot.ipynb. Here is the example below:
|
Hi, @mihilmy, I'm helping the LangChain team manage their backlog and am marking this issue as stale. From what I understand, the issue you reported involves the ConversationChain default prompt causing the AI to converse with itself instead of with the user. There have been experiences shared by other users, and potential solutions have been suggested, including changing the default prompt for the chain and using the predict method. It seems that the issue is still unresolved, and some users have opted to stop using the conversation chain due to its complexity. Could you please confirm if this issue is still relevant to the latest version of the LangChain repository? If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you! |
System Info
langchain==0.0.195
python==3.9.6
Who can help?
@hwchase17
Information
Related Components
Reproduction
Expected behavior
The AI starts conversing with itself. This wouldn't happen when using OpenAI's native message and role format as opposed to this massive prompt. Am I missing something?
This is the AI response which starts to include the human prefix based on the default prompt supplied.
The text was updated successfully, but these errors were encountered: