how to remove sentence that we dont want from output prompt template #20775
Replies: 3 comments 7 replies
-
Hey @barbuscanian! 👋 I'm Dosu, your friendly neighborhood bot here to assist with bugs, answer questions, and help guide you towards becoming a contributor while we wait for a human maintainer. I'm diving into your issue now and will get back to you with some insights pronto! 🚀 |
Beta Was this translation helpful? Give feedback.
-
Modify the prompt / use a better model / use a regular expression like dosu suggested / or pass the output through another LLM with instructions about what kind of patterns to remove. I'd start with modifying the prompt. |
Beta Was this translation helpful? Give feedback.
-
Hi there, I would recommend in such cases add a prompt |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
output is : Based on the provided data, I recommend investigating the anomaly in today's power consumption pattern, as it is significantly lower compared to the previous day and week. Additionally, ensure that the device information is up to date to accurately monitor and analyze power usage.
i want to remove sentence 'Based on the provided data' from the output and prompt template, i try to remove sentence 'Based on the provided data' still get the output with that sentence.
what should i do? any tips?
System Info
(from pydantic<3,>=1->langchain) (0.6.0)
Beta Was this translation helpful? Give feedback.
All reactions