You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with LLMs other than that of OPENAI, I felt that the output parser was not working adequately even with prompt engineering. So I figured out how to improve this for my use case and would like to share the result with the community.
Proposal (If applicable)
In the said file I would improve it in such a way that elif statement of the includes_answer variable which returns the AgentFinish object should come before the action_match if statement which would also remove the need of the FINAL_ANSWER_AND_PARSABLE_ACTION_ERROR_MESSAGE.
Also perhaps I would like to code it myself and contribute.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked
Feature request
Improvement for OutputParser
Specifically this one
Motivation
When working with LLMs other than that of OPENAI, I felt that the output parser was not working adequately even with prompt engineering. So I figured out how to improve this for my use case and would like to share the result with the community.
Proposal (If applicable)
In the said file I would improve it in such a way that elif statement of the includes_answer variable which returns the AgentFinish object should come before the action_match if statement which would also remove the need of the FINAL_ANSWER_AND_PARSABLE_ACTION_ERROR_MESSAGE.
Also perhaps I would like to code it myself and contribute.
Beta Was this translation helpful? Give feedback.
All reactions