langchain-aws icon indicating copy to clipboard operation
langchain-aws copied to clipboard

[Question] RetryWithErrorOutputParser with_structured_output

Open austinmw opened this issue 1 year ago • 2 comments

Hi, any idea if langchain's RetryWithErrorOutputParser is compatible with llm.with_structured_output()? Since LLMs can return incorrect responses that would cause Pydantic parsing to fail, it would be good to provide the previous output and error to the LLM when doing retries.

austinmw avatar Aug 13 '24 16:08 austinmw

Hi, did you get any clarity on this?

adveatkarnik1 avatar Dec 02 '24 12:12 adveatkarnik1

Nope. Handled failures with LangGraph, but would be nice to have this built in.

austinmw avatar Dec 02 '24 22:12 austinmw