predict_and_parse warning in Multi-Route chains in langchain

58 Views Asked by At

I have been working on Multi-Route Chains in Langchain. I am getting the output but along with the output I am also getting the predict_and_parse deprecation warning. How do I get rid of this warning?

I am attaching the screenshot of the warning FYR

predict_and_parse deprecation warning

I tried changing the output parser in the PromptTemplate.

router_prompt = PromptTemplate(template=router_temp,input_variables=['input'], output_parser=RouterOutputParser())

1

There are 1 best solutions below

0
j3ffyang On
from warnings import filterwarnings
filterwarnings("ignore", category=FutureWarning)