FloTeu / llm-prompt-engineering-generator

Library to organize few shot learning for llm models
MIT License
3 stars 0 forks source link

Output Format does not except input_variables #7

Open maviedmtech opened 2 months ago

maviedmtech commented 2 months ago

When I tried to set an input variable to the output_format field, they are not recognized as input fields. The specific use case:

FloTeu commented 2 months ago

Hey @maviedmtech Thank you for your message. Indeed thats an issue. I faced the same problem allready myself. The output format prompt element is treated a little bit differently than the other elements (they use partial variables and not the standard input variables) . Workaround: You are not forced to name the output prompt element "output_format". If you name it for example just "output" its treated as a system message and the input variable will work as expected. But i will also work on a solution to support input variables for the standard "output_format" element