Langchain LLMChain Responses Include Extraneous Context and System Messages #25181
iamrraj
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using aws
Bedrock llama 3
When using LangChain with LLMChain and ConversationBufferMemory, the AI assistant's responses contain extraneous context and system messages, making the output verbose and cluttered. The goal is to configure the AI to provide concise and direct answers to user questions without additional context or system messages.
Current Behavior:
The AI assistant's responses include unnecessary explanations and system messages:
I just want a answer not all this things
Initialize LLMChain and ConversationBufferMemory with the following prompt:
Configure the LLMChain:
How can i fix this issue to get just answer based on question i ask not this AIMessage or Human message
Beta Was this translation helpful? Give feedback.
All reactions