Open dmenini opened 4 weeks ago
Hello @dmenini! My group and I investigated this error and we found the cause of this is due to the partial method not being overridden in the PipleinePromptTemplate class. We've come up with a potential fix but if this issue can be assigned to us, we can open a PR asap!
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
In the
partial
method thePipelinePromptTemplate
is reinstantiated with a new set ofinput_variables
andpartial_variables
. However, when creating a new instance theget_input_variables
model validator is invoked, which recreates the original input variables based on thepipeline_prompts
, overwriting the newinput_variables
. Therefore the validation error related to overlappinginput_variables
andpartial_variables
.System Info