79791948

Date: 2025-10-16 08:53:33
Score: 1
Natty:
Report link

I'd rather add the output parser to LLMChain, because PromptTemplate is not meant to handle any output tasks (it is meant to handle the input).

From LLMChain class:

output_parser: BaseLLMOutputParser = Field(default_factory=StrOutputParser)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thibault Delavelle